diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 16:16:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 16:16:01 +0000 |
commit | 908504347b0565c4d4817af444012be76ba4b76f (patch) | |
tree | 443cd5fa4f0eacde4cdb1601d18cd9eb5526ea43 /test/Integer | |
parent | 82d5ee5653fdbd9bdcd75f8509429a0d72c80fa8 (diff) | |
download | external_llvm-908504347b0565c4d4817af444012be76ba4b76f.zip external_llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.gz external_llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.bz2 |
For PR411:
Update these tests to not use the same name even though the type of the
value differs. After PR411 hits, type planes will be gone and it will be
illegal for a name to be used twice, regardless of type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Integer')
-rw-r--r-- | test/Integer/2007-01-19-TruncSext.ll | 2 | ||||
-rw-r--r-- | test/Integer/indirectcall_bt.ll | 4 | ||||
-rw-r--r-- | test/Integer/paramattrs_bt.ll | 2 | ||||
-rw-r--r-- | test/Integer/recursivetype_bt.ll | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/Integer/2007-01-19-TruncSext.ll b/test/Integer/2007-01-19-TruncSext.ll index 1df2fc7..3aa5f91 100644 --- a/test/Integer/2007-01-19-TruncSext.ll +++ b/test/Integer/2007-01-19-TruncSext.ll @@ -16,7 +16,7 @@ define void @multiply(i32 %index, i32 %X, i32 %Y) { ret void } -define i32 @main(i32 %argc, i8** %argc) { +define i32 @main(i32 %argc, i8** %argv) { %i = bitcast i32 0 to i32 call void @multiply(i32 %i, i32 -1, i32 255) %P = getelementptr [20 x i17]* @ARRAY, i32 0, i32 0 diff --git a/test/Integer/indirectcall_bt.ll b/test/Integer/indirectcall_bt.ll index 274dfc5..747b39d 100644 --- a/test/Integer/indirectcall_bt.ll +++ b/test/Integer/indirectcall_bt.ll @@ -48,6 +48,6 @@ end define i32 @"main"() begin %Result = call i63 @trampoline(i63 10, i63(i63) *@fib) - %Result = trunc i63 %Result to i32 - ret i32 %Result + %Result2 = trunc i63 %Result to i32 + ret i32 %Result2 end diff --git a/test/Integer/paramattrs_bt.ll b/test/Integer/paramattrs_bt.ll index abf6abd..ac38272 100644 --- a/test/Integer/paramattrs_bt.ll +++ b/test/Integer/paramattrs_bt.ll @@ -14,7 +14,7 @@ define i33 @main(i33 %argc, i8 **%argv) { %val = trunc i33 %argc to i16 %res = call i16 (i16 sext) sext *@test(i16 %val) %two = add i16 %res, %res - %res = call i8 @test2(i16 %two zext) zext + %res2 = call i8 @test2(i16 %two zext) zext %retVal = sext i16 %two to i33 ret i33 %retVal } diff --git a/test/Integer/recursivetype_bt.ll b/test/Integer/recursivetype_bt.ll index 5a0d1c7..08a1413 100644 --- a/test/Integer/recursivetype_bt.ll +++ b/test/Integer/recursivetype_bt.ll @@ -68,10 +68,10 @@ bb3: %cast1006 = bitcast %list** %reg119 to i8** ;;<i8**> %reg111 = call i8* @malloc(i32 16) ;;<i8*> store i8* %reg111, i8** %cast1006 ;;<void> - %reg111 = ptrtoint i8* %reg111 to i64 - %reg1002 = add i64 %reg111, 8 - %reg1002 = inttoptr i64 %reg1002 to i8* ;;<i8*> - %cast1008 = bitcast i8* %reg1002 to i36* ;;<i36*> + %reg112 = ptrtoint i8* %reg111 to i64 + %reg1002 = add i64 %reg112, 8 + %reg1005 = inttoptr i64 %reg1002 to i8* ;;<i8*> + %cast1008 = bitcast i8* %reg1005 to i36* ;;<i36*> store i36 %Data, i36* %cast1008 ;;<void> %cast1003 = inttoptr i64 0 to i64* ;;<i64*> %cast1009 = bitcast i8* %reg111 to i64** ;;<i64**> |