[ARM] Do not generate Tag_DIV_use=AllowDIVExt when hardware div is non-optional:...
[oota-llvm.git] / test / Analysis / GlobalsModRef / chaining-analysis.ll
index 137b2c14d3dc151027dc6a033f48004bccdecb9e..aeb76e42d295116a97de277bf8e870822b581b68 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -globalsmodref-aa -gvn | llvm-dis | not grep load
+; RUN: opt < %s -basicaa -globalsmodref-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,6 +8,10 @@
 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]