aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/BasicAA/2003-09-19-LocalArgument.ll')
-rw-r--r--test/Analysis/BasicAA/2003-09-19-LocalArgument.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll b/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
index ee6ac9c65a..9bcd4ea952 100644
--- a/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
+++ b/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
@@ -1,12 +1,12 @@
; In this test, a local alloca cannot alias an incoming argument.
-; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
+; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
-int %test(int* %P) {
- %X = alloca int
- %V1 = load int* %P
- store int 0, int* %X
- %V2 = load int* %P
- %Diff = sub int %V1, %V2
- ret int %Diff
+define i32 @test(i32* %P) {
+ %X = alloca i32
+ %V1 = load i32* %P
+ store i32 0, i32* %X
+ %V2 = load i32* %P
+ %Diff = sub i32 %V1, %V2
+ ret i32 %Diff
}