summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/micromips@branch-misc-4.d
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mips/micromips@branch-misc-4.d')
-rw-r--r--gas/testsuite/gas/mips/micromips@branch-misc-4.d27
1 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/micromips@branch-misc-4.d b/gas/testsuite/gas/mips/micromips@branch-misc-4.d
new file mode 100644
index 00000000000..ecf5b989ac5
--- /dev/null
+++ b/gas/testsuite/gas/mips/micromips@branch-misc-4.d
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-4
+#as: -32
+#source: branch-misc-4.s
+
+# Verify PC-relative relocations do not overflow (microMIPS).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+ \.\.\.
+([0-9a-f]+) <[^>]*> 9400 fffe b \1 <foo>
+[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 bar
+[0-9a-f]+ <[^>]*> 0c00 nop
+([0-9a-f]+) <[^>]*> 9400 fffe b \1 <\.Lfoo>
+[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 \.Lbar
+[0-9a-f]+ <[^>]*> 0c00 nop
+ \.\.\.
+
+Disassembly of section \.init:
+([0-9a-f]+) <[^>]*> 9400 fffe b \1 <bar>
+[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 foo
+[0-9a-f]+ <[^>]*> 0c00 nop
+([0-9a-f]+) <[^>]*> 9400 fffe b \1 <\.Lbar>
+[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 \.Lfoo
+[0-9a-f]+ <[^>]*> 0c00 nop
+ \.\.\.