mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
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:
@@ -90,7 +90,7 @@ entry:
|
||||
br label %bb4
|
||||
|
||||
bb: ; preds = %bb4
|
||||
%0 = volatile load i32* @x, align 4 ; <i32> [#uses=1]
|
||||
%0 = load volatile i32* @x, align 4 ; <i32> [#uses=1]
|
||||
store i32 %0, i32* %vol.0, align 4
|
||||
store i32 0, i32* %l_52, align 4
|
||||
br label %bb2
|
||||
|
||||
@@ -14,7 +14,7 @@ loop:
|
||||
%i = phi i64 [ 0, %entry ], [ %i.next, %loop ]
|
||||
%ip = add i64 %i, 1
|
||||
%p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 2, i64 %ip, i64 1
|
||||
volatile store double 0.0, double* %p.2.ip.1
|
||||
store volatile double 0.0, double* %p.2.ip.1
|
||||
%i.next = add i64 %i, 1
|
||||
br label %loop
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ while.cond: ; preds = %while.cond, %entry
|
||||
br i1 %tobool, label %while.end, label %while.cond
|
||||
|
||||
while.end: ; preds = %while.cond
|
||||
volatile store i32 0, i32* %result.i
|
||||
%tmp.i = volatile load i32* %result.i ; <i32> [#uses=0]
|
||||
store volatile i32 0, i32* %result.i
|
||||
%tmp.i = load volatile i32* %result.i ; <i32> [#uses=0]
|
||||
ret i32 0
|
||||
}
|
||||
declare i32 @bar()
|
||||
|
||||
Reference in New Issue
Block a user