mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
f2c7301bb8
llvm-svn: 175093
14 lines
319 B
LLVM
14 lines
319 B
LLVM
; 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
|
|
store volatile i32 %T, i32* %B
|
|
; CHECK: store volatile
|
|
|
|
%C = getelementptr {i32,i32}* %A, i32 0, i32 1
|
|
%X = load volatile i32* %C
|
|
; CHECK: load volatile
|
|
ret i32 %X
|
|
}
|