mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
5b9e2394dc
llvm-svn: 6965
11 lines
223 B
LLVM
11 lines
223 B
LLVM
; RUN: as < %s | opt -scalarrepl -mem2reg | dis | not grep alloca
|
|
|
|
int %test() {
|
|
%X = alloca { int, float }
|
|
%Y = getelementptr {int,float}* %X, long 0, ubyte 0
|
|
store int 0, int* %Y
|
|
|
|
%Z = load int* %Y
|
|
ret int %Z
|
|
}
|