39 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that the MIR parser reports an error when an instruction3# is missing one of its implicit register operands.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...22---23name: foo24body: |25 bb.0.entry:26 successors: %bb.1.less, %bb.2.exit27 28 $eax = MOV32rm $rdi, 1, _, 0, _29 CMP32ri8 $eax, 10, implicit-def $eflags30 ; CHECK: [[@LINE+1]]:25: missing implicit register operand 'implicit $eflags'31 JCC_1 %bb.2.exit, 1532 33 bb.1.less:34 $eax = MOV32r0 implicit-def $eflags35 36 bb.2.exit:37 RET64 $eax38...39