aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-08-11 22:42:31 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-08-11 22:42:31 +0000
commit9029cf20e1158dbca9c95da72a646d467e871525 (patch)
treec8df228f53fbf088395f9e2006b9aa8f7125e0bd /test
parentc69c26d95e4dcffb3ab98c49f3672386b401d0f9 (diff)
downloadexternal_llvm-9029cf20e1158dbca9c95da72a646d467e871525.zip
external_llvm-9029cf20e1158dbca9c95da72a646d467e871525.tar.gz
external_llvm-9029cf20e1158dbca9c95da72a646d467e871525.tar.bz2
Enclose directive .cprestore with .set macro and nomacro to silence assembler
warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/cprestore.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/cprestore.ll b/test/CodeGen/Mips/cprestore.ll
new file mode 100644
index 0000000..a275c8b
--- /dev/null
+++ b/test/CodeGen/Mips/cprestore.ll
@@ -0,0 +1,16 @@
+; RUN: llc -march=mipsel < %s | FileCheck %s
+
+; 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)