Make tests register allocation independent again.
[oota-llvm.git] / test / Analysis / GlobalsModRef / aliastest.ll
index 19def38595329e0775fb14b825b8d733ed671c29..75af4dc5b93467b375d9f57e52ce66c7babcdd73 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
-%X = internal global int 4
+; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | not grep load
+@X = internal global i32 4             ; <i32*> [#uses=1]
 
-int %test(int *%P) {
-  store int 7, int* %P
-  store int 12,  int* %X   ;; cannot alias P, X's addr isn't taken
-  %V = load int* %P
-  ret int %V
+define i32 @test(i32* %P) {
+       store i32 7, i32* %P
+       store i32 12, i32* @X
+       %V = load i32* %P               ; <i32> [#uses=1]
+       ret i32 %V
 }