summaryrefslogtreecommitdiff
path: root/test/Transforms/ScalarRepl
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-11-27 06:54:59 +0000
committerChris Lattner <sabre@nondot.org>2011-11-27 06:54:59 +0000
commitd2bf432b2b6ba02e20958953a237213d48b00f20 (patch)
treee7f62c784abde309223ad5206d56fa2d33dd8b12 /test/Transforms/ScalarRepl
parent8ddff91282ec36360677d0febd34803fd9f02153 (diff)
downloadllvm-d2bf432b2b6ba02e20958953a237213d48b00f20.tar.gz
llvm-d2bf432b2b6ba02e20958953a237213d48b00f20.tar.bz2
llvm-d2bf432b2b6ba02e20958953a237213d48b00f20.tar.xz
Upgrade syntax of tests using volatile instructions to use 'load volatile' instead of 'volatile load', which is archaic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl')
-rw-r--r--test/Transforms/ScalarRepl/volatile.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/ScalarRepl/volatile.ll b/test/Transforms/ScalarRepl/volatile.ll
index ab276b043e..fadf1aa276 100644
--- a/test/Transforms/ScalarRepl/volatile.ll
+++ b/test/Transforms/ScalarRepl/volatile.ll
@@ -4,9 +4,9 @@
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
%C = getelementptr {i32,i32}* %A, i32 0, i32 1
- %X = volatile load i32* %C
+ %X = load volatile i32* %C
ret i32 %X
}