From: Maciej W. Rozycki Date: Sun, 6 Jul 2025 18:22:49 +0000 (+0100) Subject: MIPS/LD/testsuite: Set architecture for MIPS16 HI/LO tests X-Git-Tag: binutils-2_45~168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a4b69e3aa2b76427636b71cf0919945b4d3ff4c;p=thirdparty%2Fbinutils-gdb.git MIPS/LD/testsuite: Set architecture for MIPS16 HI/LO tests Remove regressions across MIPSr6 targets with the MIPS16 HI/LO tests, which are incompatible with the default architecture of these targets: mips-img-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mips-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mips64-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mips64-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32 mips64el-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mips64el-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32 mipsel-img-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsel-img-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa32r6-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa32r6-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa32r6el-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa32r6el-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6-linux-gnuabi64 -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6el-elf -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6el-linux-gnuabi64 -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs mipsisa64r6el-linux -FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs --- diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 6cb9088644f..814776e5b23 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -814,8 +814,8 @@ run_dump_test_n32 "jalbal" noarch run_dump_test "mode-change-error-1" -run_dump_test_o32 "mips16-hilo" -run_dump_test_n32 "mips16-hilo-n32" +run_dump_test_o32 "mips16-hilo" noarch +run_dump_test_n32 "mips16-hilo-n32" noarch if { $linux_gnu } { run_dump_test_n32 "textrel-1" diff --git a/ld/testsuite/ld-mips-elf/mips16-hilo-n32.d b/ld/testsuite/ld-mips-elf/mips16-hilo-n32.d index 8d70b356189..1f1ab59cbfc 100644 --- a/ld/testsuite/ld-mips-elf/mips16-hilo-n32.d +++ b/ld/testsuite/ld-mips-elf/mips16-hilo-n32.d @@ -1,6 +1,7 @@ #name: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32 #source: ../../../gas/testsuite/gas/mips/mips16-hilo.s #source: mips16-hilo.s +#as: -march=mips3 #objdump: -mmips:16 --prefix-addresses -tdr --show-raw-insn #ld: -Tmips16-hilo.ld -e 0x500000 -N diff --git a/ld/testsuite/ld-mips-elf/mips16-hilo.d b/ld/testsuite/ld-mips-elf/mips16-hilo.d index 56009834803..ce5748041de 100644 --- a/ld/testsuite/ld-mips-elf/mips16-hilo.d +++ b/ld/testsuite/ld-mips-elf/mips16-hilo.d @@ -1,6 +1,7 @@ #name: R_MIPS16_HI16 and R_MIPS16_LO16 relocs #source: ../../../gas/testsuite/gas/mips/mips16-hilo.s #source: mips16-hilo.s +#as: -march=mips1 #objdump: -mmips:16 --prefix-addresses -tdr --show-raw-insn #ld: -Tmips16-hilo.ld -e 0x500000 -N