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 machine basic block operands.
6 define i32 @foo(i32* %p) {
9 %0 = icmp sle i32 %a, 10
10 br i1 %0, label %less, label %exit
19 define i32 @bar(i32* %p) {
21 %a = load i32, i32* %p
22 %b = icmp sle i32 %a, 10
23 br i1 %b, label %0, label %1
40 successors: [ '%bb.1.less', '%bb.2.exit' ]
42 - '%eax = MOV32rm %rdi, 1, _, 0, _'
43 # CHECK: - 'CMP32ri8 %eax, 10
44 # CHECK-NEXT: - 'JG_1 %bb.2.exit
45 - 'CMP32ri8 %eax, 10, implicit-def %eflags'
46 - 'JG_1 %bb.2.exit, implicit %eflags'
51 - '%eax = MOV32r0 implicit-def %eflags'
64 successors: [ '%bb.1', '%bb.3' ]
66 - '%eax = MOV32rm %rdi, 1, _, 0, _'
67 # CHECK: - 'CMP32ri8 %eax, 10
68 # CHECK-NEXT: - 'JG_1 %bb.2
69 - 'CMP32ri8 %eax, 10, implicit-def %eflags'
70 - 'JG_1 %bb.3, implicit %eflags'
73 - '%eax = MOV32r0 implicit-def %eflags'