Adjust test cases to match the fact that methods are now explicit pointer values...
authorChris Lattner <sabre@nondot.org>
Wed, 3 Oct 2001 14:50:12 +0000 (14:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 3 Oct 2001 14:50:12 +0000 (14:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@702 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/allocatest2.ll
test/Feature/calltest.ll
test/Feature/prototype.ll
test/Feature/testvarargs.ll
test/fib.ll
test/inlinetest.ll
test/sched.ll

index 8500d9f4177a13983d8a86ab3d1326c750be5673..2775f0129e49973f8e17361e0926a36933885e13 100644 (file)
@@ -10,7 +10,7 @@ bb1:            ;;<label>
         %reg110 = shl uint %n, ubyte 2          ;;<uint>
         %reg108 = alloca [ubyte], uint %reg110            ;;<ubyte*>
         %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*>
        cast uint 7 to ulong *
         %reg114 = add ulong* %cast113, %0                ;;<ulong*>
@@ -19,7 +19,7 @@ bb1:            ;;<label>
         %cast1001 = cast ulong* %reg117 to uint         ;;<uint>
         %reg118 = alloca [ubyte], uint %cast1001          ;;<ubyte*>
         %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>
 end
 
index f478e500dfc181844fe246c165fb0cd6e8619c9d..192dca39fee4935be528446825b4adcad3f8a581 100644 (file)
@@ -5,7 +5,7 @@ implementation
 
 int "main"(int %argc)   ; TODO: , sbyte **argv, sbyte **envp)
 begin
-        %retval = call int (int) %test(int %argc)
+        %retval = call int (int) *%test(int %argc)
         %two    = add int %retval, %retval
         ret int %two
 end
index cea4f32b2b2b68371db571b9339e0aa1b264b3d5..6874ca6b53dc788a2c8cd2d2fffbd4a1321aac26 100644 (file)
@@ -4,7 +4,7 @@ declare int "bar"(int %in)
 
 int "foo"(int %blah)
 begin
-  %xx = call int(int) %bar(int %blah)
+  %xx = call int %bar(int %blah)
   ret int %xx
 end
 
index 79c9000265578e16130db027893d71aa7b9f7944..a26c81ac5b5171c77f0559e41f7819842a2e7e31 100644 (file)
@@ -5,7 +5,7 @@ declare int "printf"(sbyte*, ...)   ;; Prototype for: int __builtin_printf(const
 int "testvarar"()
 begin
        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
 end
 
index 9c54a4a9fbfd2f7c881bb8ede8090399105c1e32..db0bca5d142794457a656be28c57f47d6b305d67 100644 (file)
@@ -13,8 +13,8 @@ BaseCase:
 RecurseCase:
   %n2 = sub ulong %n, 2
   %n1 = sub ulong %n, 1
-  %f2 = call ulong(ulong) %fib(ulong %n2)
-  %f1 = call ulong(ulong) %fib(ulong %n1)
+  %f2 = call ulong(ulong) %fib(ulong %n2)
+  %f1 = call ulong(ulong) %fib(ulong %n1)
   %result = add ulong %f2, %f1
   ret ulong %result
 end
@@ -31,6 +31,6 @@ HasArg:
 Continue:
   %n = phi int [%n1, %HasArg], [1, %0]
   %N = cast int %n to ulong
-  %F = call ulong(ulong) %fib(ulong %N)
+  %F = call ulong(ulong) *%fib(ulong %N)
   ret ulong %F
 end
index f3b68d8b443b48841e5406e945e9b075d4945c1d..7f1b1c3dd9dbdf2371cef9c4a0ab1175f4e9b4ae 100644 (file)
@@ -12,7 +12,7 @@ int "FuncToInlineInto"(int %arg)     ; Instrs can be const prop'd away
 begin
        %x = add int %arg, 1
         %y = sub int 1, -1
-        %p = call int() %FuncToInline()
+        %p = call int %FuncToInline()
         %z = add int %x, %y
         %q = add int %p, %z
 
@@ -21,7 +21,7 @@ end
 
 int "main"()
 begin
-        %z = call int(int) %FuncToInlineInto(int 1)
+        %z = call int %FuncToInlineInto(int 1)
         ret int %z
 end
 
index 4083d78d3f265bfba35bcacb0419ce5e6f820910..b8de02ddb95dd1f97a234878231a38c900ad2fbc 100644 (file)
@@ -25,6 +25,6 @@ bb1:
 
 bb2:
        %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
 end