brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · 577a7fa Raw
35 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2 3--- |4 5  define i32 @foo(ptr %p) {6  entry:7    %a = load i32, ptr %p8    %0 = icmp sle i32 %a, 109    br i1 %0, label %less, label %exit10 11  less:12    ret i32 013 14  exit:15    ret i32 %a16  }17 18 19...20---21name:            foo22body: |23  bb.0.entry:24    $eax = MOV32rm $rdi, 1, _, 0, _25    CMP32ri8 $eax, 10, implicit-def $eflags26  ; CHECK: [[@LINE+1]]:40: missing implicit register operand 'implicit $eflags'27    JCC_1 %bb.2.exit, 15, implicit $eax28 29  bb.1.less:30    $eax = MOV32r0 implicit-def $eflags31 32  bb.2.exit:33    RET64 $eax34...35