diff options
Diffstat (limited to 'test/Transforms/PhaseOrdering/scev.ll')
-rw-r--r-- | test/Transforms/PhaseOrdering/scev.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/PhaseOrdering/scev.ll b/test/Transforms/PhaseOrdering/scev.ll index 39adb6b..c616ca2 100644 --- a/test/Transforms/PhaseOrdering/scev.ll +++ b/test/Transforms/PhaseOrdering/scev.ll @@ -7,7 +7,7 @@ ; CHECK: test1 ; The loop body contains two increments by %div. ; Make sure that 2*%div is recognizable, and not expressed as a bit mask of %d. -; CHECK: --> {%p,+,(2 * (%d /u 4) * sizeof(i32))} +; CHECK: --> {%p,+,(8 * (%d /u 4))} define void @test1(i64 %d, i32* %p) nounwind uwtable ssp { entry: %div = udiv i64 %d, 4 @@ -21,9 +21,9 @@ for.cond: ; preds = %for.inc, %entry for.body: ; preds = %for.cond store i32 0, i32* %p.addr.0, align 4 - %add.ptr = getelementptr inbounds i32* %p.addr.0, i64 %div + %add.ptr = getelementptr inbounds i32, i32* %p.addr.0, i64 %div store i32 1, i32* %add.ptr, align 4 - %add.ptr1 = getelementptr inbounds i32* %add.ptr, i64 %div + %add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i64 %div br label %for.inc for.inc: ; preds = %for.body @@ -36,7 +36,7 @@ for.end: ; preds = %for.cond ; CHECK: test1a ; Same thing as test1, but it is even more tempting to fold 2 * (%d /u 2) -; CHECK: --> {%p,+,(2 * (%d /u 2) * sizeof(i32))} +; CHECK: --> {%p,+,(8 * (%d /u 2))} define void @test1a(i64 %d, i32* %p) nounwind uwtable ssp { entry: %div = udiv i64 %d, 2 @@ -50,9 +50,9 @@ for.cond: ; preds = %for.inc, %entry for.body: ; preds = %for.cond store i32 0, i32* %p.addr.0, align 4 - %add.ptr = getelementptr inbounds i32* %p.addr.0, i64 %div + %add.ptr = getelementptr inbounds i32, i32* %p.addr.0, i64 %div store i32 1, i32* %add.ptr, align 4 - %add.ptr1 = getelementptr inbounds i32* %add.ptr, i64 %div + %add.ptr1 = getelementptr inbounds i32, i32* %add.ptr, i64 %div br label %for.inc for.inc: ; preds = %for.body |