summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/lif-svr4pic.d
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mips/lif-svr4pic.d')
-rw-r--r--gas/testsuite/gas/mips/lif-svr4pic.d30
1 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/lif-svr4pic.d b/gas/testsuite/gas/mips/lif-svr4pic.d
new file mode 100644
index 00000000000..db09a7fd54c
--- /dev/null
+++ b/gas/testsuite/gas/mips/lif-svr4pic.d
@@ -0,0 +1,30 @@
+#objdump: -dr --prefix-addresses -mmips:3000
+#name: MIPS lifloat-svr4pic
+#as: -mips1 -mcpu=r3000 -KPIC -EB --defsym SVR4=1
+#source: lifloat.s
+
+# Test the li.d and li.s macros with -KPIC.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> lw \$at,0\(\$gp\)
+[ ]*0: R_MIPS_GOT16 .rodata
+0+0004 <[^>]*> nop
+0+0008 <[^>]*> lw \$a0,0\(\$at\)
+[ ]*8: R_MIPS_LO16 .rodata
+0+000c <[^>]*> lw \$a1,4\(\$at\)
+[ ]*c: R_MIPS_LO16 .rodata
+0+0010 <[^>]*> lw \$at,0\(\$gp\)
+[ ]*10: R_MIPS_GOT16 .rodata
+0+0014 <[^>]*> nop
+0+0018 <[^>]*> lwc1 \$f5,8\(\$at\)
+[ ]*18: R_MIPS_LO16 .rodata
+0+001c <[^>]*> lwc1 \$f4,12\(\$at\)
+[ ]*1c: R_MIPS_LO16 .rodata
+0+0020 <[^>]*> lui \$a0,0x3f8f
+0+0024 <[^>]*> ori \$a0,\$a0,0xcd36
+0+0028 <[^>]*> lui \$at,0x3f8f
+0+002c <[^>]*> ori \$at,\$at,0xcd36
+0+0030 <[^>]*> mtc1 \$at,\$f4
+ ...