mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
28beeeac4d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
548 B
LLVM
21 lines
548 B
LLVM
; PR1137
|
|
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
|
|
; RUN: llvm-upgrade < %s | grep {tmp = alloca} | count 1
|
|
;
|
|
target datalayout = "e-p:32:32"
|
|
target endian = little
|
|
target pointersize = 32
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
implementation ; Functions:
|
|
|
|
void %main() {
|
|
entry:
|
|
%tmp = alloca uint, align 4 ; <uint*> [#uses=1]
|
|
%tmp = alloca int, align 4 ; <int*> [#uses=1]
|
|
"alloca point" = cast int 0 to int ; <int> [#uses=0]
|
|
store uint 1, uint* %tmp
|
|
store int 2, int* %tmp
|
|
ret void
|
|
}
|