aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-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
4 files changed, 69 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 094013c..6416a8a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-18 Chris Demetriou <cgd@broadcom.com>
+
+ * ld-mips-elf/branch-misc-1.d: New file.
+ * ld-mips-elf/branch-misc-2.d: New file.
+ * ld-mips-elf/mips-elf.exp: Run new tests.
+
2002-09-05 Alan Modra <amodra@bigpond.net.au>
* ld-sh/sh64/cmpct1.xd: Adjust for lack of abs section sym.
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"
}
}