aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/big-callframe.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 10:51:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 10:51:19 +0000
commiteb11fae6d08f479c0799db45860a98af528fa6e7 (patch)
tree44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /test/CodeGen/AArch64/big-callframe.ll
parentb8a2042aa938069e862750553db0e4d82d25822c (diff)
Notes
Diffstat (limited to 'test/CodeGen/AArch64/big-callframe.ll')
-rw-r--r--test/CodeGen/AArch64/big-callframe.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/big-callframe.ll b/test/CodeGen/AArch64/big-callframe.ll
new file mode 100644
index 000000000000..d5ee233095ca
--- /dev/null
+++ b/test/CodeGen/AArch64/big-callframe.ll
@@ -0,0 +1,16 @@
+; RUN: llc -o - %s -verify-machineinstrs | FileCheck %s
+; XFAIL: *
+; 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
+}