mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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
This commit is contained in:
1 parent
82d5ee5653
commit
908504347b
21 files changed
+66
-65
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
@@ -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**>
|
||||
|
||||
Reference in new issue
Block a user