summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-03 15:26:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-03 15:26:42 +0000
commit6a8700301ca6f8f2f5f787c8d1f5206a7dfceed6 (patch)
tree289c168d74ff39e56a399e198320dc859353beb2 /test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll
parentdf3f25656d97deda816f74f10be14821fd5259e9 (diff)
downloadllvm-6a8700301ca6f8f2f5f787c8d1f5206a7dfceed6.tar.gz
llvm-6a8700301ca6f8f2f5f787c8d1f5206a7dfceed6.tar.bz2
llvm-6a8700301ca6f8f2f5f787c8d1f5206a7dfceed6.tar.xz
Revert "For ARM stack frames that utilize variable sized objects and have either", it is breaking oggenc with Clang for ARMv6.
This reverts commit 8d6e29cfda270be483abf638850311670829ee65. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll')
-rw-r--r--test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll b/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll
index 2246de35e0..e0946c7ea3 100644
--- a/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll
+++ b/test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll
@@ -7,12 +7,19 @@
define void @t() nounwind ssp {
entry:
; CHECK: t:
- %size = mul i32 8, 2
+; CHECK: push {r4, r7}
+; CHECK: mov r0, sp
+; CHECK: add r7, sp, #4
+; CHECK: bic r0, r0, #7
; CHECK: subs r0, #16
; CHECK: mov sp, r0
- %vla_a = alloca i8, i32 %size, align 8
+; CHECK: mov r0, sp
+; CHECK: bic r0, r0, #7
; CHECK: subs r0, #16
; CHECK: mov sp, r0
+
+ %size = mul i32 8, 2
+ %vla_a = alloca i8, i32 %size, align 8
%vla_b = alloca i8, i32 %size, align 8
unreachable
}