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 | 1981c0e533ef60e9b3eb02c87b20db7cae7f6352 (patch) | |
tree | 0a4bbb665b67c4df1a4577bf455e262ae90ff938 /llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll | |
parent | 4cf911c0cdd97ffd9eed8e6d8a269cb4c075a922 (diff) | |
download | bcm5719-llvm-1981c0e533ef60e9b3eb02c87b20db7cae7f6352.tar.gz bcm5719-llvm-1981c0e533ef60e9b3eb02c87b20db7cae7f6352.zip |
FileCheck-ize tests.
llvm-svn: 155434
Diffstat (limited to 'llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll')
-rw-r--r-- | llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll b/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll index 431b2a68cf4..aeb76e42d29 100644 --- a/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll +++ b/llvm/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] |