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 | llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.gz llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.bz2 llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.xz |
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 1df2fc70a0..3aa5f91424 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 274dfc5a28..747b39d8d7 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 abf6abdca8..ac382728f8 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 5a0d1c7671..08a1413bfc 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**> |