From: Chris Demetriou Date: Wed, 18 Sep 2002 20:50:47 +0000 (+0000) Subject: [ gas/testsuite/ChangeLog ] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dc83527fbad2600adff4eb9fdcb0229117bc436;p=binutils-gdb.git [ gas/testsuite/ChangeLog ] 2002-09-18 Chris Demetriou * 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 * 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. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 944f54325e1..dd43eef8c43 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2002-09-18 Chris Demetriou + + * 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 * 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 00000000000..77c003db56f --- /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 +0+0040 <[^>]*> 00000000 nop +0+0044 <[^>]*> 0411fff3 bal 00000014 +0+0048 <[^>]*> 00000000 nop +0+004c <[^>]*> 0411fff6 bal 00000028 +0+0050 <[^>]*> 00000000 nop +0+0054 <[^>]*> 0411000a bal 00000080 +0+0058 <[^>]*> 00000000 nop +0+005c <[^>]*> 0411000d bal 00000094 +0+0060 <[^>]*> 00000000 nop +0+0064 <[^>]*> 04110010 bal 000000a8 +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 00000000000..0f72c6939cb --- /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 00000000000..bbbaab5fe75 --- /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 +0+0040 <[^>]*> 00000000 nop +0+0044 <[^>]*> 0411fff3 bal 00000014 +0+0048 <[^>]*> 00000000 nop +0+004c <[^>]*> 0411fff6 bal 00000028 +0+0050 <[^>]*> 00000000 nop +0+0054 <[^>]*> 0411000a bal 00000080 +0+0058 <[^>]*> 00000000 nop +0+005c <[^>]*> 0411000d bal 00000094 +0+0060 <[^>]*> 00000000 nop +0+0064 <[^>]*> 04110010 bal 000000a8 +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 00000000000..e574922a316 --- /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 305997795aa..12613ea9470 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" diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 094013c72c6..6416a8a3d3a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-09-18 Chris Demetriou + + * 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 * 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 00000000000..08b93de4505 --- /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 00000000000..86c707028ba --- /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 03f4e32cad9..63de3ca7dec 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" } }