1 # RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
2 # This test ensures that the MIR parser parses basic block successors correctly.
6 define i32 @foo(i32 %a) {
8 %0 = icmp sle i32 %a, 10
9 br i1 %0, label %less, label %exit
18 define i32 @bar(i32 %a) {
20 %b = icmp sle i32 %a, 10
21 br i1 %b, label %0, label %1
35 # CHECK: successors: [ '%bb.1.less', '%bb.2.exit' ]
39 successors: [ '%bb.1.less', '%bb.2.exit' ]
42 - 'CMP32ri8 %edi, 10, implicit-def %eflags'
43 - 'JG_1 %bb.2.exit, implicit killed %eflags'
47 - '%eax = MOV32r0 implicit-def dead %eflags'
53 - '%eax = COPY killed %edi'
61 # CHECK: successors: [ '%bb.1', '%bb.2' ]
66 successors: [ '%bb.1', '%bb.2' ]
69 - 'CMP32ri8 %edi, 10, implicit-def %eflags'
70 - 'JG_1 %bb.2, implicit killed %eflags'
73 - '%eax = MOV32r0 implicit-def dead %eflags'
78 - '%eax = COPY killed %edi'