36 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that an error is reported when an unknown named machine3# basic block is encountered.4 5--- |6 7 define i32 @foo(ptr %p) {8 entry:9 %a = load i32, ptr %p10 %0 = icmp sle i32 %a, 1011 br i1 %0, label %less, label %exit12 13 less:14 ret i32 015 16 exit:17 ret i32 %a18 }19 20...21---22name: foo23body: |24 bb.0.entry:25 $eax = MOV32rm $rdi, 1, _, 0, _26 CMP32ri8 $eax, 10, implicit-def $eflags27 ; CHECK: [[@LINE+1]]:11: the name of machine basic block #2 isn't 'hit'28 JCC_1 %bb.2.hit, 15, implicit $eflags29 30 bb.1.less:31 $eax = MOV32r0 implicit-def $eflags32 33 bb.2.exit:34 RET64 $eax35...36