diff options
Diffstat (limited to 'test/ExecutionEngine/MCJIT')
33 files changed, 129 insertions, 129 deletions
diff --git a/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll b/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll index eb2fe8c..1ddc5ce 100644 --- a/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll +++ b/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll @@ -13,7 +13,7 @@ declare i32 @printf(i8*, ...) define i32 @main(i32 %argc, i8** %argv) { bb0: - call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] + call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8], [10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] %cast224 = bitcast i8** %argv to i8* ; <i8*> [#uses=1] %local = alloca i8* ; <i8**> [#uses=3] store i8* %cast224, i8** %local @@ -24,9 +24,9 @@ bb2: ; preds = %bb2, %bb0 %add1-indvar = add i32 %cann-indvar, 1 ; <i32> [#uses=2] %cann-indvar-idxcast = sext i32 %cann-indvar to i64 ; <i64> [#uses=1] %CT = bitcast i8** %local to i8*** ; <i8***> [#uses=1] - %reg115 = load i8*** %CT ; <i8**> [#uses=1] - %cast235 = getelementptr i8** %reg115, i64 %cann-indvar-idxcast ; <i8**> [#uses=1] - %reg117 = load i8** %cast235 ; <i8*> [#uses=1] + %reg115 = load i8**, i8*** %CT ; <i8**> [#uses=1] + %cast235 = getelementptr i8*, i8** %reg115, i64 %cann-indvar-idxcast ; <i8**> [#uses=1] + %reg117 = load i8*, i8** %cast235 ; <i8*> [#uses=1] %reg236 = call i32 @puts( i8* %reg117 ) ; <i32> [#uses=0] %cond239 = icmp slt i32 %add1-indvar, %argc ; <i1> [#uses=1] br i1 %cond239, label %bb2, label %bb3 diff --git a/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll b/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll index 576ef7c..d714bf7 100644 --- a/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll +++ b/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll @@ -5,7 +5,7 @@ @test = global i64 0 ; <i64*> [#uses=1] define internal i64 @test.upgrd.1() { - %tmp.0 = load i64* @test ; <i64> [#uses=1] + %tmp.0 = load i64, i64* @test ; <i64> [#uses=1] %tmp.1 = add i64 %tmp.0, 1 ; <i64> [#uses=1] ret i64 %tmp.1 } diff --git a/test/ExecutionEngine/MCJIT/2003-05-07-ArgumentTest.ll b/test/ExecutionEngine/MCJIT/2003-05-07-ArgumentTest.ll index 42db5fe..0538201 100644 --- a/test/ExecutionEngine/MCJIT/2003-05-07-ArgumentTest.ll +++ b/test/ExecutionEngine/MCJIT/2003-05-07-ArgumentTest.ll @@ -3,8 +3,8 @@ declare i32 @puts(i8*) define i32 @main(i32 %argc.1, i8** %argv.1) { - %tmp.5 = getelementptr i8** %argv.1, i64 1 ; <i8**> [#uses=1] - %tmp.6 = load i8** %tmp.5 ; <i8*> [#uses=1] + %tmp.5 = getelementptr i8*, i8** %argv.1, i64 1 ; <i8**> [#uses=1] + %tmp.6 = load i8*, i8** %tmp.5 ; <i8*> [#uses=1] %tmp.0 = call i32 @puts( i8* %tmp.6 ) ; <i32> [#uses=0] ret i32 0 } diff --git a/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll b/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll index 63303fc..e2c52b4 100644 --- a/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll +++ b/test/ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll @@ -12,7 +12,7 @@ declare i32 @strlen(i8*) define i32 @main(i32 %argc.1, i8** %argv.1, i8** %envp.1) { - %tmp.2 = load i8** %envp.1 ; <i8*> [#uses=1] + %tmp.2 = load i8*, i8** %envp.1 ; <i8*> [#uses=1] %tmp.3 = call i32 @strlen( i8* %tmp.2 ) ; <i32> [#uses=1] %T = icmp eq i32 %tmp.3, 0 ; <i1> [#uses=1] %R = zext i1 %T to i32 ; <i32> [#uses=1] diff --git a/test/ExecutionEngine/MCJIT/2007-12-10-APIntLoadStore.ll b/test/ExecutionEngine/MCJIT/2007-12-10-APIntLoadStore.ll index 4183611..d557f57 100644 --- a/test/ExecutionEngine/MCJIT/2007-12-10-APIntLoadStore.ll +++ b/test/ExecutionEngine/MCJIT/2007-12-10-APIntLoadStore.ll @@ -9,11 +9,11 @@ entry: %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] store i75 999, i75* %x, align 16 store i32 0, i32* %tmp, align 4 - %tmp1 = load i32* %tmp, align 4 ; <i32> [#uses=1] + %tmp1 = load i32, i32* %tmp, align 4 ; <i32> [#uses=1] store i32 %tmp1, i32* %retval, align 4 br label %return return: ; preds = %entry - %retval2 = load i32* %retval ; <i32> [#uses=1] + %retval2 = load i32, i32* %retval ; <i32> [#uses=1] ret i32 %retval2 } diff --git a/test/ExecutionEngine/MCJIT/2008-06-05-APInt-OverAShr.ll b/test/ExecutionEngine/MCJIT/2008-06-05-APInt-OverAShr.ll index 349db69..4e4ad2a 100644 --- a/test/ExecutionEngine/MCJIT/2008-06-05-APInt-OverAShr.ll +++ b/test/ExecutionEngine/MCJIT/2008-06-05-APInt-OverAShr.ll @@ -12,15 +12,15 @@ entry: %tmp = alloca i65 ; <i65*> [#uses=2] %"alloca point" = bitcast i65 0 to i65 ; <i65> [#uses=0] store i65 %x, i65* %x_addr - %tmp1 = load i65* %x_addr, align 4 ; <i65> [#uses=1] + %tmp1 = load i65, i65* %x_addr, align 4 ; <i65> [#uses=1] %tmp2 = ashr i65 %tmp1, 65 ; <i65> [#uses=1] store i65 %tmp2, i65* %tmp, align 4 - %tmp3 = load i65* %tmp, align 4 ; <i65> [#uses=1] + %tmp3 = load i65, i65* %tmp, align 4 ; <i65> [#uses=1] store i65 %tmp3, i65* %retval, align 4 br label %return return: ; preds = %entry - %retval4 = load i65* %retval ; <i65> [#uses=1] + %retval4 = load i65, i65* %retval ; <i65> [#uses=1] ret i65 %retval4 } @@ -46,14 +46,14 @@ cond_false: ; preds = %entry br label %cond_next cond_next: ; preds = %cond_false, %cond_true - %tmp5 = getelementptr [10 x i8]* @.str, i32 0, i32 0 ; <i8*> [#uses=1] - %tmp6 = load i32* %iftmp.0, align 4 ; <i32> [#uses=1] + %tmp5 = getelementptr [10 x i8], [10 x i8]* @.str, i32 0, i32 0 ; <i8*> [#uses=1] + %tmp6 = load i32, i32* %iftmp.0, align 4 ; <i32> [#uses=1] %tmp7 = call i32 (i8*, ...)* @printf( i8* noalias %tmp5, i32 %tmp6 ) nounwind ; <i32> [#uses=0] br label %return return: ; preds = %cond_next store i32 0, i32* %retval, align 4 - %retval8 = load i32* %retval ; <i32> [#uses=1] + %retval8 = load i32, i32* %retval ; <i32> [#uses=1] ret i32 %retval8 } diff --git a/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll b/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll index d9ff347..631cb2f 100644 --- a/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll +++ b/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll @@ -14,12 +14,12 @@ ; @test = global [2 x i32] [i32 -1, i32 0], align 4 -@p = global i32* getelementptr inbounds ([2 x i32]* @test, i64 0, i64 1), align 8 +@p = global i32* getelementptr inbounds ([2 x i32], [2 x i32]* @test, i64 0, i64 1), align 8 define i32 @main() { entry: - %0 = load i32** @p, align 8 - %1 = load i32* %0, align 4 + %0 = load i32*, i32** @p, align 8 + %1 = load i32, i32* %0, align 4 ret i32 %1 } diff --git a/test/ExecutionEngine/MCJIT/fpbitcast.ll b/test/ExecutionEngine/MCJIT/fpbitcast.ll index e6d06f8..bd7beb8 100644 --- a/test/ExecutionEngine/MCJIT/fpbitcast.ll +++ b/test/ExecutionEngine/MCJIT/fpbitcast.ll @@ -12,7 +12,7 @@ entry: define i32 @main() { %res = call i32 @test(double 3.14) - %ptr = getelementptr [4 x i8]* @format, i32 0, i32 0 + %ptr = getelementptr [4 x i8], [4 x i8]* @format, i32 0, i32 0 call i32 (i8*,...)* @printf(i8* %ptr, i32 %res) ret i32 0 } diff --git a/test/ExecutionEngine/MCJIT/hello-sm-pic.ll b/test/ExecutionEngine/MCJIT/hello-sm-pic.ll index 7db60f7..4843f4e 100644 --- a/test/ExecutionEngine/MCJIT/hello-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/hello-sm-pic.ll @@ -6,7 +6,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/test/ExecutionEngine/MCJIT/hello.ll b/test/ExecutionEngine/MCJIT/hello.ll index 47e36a5..516f57a 100644 --- a/test/ExecutionEngine/MCJIT/hello.ll +++ b/test/ExecutionEngine/MCJIT/hello.ll @@ -5,7 +5,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/test/ExecutionEngine/MCJIT/pr13727.ll b/test/ExecutionEngine/MCJIT/pr13727.ll index 6f5ae39..79dd9b4 100644 --- a/test/ExecutionEngine/MCJIT/pr13727.ll +++ b/test/ExecutionEngine/MCJIT/pr13727.ll @@ -31,20 +31,20 @@ entry: %retval = alloca i32, align 4 %i = alloca i32, align 4 store i32 0, i32* %retval - %0 = load i32* @zero_int, align 4 + %0 = load i32, i32* @zero_int, align 4 %add = add nsw i32 %0, 5 %idxprom = sext i32 %add to i64 - %arrayidx = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom + %arrayidx = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom store i32 40, i32* %arrayidx, align 4 - %1 = load double* @zero_double, align 8 + %1 = load double, double* @zero_double, align 8 %cmp = fcmp olt double %1, 1.100000e+00 br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry - %2 = load i32* @zero_int, align 4 + %2 = load i32, i32* @zero_int, align 4 %add1 = add nsw i32 %2, 2 %idxprom2 = sext i32 %add1 to i64 - %arrayidx3 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 + %arrayidx3 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 store i32 70, i32* %arrayidx3, align 4 br label %if.end @@ -53,35 +53,35 @@ if.end: ; preds = %if.then, %entry br label %for.cond for.cond: ; preds = %for.inc, %if.end - %3 = load i32* %i, align 4 + %3 = load i32, i32* %i, align 4 %cmp4 = icmp slt i32 %3, 10 br i1 %cmp4, label %for.body, label %for.end for.body: ; preds = %for.cond - %4 = load i32* %i, align 4 + %4 = load i32, i32* %i, align 4 %sub = sub nsw i32 %4, 1 %idxprom5 = sext i32 %sub to i64 - %arrayidx6 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 - %5 = load i32* %arrayidx6, align 4 - %6 = load i32* %i, align 4 + %arrayidx6 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 + %5 = load i32, i32* %arrayidx6, align 4 + %6 = load i32, i32* %i, align 4 %idxprom7 = sext i32 %6 to i64 - %arrayidx8 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 - %7 = load i32* %arrayidx8, align 4 + %arrayidx8 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 + %7 = load i32, i32* %arrayidx8, align 4 %add9 = add nsw i32 %5, %7 - %8 = load i32* %i, align 4 + %8 = load i32, i32* %i, align 4 %idxprom10 = sext i32 %8 to i64 - %arrayidx11 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 + %arrayidx11 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 store i32 %add9, i32* %arrayidx11, align 4 br label %for.inc for.inc: ; preds = %for.body - %9 = load i32* %i, align 4 + %9 = load i32, i32* %i, align 4 %inc = add nsw i32 %9, 1 store i32 %inc, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %10 = load i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll b/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll index da4ddc6..a834ac5 100644 --- a/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll @@ -21,14 +21,14 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } define i1 @test() nounwind { entry: - %tmp = load i1 ()** @funcPtr + %tmp = load i1 ()*, i1 ()** @funcPtr %eq = icmp eq i1 ()* %tmp, @test ret i1 %eq } diff --git a/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll b/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll index f6a1607..62e89ca 100644 --- a/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll @@ -21,14 +21,14 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } define i1 @test() nounwind { entry: - %tmp = load i1 ()** @funcPtr + %tmp = load i1 ()*, i1 ()** @funcPtr %eq = icmp eq i1 ()* %tmp, @test ret i1 %eq } diff --git a/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll index 0f58710..fb7750a 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll @@ -31,20 +31,20 @@ entry: %retval = alloca i32, align 4 %i = alloca i32, align 4 store i32 0, i32* %retval - %0 = load i32* @zero_int, align 4 + %0 = load i32, i32* @zero_int, align 4 %add = add nsw i32 %0, 5 %idxprom = sext i32 %add to i64 - %arrayidx = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom + %arrayidx = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom store i32 40, i32* %arrayidx, align 4 - %1 = load double* @zero_double, align 8 + %1 = load double, double* @zero_double, align 8 %cmp = fcmp olt double %1, 1.000000e+00 br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry - %2 = load i32* @zero_int, align 4 + %2 = load i32, i32* @zero_int, align 4 %add1 = add nsw i32 %2, 2 %idxprom2 = sext i32 %add1 to i64 - %arrayidx3 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 + %arrayidx3 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 store i32 70, i32* %arrayidx3, align 4 br label %if.end @@ -53,35 +53,35 @@ if.end: ; preds = %if.then, %entry br label %for.cond for.cond: ; preds = %for.inc, %if.end - %3 = load i32* %i, align 4 + %3 = load i32, i32* %i, align 4 %cmp4 = icmp slt i32 %3, 10 br i1 %cmp4, label %for.body, label %for.end for.body: ; preds = %for.cond - %4 = load i32* %i, align 4 + %4 = load i32, i32* %i, align 4 %sub = sub nsw i32 %4, 1 %idxprom5 = sext i32 %sub to i64 - %arrayidx6 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 - %5 = load i32* %arrayidx6, align 4 - %6 = load i32* %i, align 4 + %arrayidx6 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 + %5 = load i32, i32* %arrayidx6, align 4 + %6 = load i32, i32* %i, align 4 %idxprom7 = sext i32 %6 to i64 - %arrayidx8 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 - %7 = load i32* %arrayidx8, align 4 + %arrayidx8 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 + %7 = load i32, i32* %arrayidx8, align 4 %add9 = add nsw i32 %5, %7 - %8 = load i32* %i, align 4 + %8 = load i32, i32* %i, align 4 %idxprom10 = sext i32 %8 to i64 - %arrayidx11 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 + %arrayidx11 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 store i32 %add9, i32* %arrayidx11, align 4 br label %for.inc for.inc: ; preds = %for.body - %9 = load i32* %i, align 4 + %9 = load i32, i32* %i, align 4 %inc = add nsw i32 %9, 1 store i32 %inc, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %10 = load i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll index 9d11415..6134b8b 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll @@ -1,7 +1,7 @@ ; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null define double @test(double* %DP, double %Arg) nounwind { - %D = load double* %DP ; <double> [#uses=1] + %D = load double, double* %DP ; <double> [#uses=1] %V = fadd double %D, 1.000000e+00 ; <double> [#uses=2] %W = fsub double %V, %V ; <double> [#uses=3] %X = fmul double %W, %W ; <double> [#uses=2] diff --git a/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll index 40b514f..5b7999c 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll @@ -11,24 +11,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 49 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* @count, align 4 + %1 = load i32, i32* @count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* @count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* @count, align 4 + %3 = load i32, i32* @count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll b/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll index 5119b72..f9184b4 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll @@ -12,24 +12,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 49 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* @count, align 4 + %1 = load i32, i32* @count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* @count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* @count, align 4 + %3 = load i32, i32* @count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll index ba3ffff..ad1af93 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll @@ -1,14 +1,14 @@ ; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 + %0 = load i8*, i8** @ptr, align 4 + %1 = load i8*, i8** @ptr2, align 4 %cmp = icmp eq i8* %0, %1 %. = zext i1 %cmp to i32 ret i32 %. diff --git a/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll index bbc71af..d9a4faa 100644 --- a/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll @@ -2,14 +2,14 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 + %0 = load i8*, i8** @ptr, align 4 + %1 = load i8*, i8** @ptr2, align 4 %cmp = icmp eq i8* %0, %1 %. = zext i1 %cmp to i32 ret i32 %. diff --git a/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll b/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll index 9b83ed2..6eebe44 100644 --- a/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll @@ -20,14 +20,14 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } define i1 @test() nounwind { entry: - %tmp = load i1 ()** @funcPtr + %tmp = load i1 ()*, i1 ()** @funcPtr %eq = icmp eq i1 ()* %tmp, @test ret i1 %eq } diff --git a/test/ExecutionEngine/MCJIT/stubs.ll b/test/ExecutionEngine/MCJIT/stubs.ll index b7d922f..5b7acc7 100644 --- a/test/ExecutionEngine/MCJIT/stubs.ll +++ b/test/ExecutionEngine/MCJIT/stubs.ll @@ -19,14 +19,14 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } define i1 @test() nounwind { entry: - %tmp = load i1 ()** @funcPtr + %tmp = load i1 ()*, i1 ()** @funcPtr %eq = icmp eq i1 ()* %tmp, @test ret i1 %eq } diff --git a/test/ExecutionEngine/MCJIT/test-common-symbols-alignment.ll b/test/ExecutionEngine/MCJIT/test-common-symbols-alignment.ll index a425b5c..1bb0744 100644 --- a/test/ExecutionEngine/MCJIT/test-common-symbols-alignment.ll +++ b/test/ExecutionEngine/MCJIT/test-common-symbols-alignment.ll @@ -13,7 +13,7 @@ entry: %ptr = alloca i32, align 4 store i32 0, i32* %retval store i32 ptrtoint (i32* @CS3 to i32), i32* %ptr, align 4 - %0 = load i32* %ptr, align 4 + %0 = load i32, i32* %ptr, align 4 %and = and i32 %0, 15 %tobool = icmp ne i32 %and, 0 br i1 %tobool, label %if.then, label %if.else @@ -27,6 +27,6 @@ if.else: ; preds = %entry br label %return return: ; preds = %if.else, %if.then - %1 = load i32* %retval + %1 = load i32, i32* %retval ret i32 %1 } diff --git a/test/ExecutionEngine/MCJIT/test-common-symbols.ll b/test/ExecutionEngine/MCJIT/test-common-symbols.ll index 19e2ce5..b63c2fe 100644 --- a/test/ExecutionEngine/MCJIT/test-common-symbols.ll +++ b/test/ExecutionEngine/MCJIT/test-common-symbols.ll @@ -31,20 +31,20 @@ entry: %retval = alloca i32, align 4 %i = alloca i32, align 4 store i32 0, i32* %retval - %0 = load i32* @zero_int, align 4 + %0 = load i32, i32* @zero_int, align 4 %add = add nsw i32 %0, 5 %idxprom = sext i32 %add to i64 - %arrayidx = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom + %arrayidx = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom store i32 40, i32* %arrayidx, align 4 - %1 = load double* @zero_double, align 8 + %1 = load double, double* @zero_double, align 8 %cmp = fcmp olt double %1, 1.000000e+00 br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry - %2 = load i32* @zero_int, align 4 + %2 = load i32, i32* @zero_int, align 4 %add1 = add nsw i32 %2, 2 %idxprom2 = sext i32 %add1 to i64 - %arrayidx3 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 + %arrayidx3 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 store i32 70, i32* %arrayidx3, align 4 br label %if.end @@ -53,35 +53,35 @@ if.end: ; preds = %if.then, %entry br label %for.cond for.cond: ; preds = %for.inc, %if.end - %3 = load i32* %i, align 4 + %3 = load i32, i32* %i, align 4 %cmp4 = icmp slt i32 %3, 10 br i1 %cmp4, label %for.body, label %for.end for.body: ; preds = %for.cond - %4 = load i32* %i, align 4 + %4 = load i32, i32* %i, align 4 %sub = sub nsw i32 %4, 1 %idxprom5 = sext i32 %sub to i64 - %arrayidx6 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 - %5 = load i32* %arrayidx6, align 4 - %6 = load i32* %i, align 4 + %arrayidx6 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 + %5 = load i32, i32* %arrayidx6, align 4 + %6 = load i32, i32* %i, align 4 %idxprom7 = sext i32 %6 to i64 - %arrayidx8 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 - %7 = load i32* %arrayidx8, align 4 + %arrayidx8 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 + %7 = load i32, i32* %arrayidx8, align 4 %add9 = add nsw i32 %5, %7 - %8 = load i32* %i, align 4 + %8 = load i32, i32* %i, align 4 %idxprom10 = sext i32 %8 to i64 - %arrayidx11 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 + %arrayidx11 = getelementptr inbounds [10 x i32], [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 store i32 %add9, i32* %arrayidx11, align 4 br label %for.inc for.inc: ; preds = %for.body - %9 = load i32* %i, align 4 + %9 = load i32, i32* %i, align 4 %inc = add nsw i32 %9, 1 store i32 %inc, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %10 = load i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs.ll b/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs.ll index adb0550..c549a44 100644 --- a/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs.ll +++ b/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs.ll @@ -1,7 +1,7 @@ ; RUN: %lli %s > /dev/null define double @test(double* %DP, double %Arg) { - %D = load double* %DP ; <double> [#uses=1] + %D = load double, double* %DP ; <double> [#uses=1] %V = fadd double %D, 1.000000e+00 ; <double> [#uses=2] %W = fsub double %V, %V ; <double> [#uses=3] %X = fmul double %W, %W ; <double> [#uses=2] diff --git a/test/ExecutionEngine/MCJIT/test-fp.ll b/test/ExecutionEngine/MCJIT/test-fp.ll index 2bf0210..c65b5a6 100644 --- a/test/ExecutionEngine/MCJIT/test-fp.ll +++ b/test/ExecutionEngine/MCJIT/test-fp.ll @@ -1,7 +1,7 @@ ; RUN: %lli %s > /dev/null define double @test(double* %DP, double %Arg) { - %D = load double* %DP ; <double> [#uses=1] + %D = load double, double* %DP ; <double> [#uses=1] %V = fadd double %D, 1.000000e+00 ; <double> [#uses=2] %W = fsub double %V, %V ; <double> [#uses=3] %X = fmul double %W, %W ; <double> [#uses=2] diff --git a/test/ExecutionEngine/MCJIT/test-global-ctors.ll b/test/ExecutionEngine/MCJIT/test-global-ctors.ll index ec87d15..6d13271 100644 --- a/test/ExecutionEngine/MCJIT/test-global-ctors.ll +++ b/test/ExecutionEngine/MCJIT/test-global-ctors.ll @@ -6,7 +6,7 @@ define i32 @main() nounwind { entry: - %0 = load i32* @var, align 4 + %0 = load i32, i32* @var, align 4 ret i32 %0 } diff --git a/test/ExecutionEngine/MCJIT/test-global-init-nonzero-sm-pic.ll b/test/ExecutionEngine/MCJIT/test-global-init-nonzero-sm-pic.ll index 26bd838..8ae496d 100644 --- a/test/ExecutionEngine/MCJIT/test-global-init-nonzero-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/test-global-init-nonzero-sm-pic.ll @@ -12,24 +12,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 49 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* @count, align 4 + %1 = load i32, i32* @count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* @count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* @count, align 4 + %3 = load i32, i32* @count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/test-global-init-nonzero.ll b/test/ExecutionEngine/MCJIT/test-global-init-nonzero.ll index 3877e9a..4595219 100644 --- a/test/ExecutionEngine/MCJIT/test-global-init-nonzero.ll +++ b/test/ExecutionEngine/MCJIT/test-global-init-nonzero.ll @@ -11,24 +11,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 49 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* @count, align 4 + %1 = load i32, i32* @count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* @count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* @count, align 4 + %3 = load i32, i32* @count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/test-global.ll b/test/ExecutionEngine/MCJIT/test-global.ll index 69e5455..2760ecd 100644 --- a/test/ExecutionEngine/MCJIT/test-global.ll +++ b/test/ExecutionEngine/MCJIT/test-global.ll @@ -11,24 +11,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 50 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* @count, align 4 + %1 = load i32, i32* @count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* @count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* @count, align 4 + %3 = load i32, i32* @count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/test-loadstore.ll b/test/ExecutionEngine/MCJIT/test-loadstore.ll index 1797599..68c8505 100644 --- a/test/ExecutionEngine/MCJIT/test-loadstore.ll +++ b/test/ExecutionEngine/MCJIT/test-loadstore.ll @@ -1,13 +1,13 @@ ; RUN: %lli %s > /dev/null define void @test(i8* %P, i16* %P.upgrd.1, i32* %P.upgrd.2, i64* %P.upgrd.3) { - %V = load i8* %P ; <i8> [#uses=1] + %V = load i8, i8* %P ; <i8> [#uses=1] store i8 %V, i8* %P - %V.upgrd.4 = load i16* %P.upgrd.1 ; <i16> [#uses=1] + %V.upgrd.4 = load i16, i16* %P.upgrd.1 ; <i16> [#uses=1] store i16 %V.upgrd.4, i16* %P.upgrd.1 - %V.upgrd.5 = load i32* %P.upgrd.2 ; <i32> [#uses=1] + %V.upgrd.5 = load i32, i32* %P.upgrd.2 ; <i32> [#uses=1] store i32 %V.upgrd.5, i32* %P.upgrd.2 - %V.upgrd.6 = load i64* %P.upgrd.3 ; <i64> [#uses=1] + %V.upgrd.6 = load i64, i64* %P.upgrd.3 ; <i64> [#uses=1] store i64 %V.upgrd.6, i64* %P.upgrd.3 ret void } @@ -16,7 +16,7 @@ define i32 @varalloca(i32 %Size) { ;; Variable sized alloca %X = alloca i32, i32 %Size ; <i32*> [#uses=2] store i32 %Size, i32* %X - %Y = load i32* %X ; <i32> [#uses=1] + %Y = load i32, i32* %X ; <i32> [#uses=1] ret i32 %Y } diff --git a/test/ExecutionEngine/MCJIT/test-local.ll b/test/ExecutionEngine/MCJIT/test-local.ll index ec5ba16..832e178 100644 --- a/test/ExecutionEngine/MCJIT/test-local.ll +++ b/test/ExecutionEngine/MCJIT/test-local.ll @@ -11,24 +11,24 @@ entry: br label %for.cond for.cond: ; preds = %for.inc, %entry - %0 = load i32* %i, align 4 + %0 = load i32, i32* %i, align 4 %cmp = icmp slt i32 %0, 50 br i1 %cmp, label %for.body, label %for.end for.body: ; preds = %for.cond - %1 = load i32* %count, align 4 + %1 = load i32, i32* %count, align 4 %inc = add nsw i32 %1, 1 store i32 %inc, i32* %count, align 4 br label %for.inc for.inc: ; preds = %for.body - %2 = load i32* %i, align 4 + %2 = load i32, i32* %i, align 4 %inc1 = add nsw i32 %2, 1 store i32 %inc1, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond - %3 = load i32* %count, align 4 + %3 = load i32, i32* %count, align 4 %sub = sub nsw i32 %3, 50 ret i32 %sub } diff --git a/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll b/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll index 21bcaef..d50ba9d 100644 --- a/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll +++ b/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll @@ -2,14 +2,14 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 + %0 = load i8*, i8** @ptr, align 4 + %1 = load i8*, i8** @ptr2, align 4 %cmp = icmp eq i8* %0, %1 %. = zext i1 %cmp to i32 ret i32 %. diff --git a/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll b/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll index f139ddf..9cb4274 100644 --- a/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll +++ b/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll @@ -1,14 +1,14 @@ ; RUN: %lli -O0 %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 + %0 = load i8*, i8** @ptr, align 4 + %1 = load i8*, i8** @ptr2, align 4 %cmp = icmp eq i8* %0, %1 %. = zext i1 %cmp to i32 ret i32 %. |