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 the 'implicit' and 'implicit-def'
3 # register flags correctly.
7 define i32 @foo(i32 %a) {
9 %0 = icmp sle i32 %a, 10
10 br i1 %0, label %less, label %exit
26 # CHECK: - 'CMP32ri8 %edi, 10, implicit-def %eflags'
27 # CHECK-NEXT: - 'JG_1 %bb.2.exit, implicit %eflags'
28 - 'CMP32ri8 %edi, 10, implicit-def %eflags'
29 - 'JG_1 %bb.2.exit, implicit %eflags'
33 # CHECK: - '%eax = MOV32r0 implicit-def %eflags'
34 - '%eax = MOV32r0 implicit-def %eflags'