summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/large-stack.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM/large-stack.ll')
-rw-r--r--llvm/test/CodeGen/ARM/large-stack.ll12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/large-stack.ll b/llvm/test/CodeGen/ARM/large-stack.ll
index 4402659e13b..695c4c6e1d1 100644
--- a/llvm/test/CodeGen/ARM/large-stack.ll
+++ b/llvm/test/CodeGen/ARM/large-stack.ll
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s | llc -march=arm &&
-; RUN: llvm-as < %s | llc -march=arm -enable-thumb
+; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
+; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep 'ldr.*LCP' | wc -l | grep 5
define void @test1() {
%tmp = alloca [ 64 x i32 ] , align 4
@@ -10,3 +11,12 @@ define void @test2() {
%tmp = alloca [ 4168 x i8 ] , align 4
ret void
}
+
+define i32 @test3() {
+ %retval = alloca i32, align 4
+ %tmp = alloca i32, align 4
+ %a = alloca [805306369 x i8], align 16
+ store i32 0, i32* %tmp
+ %tmp1 = load i32* %tmp
+ ret i32 %tmp1
+}
OpenPOWER on IntegriCloud