1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures that the MIR parser reports an error when an instruction
3 # is missing one of its implicit register operands.
7 define i32 @foo(i32* %p) {
10 %0 = icmp sle i32 %a, 10
11 br i1 %0, label %less, label %exit
27 successors: [ '%bb.1.less', '%bb.2.exit' ]
29 - '%eax = MOV32rm %rdi, 1, _, 0, _'
30 - 'CMP32ri8 %eax, 10, implicit-def %eflags'
31 # CHECK: [[@LINE+1]]:24: missing implicit register operand 'implicit %eflags'
36 - '%eax = MOV32r0 implicit-def %eflags'