Adjust test cases to match the fact that methods are now explicit pointer values, not explicit

llvm-svn: 702
This commit is contained in:
Chris Lattner 2001-10-03 14:50:12 +00:00
parent af910dda17
commit fee01c0591
7 changed files with 11 additions and 11 deletions

View File

@ -10,7 +10,7 @@ bb1: ;;<label>
%reg110 = shl uint %n, ubyte 2 ;;<uint> %reg110 = shl uint %n, ubyte 2 ;;<uint>
%reg108 = alloca [ubyte], uint %reg110 ;;<ubyte*> %reg108 = alloca [ubyte], uint %reg110 ;;<ubyte*>
%cast1000 = cast [ubyte]* %reg108 to uint* ;;<uint*> %cast1000 = cast [ubyte]* %reg108 to uint* ;;<uint*>
call void(uint, uint*) %_Z12combinationsjPj(uint %n, uint* %cast1000) ;;<void> call void %_Z12combinationsjPj(uint %n, uint* %cast1000) ;;<void>
%cast113 = cast uint %reg110 to ulong* ;;<ulong*> %cast113 = cast uint %reg110 to ulong* ;;<ulong*>
cast uint 7 to ulong * cast uint 7 to ulong *
%reg114 = add ulong* %cast113, %0 ;;<ulong*> %reg114 = add ulong* %cast113, %0 ;;<ulong*>
@ -19,7 +19,7 @@ bb1: ;;<label>
%cast1001 = cast ulong* %reg117 to uint ;;<uint> %cast1001 = cast ulong* %reg117 to uint ;;<uint>
%reg118 = alloca [ubyte], uint %cast1001 ;;<ubyte*> %reg118 = alloca [ubyte], uint %cast1001 ;;<ubyte*>
%cast1002 = cast [ubyte]* %reg118 to uint* ;;<uint*> %cast1002 = cast [ubyte]* %reg118 to uint* ;;<uint*>
call void(uint, uint*) %_Z12combinationsjPj(uint %n, uint* %cast1002) ;;<void> call void %_Z12combinationsjPj(uint %n, uint* %cast1002) ;;<void>
ret void ;;<void> ret void ;;<void>
end end

View File

@ -5,7 +5,7 @@ implementation
int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp) int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp)
begin begin
%retval = call int (int) %test(int %argc) %retval = call int (int) *%test(int %argc)
%two = add int %retval, %retval %two = add int %retval, %retval
ret int %two ret int %two
end end

View File

@ -4,7 +4,7 @@ declare int "bar"(int %in)
int "foo"(int %blah) int "foo"(int %blah)
begin begin
%xx = call int(int) %bar(int %blah) %xx = call int %bar(int %blah)
ret int %xx ret int %xx
end end

View File

@ -5,7 +5,7 @@ declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const
int "testvarar"() int "testvarar"()
begin begin
cast int 0 to sbyte* cast int 0 to sbyte*
call int(sbyte*, ...) %printf(sbyte * %0, int 12, sbyte 42); call int(sbyte*, ...) *%printf(sbyte * %0, int 12, sbyte 42);
ret int %0 ret int %0
end end

View File

@ -13,8 +13,8 @@ BaseCase:
RecurseCase: RecurseCase:
%n2 = sub ulong %n, 2 %n2 = sub ulong %n, 2
%n1 = sub ulong %n, 1 %n1 = sub ulong %n, 1
%f2 = call ulong(ulong) %fib(ulong %n2) %f2 = call ulong(ulong) * %fib(ulong %n2)
%f1 = call ulong(ulong) %fib(ulong %n1) %f1 = call ulong(ulong) * %fib(ulong %n1)
%result = add ulong %f2, %f1 %result = add ulong %f2, %f1
ret ulong %result ret ulong %result
end end
@ -31,6 +31,6 @@ HasArg:
Continue: Continue:
%n = phi int [%n1, %HasArg], [1, %0] %n = phi int [%n1, %HasArg], [1, %0]
%N = cast int %n to ulong %N = cast int %n to ulong
%F = call ulong(ulong) %fib(ulong %N) %F = call ulong(ulong) *%fib(ulong %N)
ret ulong %F ret ulong %F
end end

View File

@ -12,7 +12,7 @@ int "FuncToInlineInto"(int %arg) ; Instrs can be const prop'd away
begin begin
%x = add int %arg, 1 %x = add int %arg, 1
%y = sub int 1, -1 %y = sub int 1, -1
%p = call int() %FuncToInline() %p = call int %FuncToInline()
%z = add int %x, %y %z = add int %x, %y
%q = add int %p, %z %q = add int %p, %z
@ -21,7 +21,7 @@ end
int "main"() int "main"()
begin begin
%z = call int(int) %FuncToInlineInto(int 1) %z = call int %FuncToInlineInto(int 1)
ret int %z ret int %z
end end

View File

@ -25,6 +25,6 @@ bb1:
bb2: bb2:
%Msg = cast ulong 0 to sbyte * %Msg = cast ulong 0 to sbyte *
call int (sbyte*, int, float) %printf(sbyte* %Msg, int %m1, float %z3) call int %printf(sbyte* %Msg, int %m1, float %z3)
ret int 0 ret int 0
end end