aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2002-09-18 20:50:47 +0000
committerChris Demetriou <cgd@google.com>2002-09-18 20:50:47 +0000
commit2dc83527fbad2600adff4eb9fdcb0229117bc436 (patch)
treefb13d4da48427c40b7e1324c576d6ce89d73f682 /gas
parent5afc051b4b574b1aa31f42cc51ea608432841a64 (diff)
downloadgdb-2dc83527fbad2600adff4eb9fdcb0229117bc436.zip
gdb-2dc83527fbad2600adff4eb9fdcb0229117bc436.tar.gz
gdb-2dc83527fbad2600adff4eb9fdcb0229117bc436.tar.bz2
[ gas/testsuite/ChangeLog ]
2002-09-18 Chris Demetriou <cgd@broadcom.com> * gas/mips/branch-misc-1.d: New file. * gas/mips/branch-misc-1.s: New file. * gas/mips/branch-misc-2.s: New file. * gas/mips/branch-misc-2.d: New file. * gas/mips/mips.exp: Run new tests. [ ld/testsuite/ChangeLog ] 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/mips/branch-misc-1.d27
-rw-r--r--gas/testsuite/gas/mips/branch-misc-1.s27
-rw-r--r--gas/testsuite/gas/mips/branch-misc-2.d27
-rw-r--r--gas/testsuite/gas/mips/branch-misc-2.s34
-rw-r--r--gas/testsuite/gas/mips/mips.exp2
6 files changed, 125 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 944f543..dd43eef 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2002-09-18 Chris Demetriou <cgd@broadcom.com>
+
+ * gas/mips/branch-misc-1.d: New file.
+ * gas/mips/branch-misc-1.s: New file.
+ * gas/mips/branch-misc-2.s: New file.
+ * gas/mips/branch-misc-2.d: New file.
+ * gas/mips/mips.exp: Run new tests.
+
2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* gas/mips/jal-range.s: Check for jal overflows.
diff --git a/gas/testsuite/gas/mips/branch-misc-1.d b/gas/testsuite/gas/mips/branch-misc-1.d
new file mode 100644
index 0000000..77c003d
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-misc-1.d
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-1
+
+# Test the branches to local symbols in current file.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+ \.\.\.
+ \.\.\.
+ \.\.\.
+0+003c <[^>]*> 0411fff0 bal 00000000 <l1>
+0+0040 <[^>]*> 00000000 nop
+0+0044 <[^>]*> 0411fff3 bal 00000014 <l2>
+0+0048 <[^>]*> 00000000 nop
+0+004c <[^>]*> 0411fff6 bal 00000028 <l3>
+0+0050 <[^>]*> 00000000 nop
+0+0054 <[^>]*> 0411000a bal 00000080 <l4>
+0+0058 <[^>]*> 00000000 nop
+0+005c <[^>]*> 0411000d bal 00000094 <l5>
+0+0060 <[^>]*> 00000000 nop
+0+0064 <[^>]*> 04110010 bal 000000a8 <l6>
+0+0068 <[^>]*> 00000000 nop
+ \.\.\.
+ \.\.\.
+ \.\.\.
+ \.\.\.
diff --git a/gas/testsuite/gas/mips/branch-misc-1.s b/gas/testsuite/gas/mips/branch-misc-1.s
new file mode 100644
index 0000000..0f72c693
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-misc-1.s
@@ -0,0 +1,27 @@
+# Source file used to test the branches to locals in this file.
+
+ .text
+l1:
+ .space 20
+l2:
+ .space 20
+l3:
+ .space 20
+
+x:
+ bal l1
+ bal l2
+ bal l3
+ bal l4
+ bal l5
+ bal l6
+
+ .space 20
+l4:
+ .space 20
+l5:
+ .space 20
+l6:
+
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .space 8
diff --git a/gas/testsuite/gas/mips/branch-misc-2.d b/gas/testsuite/gas/mips/branch-misc-2.d
new file mode 100644
index 0000000..bbbaab5
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-misc-2.d
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-2
+
+# Test the branches to global symbols in current file.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+ \.\.\.
+ \.\.\.
+ \.\.\.
+0+003c <[^>]*> 0411fff0 bal 00000000 <g1>
+0+0040 <[^>]*> 00000000 nop
+0+0044 <[^>]*> 0411fff3 bal 00000014 <g2>
+0+0048 <[^>]*> 00000000 nop
+0+004c <[^>]*> 0411fff6 bal 00000028 <g3>
+0+0050 <[^>]*> 00000000 nop
+0+0054 <[^>]*> 0411000a bal 00000080 <g4>
+0+0058 <[^>]*> 00000000 nop
+0+005c <[^>]*> 0411000d bal 00000094 <g5>
+0+0060 <[^>]*> 00000000 nop
+0+0064 <[^>]*> 04110010 bal 000000a8 <g6>
+0+0068 <[^>]*> 00000000 nop
+ \.\.\.
+ \.\.\.
+ \.\.\.
+ \.\.\.
diff --git a/gas/testsuite/gas/mips/branch-misc-2.s b/gas/testsuite/gas/mips/branch-misc-2.s
new file mode 100644
index 0000000..e574922
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-misc-2.s
@@ -0,0 +1,34 @@
+# Source file used to test the backward branches to globals in this file.
+
+ .globl g1 .text
+ .globl g2 .text
+ .globl g3 .text
+ .globl g4 .text
+ .globl g5 .text
+ .globl g6 .text
+
+ .text
+g1:
+ .space 20
+g2:
+ .space 20
+g3:
+ .space 20
+
+x:
+ bal g1
+ bal g2
+ bal g3
+ bal g4
+ bal g5
+ bal g6
+
+ .space 20
+g4:
+ .space 20
+g5:
+ .space 20
+g6:
+
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .space 8
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 3059977..12613ea 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -56,6 +56,8 @@ if { [istarget mips*-*-*] } then {
run_dump_test "bgeu"
run_dump_test "blt"
run_dump_test "bltu"
+ run_dump_test "branch-misc-1"
+ run_dump_test "branch-misc-2"
if $ilocks {
run_dump_test "div-ilocks"