mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
fa7c9efcd3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175093 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|