llvm-6502/test/CodeGen/ARM/addSubConstant.ll
Rafael Espindola 15f17a7c47 Avoid creating invalid sub/add instructions on the prolog/epilog
patch by Lauro


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32577 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-14 13:31:27 +00:00

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
}