mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 22:46:20 +00:00
fa4c20dd92
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6427 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
200 B
LLVM
10 lines
200 B
LLVM
; RUN: as < %s | opt -scalarrepl
|
|
|
|
int %test() {
|
|
%X = alloca { [ 4 x int] }
|
|
%Y = getelementptr { [ 4 x int] }* %X, long 0, ubyte 0, long 2
|
|
store int 4, int* %Y
|
|
%Z = load int* %Y
|
|
ret int %Z
|
|
}
|