aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r--ld/testsuite/ld-mips-elf/branch-misc-1.d30
-rw-r--r--ld/testsuite/ld-mips-elf/branch-misc-2.d30
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp3
3 files changed, 63 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/branch-misc-1.d b/ld/testsuite/ld-mips-elf/branch-misc-1.d
new file mode 100644
index 0000000..08b93de
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/branch-misc-1.d
@@ -0,0 +1,30 @@
+#name: MIPS branch-misc-1
+#source: ../../../gas/testsuite/gas/mips/branch-misc-1.s
+#objdump: --prefix-addresses -tdr --show-raw-insn
+#ld: -Ttext 0x400000 -e 0x400000
+
+.*: file format elf.*mips.*
+
+#...
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+ \.\.\.
+0+40003c <[^>]*> 0411fff0 bal 0+400000 <[^>]*>
+0+400040 <[^>]*> 00000000 nop
+0+400044 <[^>]*> 0411fff3 bal 0+400014 <[^>]*>
+0+400048 <[^>]*> 00000000 nop
+0+40004c <[^>]*> 0411fff6 bal 0+400028 <[^>]*>
+0+400050 <[^>]*> 00000000 nop
+0+400054 <[^>]*> 0411000a bal 0+400080 <[^>]*>
+0+400058 <[^>]*> 00000000 nop
+0+40005c <[^>]*> 0411000d bal 0+400094 <[^>]*>
+0+400060 <[^>]*> 00000000 nop
+0+400064 <[^>]*> 04110010 bal 0+4000a8 <[^>]*>
+0+400068 <[^>]*> 00000000 nop
+ \.\.\.
+ \.\.\.
+ \.\.\.
+ \.\.\.
+#pass
diff --git a/ld/testsuite/ld-mips-elf/branch-misc-2.d b/ld/testsuite/ld-mips-elf/branch-misc-2.d
new file mode 100644
index 0000000..86c7070
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/branch-misc-2.d
@@ -0,0 +1,30 @@
+#name: MIPS branch-misc-2
+#source: ../../../gas/testsuite/gas/mips/branch-misc-2.s
+#objdump: --prefix-addresses -tdr --show-raw-insn
+#ld: -Ttext 0x400000 -e 0x400000
+
+.*: file format elf.*mips.*
+
+#...
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+ \.\.\.
+0+40003c <[^>]*> 0411fff0 bal 0+400000 <[^>]*>
+0+400040 <[^>]*> 00000000 nop
+0+400044 <[^>]*> 0411fff3 bal 0+400014 <[^>]*>
+0+400048 <[^>]*> 00000000 nop
+0+40004c <[^>]*> 0411fff6 bal 0+400028 <[^>]*>
+0+400050 <[^>]*> 00000000 nop
+0+400054 <[^>]*> 0411000a bal 0+400080 <[^>]*>
+0+400058 <[^>]*> 00000000 nop
+0+40005c <[^>]*> 0411000d bal 0+400094 <[^>]*>
+0+400060 <[^>]*> 00000000 nop
+0+400064 <[^>]*> 04110010 bal 0+4000a8 <[^>]*>
+0+400068 <[^>]*> 00000000 nop
+ \.\.\.
+ \.\.\.
+ \.\.\.
+ \.\.\.
+#pass
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 03f4e32..63de3ca 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -42,5 +42,8 @@ if { [istarget mips*-*-*] } then {
run_dump_test "mips16-1"
run_dump_test "region1"
+
+ run_dump_test "branch-misc-1"
+ run_dump_test "branch-misc-2"
}
}