summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-07 22:15:20 +0000
committerChris Lattner <sabre@nondot.org>2006-12-07 22:15:20 +0000
commitafa2159a545c512ad2c286dc5901ef864823a759 (patch)
tree98317c9fffa8f9a941e192a734180138b2d38ce8 /test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
parent0ac961d9c1c511204abfb02f5c25c92da6b75eb6 (diff)
downloadllvm-afa2159a545c512ad2c286dc5901ef864823a759.tar.gz
llvm-afa2159a545c512ad2c286dc5901ef864823a759.tar.bz2
llvm-afa2159a545c512ad2c286dc5901ef864823a759.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll')
-rw-r--r--test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll b/test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
new file mode 100644
index 0000000000..a45991c234
--- /dev/null
+++ b/test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
@@ -0,0 +1,26 @@
+; RUN: llvm-as < %s | llc -march=ppc64 &&
+; RUN: llvm-as < %s | llc -march=ppc32 &&
+; RUN: llvm-as < %s | llc
+
+void %bitap() {
+entry:
+ %RMask.i = alloca [256 x uint], align 16 ; <[256 x uint]*> [#uses=1]
+ %buffer = alloca [147456 x sbyte], align 16 ; <[147456 x sbyte]*> [#uses=0]
+ br bool false, label %bb19, label %bb.preheader
+
+bb.preheader: ; preds = %entry
+ ret void
+
+bb19: ; preds = %entry
+ br bool false, label %bb12.i, label %cond_next39
+
+bb12.i: ; preds = %bb12.i, %bb19
+ %i.0.i = phi uint [ %tmp11.i, %bb12.i ], [ 0, %bb19 ] ; <uint> [#uses=2]
+ %tmp9.i = getelementptr [256 x uint]* %RMask.i, int 0, uint %i.0.i ; <uint*> [#uses=1]
+ store uint 0, uint* %tmp9.i
+ %tmp11.i = add uint %i.0.i, 1 ; <uint> [#uses=1]
+ br label %bb12.i
+
+cond_next39: ; preds = %bb19
+ ret void
+}