summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/large-alloca.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/R600/large-alloca.ll')
-rw-r--r--llvm/test/CodeGen/R600/large-alloca.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/large-alloca.ll b/llvm/test/CodeGen/R600/large-alloca.ll
new file mode 100644
index 00000000000..882a05149ab
--- /dev/null
+++ b/llvm/test/CodeGen/R600/large-alloca.ll
@@ -0,0 +1,10 @@
+; XFAIL: *
+; RUN: llc -march=r600 -mcpu=SI < %s
+
+define void @large_alloca(i32 addrspace(1)* %out, i32 %x) nounwind {
+ %large = alloca [256 x i32], align 4
+ %gep = getelementptr [256 x i32]* %large, i32 0, i32 255
+ store i32 %x, i32* %gep
+ ret void
+}
+
OpenPOWER on IntegriCloud