AMDGPU/SI: Add SI Machine Scheduler
[oota-llvm.git] / test / Transforms / IndVarSimplify / signed-trip-count.ll
index cd61d11394eebeae852276ab0a614c25e3d8c214..992e22e2a969cadc0a472e9045390b6d783d24d3 100644 (file)
@@ -1,7 +1,11 @@
-; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
+; RUN: opt < %s -indvars -S > %t
 ; RUN: not grep sext %t
 ; RUN: grep phi %t | count 1
 
+; Provide legal integer types.
+target datalayout = "n8:16:32:64"
+
+
 define void @foo(i64* nocapture %x, i32 %n) nounwind {
 entry:
        %tmp102 = icmp sgt i32 %n, 0            ; <i1> [#uses=1]
@@ -13,7 +17,7 @@ bb.nph:               ; preds = %entry
 bb:            ; preds = %bb7, %bb.nph
        %i.01 = phi i32 [ %tmp6, %bb7 ], [ 0, %bb.nph ]         ; <i32> [#uses=3]
        %tmp1 = sext i32 %i.01 to i64           ; <i64> [#uses=1]
-       %tmp4 = getelementptr i64* %x, i32 %i.01                ; <i64*> [#uses=1]
+       %tmp4 = getelementptr i64, i64* %x, i32 %i.01           ; <i64*> [#uses=1]
        store i64 %tmp1, i64* %tmp4, align 8
        %tmp6 = add i32 %i.01, 1                ; <i32> [#uses=2]
        br label %bb7