From 908504347b0565c4d4817af444012be76ba4b76f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 30 Jan 2007 16:16:01 +0000 Subject: 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 --- test/Integer/2007-01-19-TruncSext.ll | 2 +- test/Integer/indirectcall_bt.ll | 4 ++-- test/Integer/paramattrs_bt.ll | 2 +- test/Integer/recursivetype_bt.ll | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/Integer') 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** ;; %reg111 = call i8* @malloc(i32 16) ;; store i8* %reg111, i8** %cast1006 ;; - %reg111 = ptrtoint i8* %reg111 to i64 - %reg1002 = add i64 %reg111, 8 - %reg1002 = inttoptr i64 %reg1002 to i8* ;; - %cast1008 = bitcast i8* %reg1002 to i36* ;; + %reg112 = ptrtoint i8* %reg111 to i64 + %reg1002 = add i64 %reg112, 8 + %reg1005 = inttoptr i64 %reg1002 to i8* ;; + %cast1008 = bitcast i8* %reg1005 to i36* ;; store i36 %Data, i36* %cast1008 ;; %cast1003 = inttoptr i64 0 to i64* ;; %cast1009 = bitcast i8* %reg111 to i64** ;; -- cgit v1.2.3