summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/big-callframe.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AArch64/big-callframe.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/big-callframe.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/big-callframe.ll b/llvm/test/CodeGen/AArch64/big-callframe.ll
new file mode 100644
index 00000000000..6e15795b272
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/big-callframe.ll
@@ -0,0 +1,15 @@
+; RUN: llc -o - %s -verify-machineinstrs | FileCheck %s
+; Make sure we use a frame pointer and fp relative addressing for the emergency
+; spillslot when we have gigantic callframes.
+; CHECK-LABEL: func:
+; CHECK: stur {{.*}}, [x29, #{{.*}}] // 8-byte Folded Spill
+; CHECK: ldur {{.*}}, [x29, #{{.*}}] // 8-byte Folded Reload
+target triple = "aarch64--"
+declare void @extfunc([4096 x i64]* byval %p)
+define void @func([4096 x i64]* %z) {
+ %lvar = alloca [31 x i8]
+ %v = load volatile [31 x i8], [31 x i8]* %lvar
+ store volatile [31 x i8] %v, [31 x i8]* %lvar
+ call void @extfunc([4096 x i64]* byval %z)
+ ret void
+}
OpenPOWER on IntegriCloud