]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/GAS: Also respect `-mignore-branch-isa' with MIPS16 code
authorMaciej W. Rozycki <macro@imgtec.com>
Wed, 30 Aug 2017 14:54:19 +0000 (15:54 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Wed, 30 Aug 2017 15:05:53 +0000 (16:05 +0100)
commit37b2d327512baf2f39020e44958fd1f11db46a91
treeaf32459f32a5d818bd242e3ff259a6ba125fe2ab
parent7c0ed39626e3193adb70aeb98d3633787579d6ec
MIPS/GAS: Also respect `-mignore-branch-isa' with MIPS16 code

Fix a bug in commit 8b10b0b3e100 ("MIPS: Add options to control branch
ISA checks") and with the `-mignore-branch-isa' command-line option also
lift a GAS check for invalid MIPS16 branches between ISA modes, which is
made separately from regular MIPS and microMIPS checks.

gas/
* config/tc-mips.c (md_convert_frag): Respect
`mips_ignore_branch_isa'.
* testsuite/gas/mips/branch-local-5.d: New test.
* testsuite/gas/mips/branch-local-n32-5.d: New test.
* testsuite/gas/mips/branch-local-n64-5.d: New test.
* testsuite/gas/mips/branch-local-6.d: New test.
* testsuite/gas/mips/branch-local-n32-6.d: New test.
* testsuite/gas/mips/branch-local-n64-6.d: New test.
* testsuite/gas/mips/branch-local-7.d: New test.
* testsuite/gas/mips/branch-local-n32-7.d: New test.
* testsuite/gas/mips/branch-local-n64-7.d: New test.
* testsuite/gas/mips/branch-local-ignore-5.d: New test.
* testsuite/gas/mips/branch-local-ignore-n32-5.d: New test.
* testsuite/gas/mips/branch-local-ignore-n64-5.d: New test.
* testsuite/gas/mips/branch-local-ignore-6.d: New test.
* testsuite/gas/mips/branch-local-ignore-n32-6.d: New test.
* testsuite/gas/mips/branch-local-ignore-n64-6.d: New test.
* testsuite/gas/mips/branch-local-5.l: New stderr output.
* testsuite/gas/mips/branch-local-6.l: New stderr output.
* testsuite/gas/mips/branch-local-5.s: New test source.
* testsuite/gas/mips/branch-local-6.s: New test source.
* testsuite/gas/mips/branch-local-7.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
23 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/gas/mips/branch-local-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-5.l [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-5.s [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-6.l [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-6.s [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-7.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-7.s [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-n32-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-n32-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-n64-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-ignore-n64-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n32-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n32-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n32-7.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n64-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n64-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/branch-local-n64-7.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp