test: Prefer CHECK-LABEL to CHECK in branchweight tests
[oota-llvm.git] / test / Transforms / ScalarRepl / volatile.ll
index 45427613876a2d5e52bc515c32c41d97e212f2b3..d506cdfbd87a16f84d4c90838db5aaf2ff3c327c 100644 (file)
@@ -1,12 +1,13 @@
-; RUN: opt %s -scalarrepl | llvm-dis | grep {volatile load}
-; RUN: opt %s -scalarrepl | llvm-dis | 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
 }