aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Mips/cprestore-warning-unused.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/cprestore-warning-unused.s')
-rw-r--r--test/MC/Mips/cprestore-warning-unused.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Mips/cprestore-warning-unused.s b/test/MC/Mips/cprestore-warning-unused.s
new file mode 100644
index 000000000000..41a5df715977
--- /dev/null
+++ b/test/MC/Mips/cprestore-warning-unused.s
@@ -0,0 +1,10 @@
+# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic 2>%t1
+# RUN: FileCheck %s < %t1
+
+ .text
+ .set noreorder
+ .cpload $25
+ .set reorder
+
+ jal $25
+# CHECK: :[[@LINE-1]]:3: warning: no .cprestore used in PIC mode