test: Prefer CHECK-LABEL to CHECK in branchweight tests
[oota-llvm.git] / test / Transforms / ScalarRepl / volatile.ll
index 3ff322e065cbbdd5a7b4d144eb8ebb671de7c07c..d506cdfbd87a16f84d4c90838db5aaf2ff3c327c 100644 (file)
@@ -1,12 +1,13 @@
-; RUN: opt < %s -scalarrepl -S | grep {volatile load}
-; RUN: opt < %s -scalarrepl -S | grep {volatile store}
+; 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
-       volatile store i32 %T, i32* %B
+       store volatile i32 %T, i32* %B
+; CHECK: store volatile
 
        %C = getelementptr {i32,i32}* %A, i32 0, i32 1
-       %X = volatile load i32* %C
+       %X = load volatile i32* %C
+; CHECK: load volatile
        ret i32 %X
 }