Make custom lowering of ADD work correctly. This
[oota-llvm.git] / test / ExecutionEngine / test-malloc.ll
index 7a7f245bf5cf042a747b80922da5970b1db66ca1..bc857ed5edcae9375f5a262ace026c5fc38ef9b4 100644 (file)
@@ -1,14 +1,14 @@
-; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: llvm-as %s -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
-
-int %main() {
-   %X = malloc int                ; constant size
-   %Y = malloc int, uint 100      ; constant size
-   %u = add uint 1, 2
-   %Z = malloc int, uint %u       ; variable size
-   free int* %X
-   free int* %Y
-   free int* %Z
-   ret int 0
+define i32 @main() {
+       %X = malloc i32         ; <i32*> [#uses=1]
+       %Y = malloc i32, i32 100                ; <i32*> [#uses=1]
+       %u = add i32 1, 2               ; <i32> [#uses=1]
+       %Z = malloc i32, i32 %u         ; <i32*> [#uses=1]
+       free i32* %X
+       free i32* %Y
+       free i32* %Z
+       ret i32 0
 }
+