aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-07-09 20:27:06 +0000
committerJim Grosbach <grosbach@apple.com>2010-07-09 20:27:06 +0000
commit6c7d3a16b3321c527e35322e869c73d47dba719d (patch)
treea57a5e0484184cf5682931fadb5c31b336a26b74 /test
parent8886c495a33703d8bd8319d16b62645cee4dd546 (diff)
downloadexternal_llvm-6c7d3a16b3321c527e35322e869c73d47dba719d.zip
external_llvm-6c7d3a16b3321c527e35322e869c73d47dba719d.tar.gz
external_llvm-6c7d3a16b3321c527e35322e869c73d47dba719d.tar.bz2
In the presence of variable sized objects, allocate an emergency spill slot.
rdar://8131327 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/alloca.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/alloca.ll b/test/CodeGen/ARM/alloca.ll
index 82a8c98..4a0835a 100644
--- a/test/CodeGen/ARM/alloca.ll
+++ b/test/CodeGen/ARM/alloca.ll
@@ -2,11 +2,11 @@
define void @f(i32 %a) {
entry:
-; CHECK: mov r11, sp
+; CHECK: add r11, sp, #4
%tmp = alloca i8, i32 %a ; <i8*> [#uses=1]
call void @g( i8* %tmp, i32 %a, i32 1, i32 2, i32 3 )
ret void
-; CHECK: mov sp, r11
+; CHECK: sub sp, r11, #4
}
declare void @g(i8*, i32, i32, i32, i32)