mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
15f17a7c47
patch by Lauro git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32577 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
597 B
LLVM
20 lines
597 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep "805306384"
|
|
|
|
|
|
int %main() {
|
|
entry:
|
|
%retval = alloca int, align 4 ; <int*> [#uses=2]
|
|
%tmp = alloca int, align 4 ; <int*> [#uses=2]
|
|
%a = alloca [805306369 x sbyte], align 16 ; <[805306369 x sbyte]*> [#uses=0]
|
|
"alloca point" = bitcast int 0 to int ; <int> [#uses=0]
|
|
store int 0, int* %tmp
|
|
%tmp = load int* %tmp ; <int> [#uses=1]
|
|
store int %tmp, int* %retval
|
|
br label %return
|
|
|
|
return: ; preds = %entry
|
|
%retval = load int* %retval ; <int> [#uses=1]
|
|
ret int %retval
|
|
}
|