diff options
Diffstat (limited to 'ld')
11 files changed, 90 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ff52608..92af8b9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,23 @@ +2017-05-02 Maciej W. Rozycki <macro@imgtec.com> + + * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d: + New test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New + test. + * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d: + New test. + * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. + 2017-05-02 H.J. Lu <hongjiu.lu@intel.com> * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index f824e7c..068ea54 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -159,17 +159,33 @@ run_dump_test "mips16-branch-3" [list [list ld $abi_ldflags(o32)]] run_dump_test "mips16-branch-addend-2" [list [list ld $abi_ldflags(o32)]] run_dump_test "mips16-branch-addend-3" [list [list ld $abi_ldflags(o32)]] run_dump_test "mips16-branch-absolute" [list [list ld $abi_ldflags(o32)]] +run_dump_test "mips16-branch-absolute-1" [list [list ld $abi_ldflags(o32)]] +run_dump_test "mips16-branch-absolute-2" [list [list ld $abi_ldflags(o32)]] run_dump_test "mips16-branch-absolute-addend" \ [list [list ld $abi_ldflags(o32)]] +run_dump_test "mips16-branch-absolute-addend-1" \ + [list [list ld $abi_ldflags(o32)]] if $has_newabi { run_dump_test "mips16-branch-absolute-n32" \ [list [list ld $abi_ldflags(n32)]] + run_dump_test "mips16-branch-absolute-n32-1" \ + [list [list ld $abi_ldflags(n32)]] + run_dump_test "mips16-branch-absolute-n32-2" \ + [list [list ld $abi_ldflags(n32)]] run_dump_test "mips16-branch-absolute-addend-n32" \ [list [list ld $abi_ldflags(n32)]] + run_dump_test "mips16-branch-absolute-addend-n32-1" \ + [list [list ld $abi_ldflags(n32)]] run_dump_test "mips16-branch-absolute-n64" \ [list [list ld $abi_ldflags(n64)]] + run_dump_test "mips16-branch-absolute-n64-1" \ + [list [list ld $abi_ldflags(n64)]] + run_dump_test "mips16-branch-absolute-n64-2" \ + [list [list ld $abi_ldflags(n64)]] run_dump_test "mips16-branch-absolute-addend-n64" \ [list [list ld $abi_ldflags(n64)]] + run_dump_test "mips16-branch-absolute-addend-n64-1" \ + [list [list ld $abi_ldflags(n64)]] } run_dump_test "micromips-branch-absolute" [list [list ld $abi_ldflags(o32)]] diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-1.d new file mode 100644 index 0000000..9e0aa5f --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 1 +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s +#as: -EB -32 +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-2.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-2.d new file mode 100644 index 0000000..5e7e6f9 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-2.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 2 +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s +#as: -EB -32 +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d new file mode 100644 index 0000000..40f6ccb --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression with addend 1 +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s +#as: -EB -32 +#ld: -EB -Ttext 0x12340000 -e foo +#dump: mips16-branch-absolute-addend.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d new file mode 100644 index 0000000..8e833d8 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression with addend 1 (n32) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s +#as: -EB -n32 -march=from-abi +#ld: -EB -Ttext 0x12340000 -e foo +#dump: mips16-branch-absolute-addend.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d new file mode 100644 index 0000000..094b2d0 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression with addend 1 (n64) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s +#as: -EB -64 -march=from-abi +#ld: -EB -Ttext 0x12340000 -e foo +#dump: mips16-branch-absolute-addend.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d new file mode 100644 index 0000000..587e79a --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 1 (n32) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s +#as: -EB -n32 -march=from-abi +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d new file mode 100644 index 0000000..86c98c3 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 2 (n32) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s +#as: -EB -n32 -march=from-abi +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d new file mode 100644 index 0000000..dc067f8 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 1 (n64) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s +#as: -EB -64 -march=from-abi +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d diff --git a/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d new file mode 100644 index 0000000..1a6ba3d --- /dev/null +++ b/ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d @@ -0,0 +1,6 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: MIPS16 link branch to absolute expression 2 (n64) +#source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s +#as: -EB -64 -march=from-abi +#ld: -EB -Ttext 0 -e foo +#dump: mips16-branch-absolute.d |