Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / test / Transforms / GVN / pre-basic-add.ll
index e9d7047e8b925e7e362dd0db9314d4777f1b0c7d..fa4e2e3abded05ebac9f17e60485844a9ff33d3a 100644 (file)
@@ -1,12 +1,12 @@
-; RUN: opt %s -gvn -enable-pre | llvm-dis | grep {.pre}
+; RUN: opt < %s -gvn -enable-pre -S | grep ".pre"
 
 @H = common global i32 0               ; <i32*> [#uses=2]
 @G = common global i32 0               ; <i32*> [#uses=1]
 
 define i32 @test() nounwind {
 entry:
-       %0 = load i32* @H, align 4              ; <i32> [#uses=2]
-       %1 = call i32 (...)* @foo() nounwind            ; <i32> [#uses=1]
+       %0 = load i32, i32* @H, align 4         ; <i32> [#uses=2]
+       %1 = call i32 (...) @foo() nounwind             ; <i32> [#uses=1]
        %2 = icmp ne i32 %1, 0          ; <i1> [#uses=1]
        br i1 %2, label %bb, label %bb1