aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/mips64-fpu.xml
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-05-15 13:17:18 +0100
committerMaciej W. Rozycki <macro@imgtec.com>2017-05-15 13:57:09 +0100
commitc96425c560d640df9c416ff4e6a8c49c1f3b1119 (patch)
tree88912e125b86687f549c886d5042bf262463a635 /gdb/features/mips64-fpu.xml
parent1a7bf198b67c4b99e9adeaeba38c6874ec354c12 (diff)
downloadgdb-c96425c560d640df9c416ff4e6a8c49c1f3b1119.zip
gdb-c96425c560d640df9c416ff4e6a8c49c1f3b1119.tar.gz
gdb-c96425c560d640df9c416ff4e6a8c49c1f3b1119.tar.bz2
MIPS/GAS: Improve bignum operand error diagnostics
Improve bignum operand error diagnostics for cases where a constant would be accepted and report them as range errors, also indicating the offending operand and instruction, e.g.: $ cat bignum.s addiu $2, 0x10000000000000000 break 0x10000000000000000 $ as -o bignum.o bignum.s bignum.s:1: Error: bignum invalid bignum.s:2: Error: operand 1 must be constant `break 0x10000000000000000' $ now show as: $ as -o bignum.o bignum.s bignum.s:1: Error: operand 2 out of range `addiu $2,0x10000000000000000' bignum.s:2: Error: operand 1 out of range `break 0x10000000000000000' $ gas/ * config/tc-mips.c (match_const_int): Call `match_out_of_range' rather than `match_not_constant' for unrelocated operands retrieved as an `O_big' expression. (match_int_operand): Call `match_out_of_range' for relocatable operands retrieved as an `O_big' expression. (match_mips16_insn): Call `match_out_of_range' for relaxable operands retrieved as an `O_big' expression. * testsuite/gas/mips/addiu-error.d: New test. * testsuite/gas/mips/mips16@addiu-error.d: New test. * testsuite/gas/mips/micromips@addiu-error.d: New test. * testsuite/gas/mips/break-error.d: New test. * testsuite/gas/mips/lui-1.l: Adjust error message. * testsuite/gas/mips/addiu-error.l: New stderr output. * testsuite/gas/mips/mips16@addiu-error.l: New stderr output. * testsuite/gas/mips/micromips@addiu-error.l: New stderr output. * testsuite/gas/mips/break-error.l: New stderr output. * testsuite/gas/mips/addiu-error.s: New test source. * testsuite/gas/mips/break-error.s: New test source. * testsuite/gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'gdb/features/mips64-fpu.xml')
0 files changed, 0 insertions, 0 deletions