summaryrefslogtreecommitdiff
path: root/test/Transforms/ScalarRepl/volatile.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ScalarRepl/volatile.ll')
-rw-r--r--test/Transforms/ScalarRepl/volatile.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Transforms/ScalarRepl/volatile.ll b/test/Transforms/ScalarRepl/volatile.ll
index 056526cbd92b..d506cdfbd87a 100644
--- a/test/Transforms/ScalarRepl/volatile.ll
+++ b/test/Transforms/ScalarRepl/volatile.ll
@@ -1,12 +1,13 @@
-; RUN: opt < %s -scalarrepl -S | grep "load volatile"
-; RUN: opt < %s -scalarrepl -S | grep "store volatile"
+; RUN: opt < %s -scalarrepl -S | FileCheck %s
define i32 @voltest(i32 %T) {
%A = alloca {i32, i32}
%B = getelementptr {i32,i32}* %A, i32 0, i32 0
store volatile i32 %T, i32* %B
+; CHECK: store volatile
%C = getelementptr {i32,i32}* %A, i32 0, i32 1
%X = load volatile i32* %C
+; CHECK: load volatile
ret i32 %X
}