gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 20 Jun 2013 19:25:20 +0000 (19:25 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Thu, 20 Jun 2013 19:25:20 +0000 (19:25 +0000)
commitc62781705e9d1caf76f8617664e0e8419bea552c
tree353e8a4717c71990b9f0dd91a9740e4876a01518
parentb9eead841d08c769b08fa42a7e9b68c023374dc2
gas/
* config/tc-mips.c (ISA_SUPPORTS_SMARTMIPS, ISA_SUPPORTS_DSP_ASE)
(ISA_SUPPORTS_DSP64_ASE, ISA_SUPPORTS_DSPR2_ASE, ISA_SUPPORTS_EVA_ASE)
(ISA_SUPPORTS_MT_ASE, ISA_SUPPORTS_MCU_ASE, ISA_SUPPORTS_VIRT_ASE)
(ISA_SUPPORTS_VIRT64_ASE): Delete.
(mips_ase): New structure.
(mips_ases): New table.
(FP64_ASES): New macro.
(mips_ase_groups): New array.
(mips_isa_rev, mips_ase_mask, mips_check_isa_supports_ase)
(mips_check_isa_supports_ases, mips_set_ase, mips_lookup_ase): New
functions.
(is_opcode_valid): Use mips_ases to get the 64-bit ASE flags.
(md_parse_option): Use mips_ases and mips_set_ase instead of
separate case statements for each ASE option.
(mips_after_parse_args): Use FP64_ASES.  Use
mips_check_isa_supports_ases to check the ASEs against
other options.
(s_mipsset): Use mips_ases and mips_set_ase instead of
separate if statements for each ASE option.  Use
mips_check_isa_supports_ases, even when a non-ASE option
is specified.

gas/testsuite/
* gas/mips/ase-errors-1.s, gas/mips/ase-errors-1.l,
gas/mips/ase-errors-2.s, gas/mips/ase-errors-2.l,
gas/mips/ase-errors-3.s, gas/mips/ase-errors-3.l,
gas/mips/ase-errors-4.s, gas/mips/ase-errors-4.l: New tests.
* gas/mips/mips.exp: Run them.
12 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/ase-errors-1.l [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-1.s [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-2.l [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-2.s [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-3.l [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-3.s [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-4.l [new file with mode: 0644]
gas/testsuite/gas/mips/ase-errors-4.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp