Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -x86-early-ifcvt -verify-machineinstrs
      2 ; RUN: llc < %s -x86-early-ifcvt -stress-early-ifcvt -verify-machineinstrs
      3 ;
      4 ; Run these tests with and without -stress-early-ifcvt to exercise heuristics.
      5 ;
      6 target triple = "x86_64-apple-macosx10.8.0"
      7 
      8 ; MachineTraceMetrics::Ensemble::addLiveIns crashes because the first operand
      9 ; on an inline asm instruction is not a vreg def.
     10 ; <rdar://problem/12472811>
     11 define void @f1() nounwind {
     12 entry:
     13   br i1 undef, label %if.then6.i, label %if.end.i
     14 
     15 if.then6.i:
     16   br label %if.end.i
     17 
     18 if.end.i:
     19   br i1 undef, label %if.end25.i, label %if.else17.i
     20 
     21 if.else17.i:
     22   %shl24.i = shl i32 undef, undef
     23   br label %if.end25.i
     24 
     25 if.end25.i:
     26   %storemerge31.i = phi i32 [ %shl24.i, %if.else17.i ], [ 0, %if.end.i ]
     27   store i32 %storemerge31.i, i32* undef, align 4
     28   %0 = tail call i32 asm sideeffect "", "=r,r,i,i"(i32 undef, i32 15, i32 1) nounwind
     29   %conv = trunc i32 %0 to i8
     30   store i8 %conv, i8* undef, align 1
     31   unreachable
     32 }
     33