summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nds32/relax_jmp.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-nds32/relax_jmp.d')
-rw-r--r--ld/testsuite/ld-nds32/relax_jmp.d12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nds32/relax_jmp.d b/ld/testsuite/ld-nds32/relax_jmp.d
new file mode 100644
index 0000000..b1d2051
--- /dev/null
+++ b/ld/testsuite/ld-nds32/relax_jmp.d
@@ -0,0 +1,12 @@
+#as: -Os
+#ld: -static --relax -T $srcdir/$subdir/relax_jmp.ld
+#objdump: -d --prefix-addresses -j .text
+
+.*: file format .*nds32.*
+
+
+Disassembly of section .text:
+0+0000 <[^>]*> j8 00000006 <main>
+0+0002 <[^>]*> jal 00000006 <main>
+0+0006 <[^>]*> srli45 \$r0, 0
+