summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-09-10 05:15:04 +0000
committerBob Wilson <bob.wilson@apple.com>2010-09-10 05:15:04 +0000
commit8617234658019c187e3ad80303a8fbcb4e332c46 (patch)
tree78afefb0c3e59d8fc3908764632032f0f66c7fd0 /llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
parent428a9a58facb5aafed162386944f91afa17a1023 (diff)
downloadbcm5719-llvm-8617234658019c187e3ad80303a8fbcb4e332c46.tar.gz
bcm5719-llvm-8617234658019c187e3ad80303a8fbcb4e332c46.zip
Fix merging base-updates for VLDM/VSTM: Before I switched these instructions
to use AddrMode4, there was a count of the registers stored in one of the operands. I changed that to just count the operands but forgot to adjust for the size of D registers. This was noticed by Evan as a performance problem but it is a potential correctness bug as well, since it is possible that this could merge a base update with a non-matching immediate. llvm-svn: 113576
Diffstat (limited to 'llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll')
-rw-r--r--llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll b/llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
index 81483cb4e7c..ee63656b26d 100644
--- a/llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
+++ b/llvm/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
@@ -1,11 +1,15 @@
-; RUN: llc < %s -march=arm -mattr=+v6,+vfp2
+; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 | FileCheck %s
@quant_coef = external global [6 x [4 x [4 x i32]]] ; <[6 x [4 x [4 x i32]]]*> [#uses=1]
@dequant_coef = external global [6 x [4 x [4 x i32]]] ; <[6 x [4 x [4 x i32]]]*> [#uses=1]
@A = external global [4 x [4 x i32]] ; <[4 x [4 x i32]]*> [#uses=1]
+; CHECK: dct_luma_sp:
define fastcc i32 @dct_luma_sp(i32 %block_x, i32 %block_y, i32* %coeff_cost) {
entry:
+; Make sure to use base-updating stores for saving callee-saved registers.
+; CHECK-NOT: sub sp
+; CHECK: vstmdb sp!
%predicted_block = alloca [4 x [4 x i32]], align 4 ; <[4 x [4 x i32]]*> [#uses=1]
br label %cond_next489
OpenPOWER on IntegriCloud