aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/implicit-sret.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/implicit-sret.ll')
-rw-r--r--test/CodeGen/AArch64/implicit-sret.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/implicit-sret.ll b/test/CodeGen/AArch64/implicit-sret.ll
new file mode 100644
index 0000000..264d519
--- /dev/null
+++ b/test/CodeGen/AArch64/implicit-sret.ll
@@ -0,0 +1,13 @@
+; RUN: llc %s -o - -mtriple=arm64-apple-ios7.0 | FileCheck %s
+;
+; Handle implicit sret arguments that are generated on-the-fly during lowering.
+; <rdar://19792160> Null pointer assertion in AArch64TargetLowering
+
+; CHECK-LABEL: big_retval
+; ... str or stp for the first 1024 bits
+; CHECK: strb wzr, [x8, #128]
+; CHECK: ret
+define i1032 @big_retval() {
+entry:
+ ret i1032 0
+}