diff options
author | Matthew Fortune <matthew.fortune@imgtec.com> | 2019-04-17 04:07:19 +0000 |
---|---|---|
committer | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2019-04-18 09:30:51 -0700 |
commit | 85bec12d61ca50669cac5975c88d3a1e377375f9 (patch) | |
tree | 6a002b166dd85e85acf9fd0c2b35eacefb3cd998 /gas/config/tc-mips.c | |
parent | b73715df01e6e9b3de5a49cd7bf4170deef48461 (diff) | |
download | gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.zip gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.tar.gz gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.tar.bz2 |
Improve warning message for $0 constraint on MIPSR6 branches
gas/
* config/tc-mips.c (match_non_zero_reg_operand): Update
warning message.
* testsuite/gas/mips/r6-branch-constraints.l: Likewise.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 94141e9..f3e3341 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -6014,7 +6014,10 @@ match_non_zero_reg_operand (struct mips_arg_info *arg, return FALSE; if (regno == 0) - return FALSE; + { + set_insn_error (arg->argnum, _("the source register must not be $0")); + return FALSE; + } arg->last_regno = regno; insn_insert_operand (arg->insn, operand, regno); |