gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 19 Aug 2013 19:26:11 +0000 (19:26 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 19 Aug 2013 19:26:11 +0000 (19:26 +0000)
commit1a00e61226b3ff5d9be22992b7c4bf15bda6edb2
tree869bff5cc416d2e1cc1793ddb6a847664dcba939
parente3de51ce1105cd1d8bfbbe6e298233098822996a
gas/
* config/tc-mips.c (mips_arg_info): Remove soft_match.
(match_out_of_range, match_not_constant): New functions.
(match_const_int): Remove fallback parameter and check for soft_match.
Use match_not_constant.
(match_mapped_int_operand, match_addiusp_operand)
(match_perf_reg_operand, match_save_restore_list_operand)
(match_mdmx_imm_reg_operand): Update accordingly.  Use
match_out_of_range and set_insn_error* instead of as_bad.
(match_int_operand): Likewise.  Use match_not_constant in the
!allows_nonconst case.
(match_float_constant): Report invalid float constants.
(match_insn, match_mips16_insn): Remove soft_match code.  Rely on
match_float_constant to check for invalid constants.  Fail the
match if match_const_int or match_float_constant return false.
(mips_ip): Update accordingly.
(mips16_ip): Likewise.  Undo null termination of instruction name
once lookup is complete.

gas/testsuite/
* gas/mips/ext-ill.l, gas/mips/lui-1.l, gas/mips/mips16e-64.l,
gas/mips/mips32r2-ill-fp64.l, gas/mips/mips32r2-ill-nofp.l,
gas/mips/mips32r2-ill.l, gas/mips/mips64r2-ill.l,
gas/mips/octeon-ill.l, gas/mips/r5900-error-vu0.l,
gas/mips/vr5400-ill.l: Adjust expected errors.
* gas/mips/micromips-size-0.l,
gas/mips/micromips-size-0.s: Likewise.  Add new tests.
* gas/mips/mips16e-save-err.s, gas/mips/mips16e-save-err.l: New test.
* gas/mips/mips.exp: Run it.
18 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/ext-ill.l
gas/testsuite/gas/mips/lui-1.l
gas/testsuite/gas/mips/micromips-size-0.l
gas/testsuite/gas/mips/micromips-size-0.s
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16e-64.l
gas/testsuite/gas/mips/mips16e-save-err.l [new file with mode: 0644]
gas/testsuite/gas/mips/mips16e-save-err.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips32r2-ill-fp64.l
gas/testsuite/gas/mips/mips32r2-ill-nofp.l
gas/testsuite/gas/mips/mips32r2-ill.l
gas/testsuite/gas/mips/mips64r2-ill.l
gas/testsuite/gas/mips/octeon-ill.l
gas/testsuite/gas/mips/r5900-error-vu0.l
gas/testsuite/gas/mips/vr5400-ill.l