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
This commit is contained in:
Chris Lattner
2011-11-27 06:54:59 +00:00
parent 8ddff91282
commit d2bf432b2b
91 changed files with 300 additions and 318 deletions

View File

@@ -1,8 +0,0 @@
; RUN: llc < %s -march=c | grep volatile
define void @test(i32* %P) {
%X = volatile load i32* %P ; <i32> [#uses=1]
volatile store i32 %X, i32* %P
ret void
}

View File

@@ -1,10 +0,0 @@
; RUN: llc < %s -march=c | grep {\\* *volatile *\\*}
@G = external global void ()* ; <void ()**> [#uses=2]
define void @test() {
volatile store void ()* @test, void ()** @G
volatile load void ()** @G ; <void ()*>:1 [#uses=0]
ret void
}

View File

@@ -8,8 +8,8 @@ define void @test(i32* %P) {
}
define void @test2(i32* %P) {
%X = volatile load i32* %P, align 2
volatile store i32 %X, i32* %P, align 2
%X = load volatile i32* %P, align 2
store volatile i32 %X, i32* %P, align 2
ret void
}