brintos

brintos / llvm-project-archived public Read only

0
0
Text · 619 B · 9140971 Raw
36 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(i32 %a) {6  entry:7    %0 = icmp sle i32 %a, 108    br i1 %0, label %less, label %exit9 10  less:11    ret i32 012 13  exit:14    ret i32 %a15  }16 17...18---19name:            foo20body: |21  bb.0.entry:22    successors: %bb.1.less, %bb.2.exit23 24    CMP32ri8 $edi, 10, implicit-def $eflags25  ; CHECK: [[@LINE+1]]:36: duplicate 'implicit' register flag26    JCC_1 %bb.2.exit, 15, implicit implicit $eflags27 28  bb.1.less:29    $eax = MOV32r0 implicit-def $eflags30    RET64 $eax31 32  bb.2.exit:33    $eax = COPY $edi34    RET64 $eax35...36