[WebAssembly] Convert WebAssemblyTargetObjectFile to TargetLoweringObjectFileELF
[oota-llvm.git] / test / Analysis / GlobalsModRef / chaining-analysis.ll
index e521cc1350fbe896b397d387e5690e9ee4a95440..a12d7371524a0b25387442a123222633f1589d8b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
+; RUN: opt < %s -basicaa -globals-aa -gvn -S | FileCheck %s
 
 ; This test requires the use of previous analyses to determine that
 ; doesnotmodX does not modify X (because 'sin' doesn't).
@@ -8,9 +8,13 @@
 declare double @sin(double) readnone
 
 define i32 @test(i32* %P) {
+; CHECK:      @test
+; CHECK-NEXT: store i32 12, i32* @X
+; CHECK-NEXT: call double @doesnotmodX(double 1.000000e+00)
+; CHECK-NEXT: ret i32 12
        store i32 12, i32* @X
        call double @doesnotmodX( double 1.000000e+00 )         ; <double>:1 [#uses=0]
-       %V = load i32* @X               ; <i32> [#uses=1]
+       %V = load i32, i32* @X          ; <i32> [#uses=1]
        ret i32 %V
 }