aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-29 17:38:47 +0000
committerChris Lattner <sabre@nondot.org>2010-03-29 17:38:47 +0000
commite27e02b1a48a715be93952a7cef49cdd19e9593b (patch)
treef6fc396b08e2e9ebdf5377560ab0244b32b9da23 /test/CodeGen
parentd7ba0f2ade9374adbfa7ce62de5d4982e6e10d9c (diff)
downloadexternal_llvm-e27e02b1a48a715be93952a7cef49cdd19e9593b.zip
external_llvm-e27e02b1a48a715be93952a7cef49cdd19e9593b.tar.gz
external_llvm-e27e02b1a48a715be93952a7cef49cdd19e9593b.tar.bz2
From Kalle Raiskila:
"the bigstack patch for SPU, with testcase. It is essentially the patch committed as 97091, and reverted as 97099, but with the following additions: -in vararg handling, registers are marked to be live, to not confuse the register scavenger -function prologue and epilogue are not emitted, if the stack size is 16. 16 means it is empty - there is only the register scavenger emergency spill slot, which is not used as there is no stack." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/CellSPU/bigstack.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/CellSPU/bigstack.ll b/test/CodeGen/CellSPU/bigstack.ll
new file mode 100644
index 0000000..5483f46
--- /dev/null
+++ b/test/CodeGen/CellSPU/bigstack.ll
@@ -0,0 +1,17 @@
+; RUN: llc < %s -march=cellspu -o %t1.s
+; RUN: grep lqx %t1.s | count 4
+; RUN: grep il %t1.s | grep -v file | count 7
+; RUN: grep stqx %t1.s | count 2
+
+define i32 @bigstack() nounwind {
+entry:
+ %avar = alloca i32
+ %big_data = alloca [2048 x i32]
+ store i32 3840, i32* %avar, align 4
+ br label %return
+
+return:
+ %retval = load i32* %avar
+ ret i32 %retval
+}
+