aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/cprestore.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/cprestore.ll')
-rw-r--r--test/CodeGen/Mips/cprestore.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/cprestore.ll b/test/CodeGen/Mips/cprestore.ll
new file mode 100644
index 000000000000..391f5c714dbb
--- /dev/null
+++ b/test/CodeGen/Mips/cprestore.ll
@@ -0,0 +1,20 @@
+; DISABLED: llc -march=mipsel < %s | FileCheck %s
+; RUN: false
+
+; byval is currently unsupported.
+; XFAIL: *
+
+; CHECK: .set macro
+; CHECK-NEXT: .cprestore
+; CHECK-NEXT: .set nomacro
+
+%struct.S = type { [16384 x i32] }
+
+define void @foo2() nounwind {
+entry:
+ %s = alloca %struct.S, align 4
+ call void @foo1(%struct.S* byval %s)
+ ret void
+}
+
+declare void @foo1(%struct.S* byval)