aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nds32/gp.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-nds32/gp.d')
-rw-r--r--ld/testsuite/ld-nds32/gp.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nds32/gp.d b/ld/testsuite/ld-nds32/gp.d
new file mode 100644
index 0000000..dac6eaa
--- /dev/null
+++ b/ld/testsuite/ld-nds32/gp.d
@@ -0,0 +1,18 @@
+#as: -Os
+#ld: -static -T \$srcdir/\$subdir/gp.ld
+#objdump: -d --prefix-addresses -j .text
+
+.*: file format .*nds32.*
+
+
+Disassembly of section .text:
+0+0000 <[^>]*> addi.gp \$r0, 8192
+0+0004 <[^>]*> lbi.gp \$r0, \[\+ 8192\]
+0+0008 <[^>]*> lbsi.gp \$r0, \[\+ 8192\]
+0+000c <[^>]*> lhi.gp \$r0, \[\+ 8192\]
+0+0010 <[^>]*> lhsi.gp \$r0, \[\+ 8192\]
+0+0014 <[^>]*> lwi.gp \$r0, \[\+ 8192\]
+0+0018 <[^>]*> sbi.gp \$r0, \[\+ 8192\]
+0+001c <[^>]*> shi.gp \$r0, \[\+ 8192\]
+0+0020 <[^>]*> swi.gp \$r0, \[\+ 8192\]
+