diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-24 10:45:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-24 10:45:44 +0000 |
commit | 75920ad42487656cbfe8323376ae3ce122fd75a3 (patch) | |
tree | cfeade2dbe24c2731e5039292a15f13d1273d12d /test/Analysis/GlobalsModRef/chaining-analysis.ll | |
parent | c6490d138fdff749a423da104f2d29cd41450802 (diff) |
FileCheck-ize tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/GlobalsModRef/chaining-analysis.ll')
-rw-r--r-- | test/Analysis/GlobalsModRef/chaining-analysis.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Analysis/GlobalsModRef/chaining-analysis.ll b/test/Analysis/GlobalsModRef/chaining-analysis.ll index 431b2a68cf..aeb76e42d2 100644 --- a/test/Analysis/GlobalsModRef/chaining-analysis.ll +++ b/test/Analysis/GlobalsModRef/chaining-analysis.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | 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] |