summaryrefslogtreecommitdiffstats
path: root/llvm/test/Integer
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-30 16:16:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-30 16:16:01 +0000
commitaf6a408117c52f4d104080514c8d3df58e271128 (patch)
tree756570c9e0b56bca06155af989d9d204ac4f1782 /llvm/test/Integer
parent6f880918d06eb59214ea677a27d9a628ac67f586 (diff)
downloadbcm5719-llvm-af6a408117c52f4d104080514c8d3df58e271128.tar.gz
bcm5719-llvm-af6a408117c52f4d104080514c8d3df58e271128.zip
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. llvm-svn: 33660
Diffstat (limited to 'llvm/test/Integer')
-rw-r--r--llvm/test/Integer/2007-01-19-TruncSext.ll2
-rw-r--r--llvm/test/Integer/indirectcall_bt.ll4
-rw-r--r--llvm/test/Integer/paramattrs_bt.ll2
-rw-r--r--llvm/test/Integer/recursivetype_bt.ll8
4 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Integer/2007-01-19-TruncSext.ll b/llvm/test/Integer/2007-01-19-TruncSext.ll
index 1df2fc70a0b..3aa5f914240 100644
--- a/llvm/test/Integer/2007-01-19-TruncSext.ll
+++ b/llvm/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/llvm/test/Integer/indirectcall_bt.ll b/llvm/test/Integer/indirectcall_bt.ll
index 274dfc5a28e..747b39d8d7d 100644
--- a/llvm/test/Integer/indirectcall_bt.ll
+++ b/llvm/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/llvm/test/Integer/paramattrs_bt.ll b/llvm/test/Integer/paramattrs_bt.ll
index abf6abdca84..ac382728f8f 100644
--- a/llvm/test/Integer/paramattrs_bt.ll
+++ b/llvm/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/llvm/test/Integer/recursivetype_bt.ll b/llvm/test/Integer/recursivetype_bt.ll
index 5a0d1c7671e..08a1413bfc8 100644
--- a/llvm/test/Integer/recursivetype_bt.ll
+++ b/llvm/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**>
OpenPOWER on IntegriCloud