aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll')
-rw-r--r--test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
index f7f42ba976..e5515dde30 100644
--- a/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
+++ b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
@@ -1,15 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
-; RUN: llvm-dis | grep {load i32\\* %A}
+; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine |\
+; RUN: llvm-dis | grep {load i32\\* %A}
-declare double* %useit(int*)
+declare double* @useit(i32*)
-int %foo(uint %Amt) {
- %A = malloc int, uint %Amt
- %P = call double* %useit(int* %A)
+define i32 @foo(i32 %Amt) {
+ %A = malloc i32, i32 %Amt
+ %P = call double* @useit(i32* %A)
- %X = load int* %A
+ %X = load i32* %A
store double 0.0, double* %P
- %Y = load int* %A
- %Z = sub int %X, %Y
- ret int %Z
+ %Y = load i32* %A
+ %Z = sub i32 %X, %Y
+ ret i32 %Z
}