From 75920ad42487656cbfe8323376ae3ce122fd75a3 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 24 Apr 2012 10:45:44 +0000 Subject: FileCheck-ize tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155434 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/GlobalsModRef/chaining-analysis.ll | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/Analysis/GlobalsModRef/chaining-analysis.ll') diff --git a/test/Analysis/GlobalsModRef/chaining-analysis.ll b/test/Analysis/GlobalsModRef/chaining-analysis.ll index 431b2a6..aeb76e4 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 ) ; :1 [#uses=0] %V = load i32* @X ; [#uses=1] -- cgit v1.1