brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 28523c4 Raw
35 lines · plain
1; RUN: llc < %s -x86-early-ifcvt -verify-machineinstrs2; RUN: llc < %s -x86-early-ifcvt -stress-early-ifcvt -verify-machineinstrs3; CPU without a scheduling model:4; RUN: llc < %s -x86-early-ifcvt -mcpu=k8 -verify-machineinstrs5;6; Run these tests with and without -stress-early-ifcvt to exercise heuristics.7;8target triple = "x86_64-apple-macosx10.8.0"9 10; MachineTraceMetrics::Ensemble::addLiveIns crashes because the first operand11; on an inline asm instruction is not a vreg def.12; <rdar://problem/12472811>13define void @f1(i1 %arg) nounwind {14entry:15  br i1 %arg, label %if.then6.i, label %if.end.i16 17if.then6.i:18  br label %if.end.i19 20if.end.i:21  br i1 %arg, label %if.end25.i, label %if.else17.i22 23if.else17.i:24  %shl24.i = shl i32 undef, undef25  br label %if.end25.i26 27if.end25.i:28  %storemerge31.i = phi i32 [ %shl24.i, %if.else17.i ], [ 0, %if.end.i ]29  store i32 %storemerge31.i, ptr undef, align 430  %0 = tail call i32 asm sideeffect "", "=r,r,i,i"(i32 undef, i32 15, i32 1) nounwind31  %conv = trunc i32 %0 to i832  store i8 %conv, ptr undef, align 133  unreachable34}35