mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6347 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
270 B
LLVM
14 lines
270 B
LLVM
; RUN: if as < %s | opt -scalarrepl -mem2reg | dis | grep alloca
|
|
; RUN: then exit 1
|
|
; RUN: else exit 0
|
|
; RUN: fi
|
|
|
|
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
|
|
}
|