aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@imgtec.com>2019-04-17 04:07:19 +0000
committerFaraz Shahbazker <fshahbazker@wavecomp.com>2019-04-18 09:30:51 -0700
commit85bec12d61ca50669cac5975c88d3a1e377375f9 (patch)
tree6a002b166dd85e85acf9fd0c2b35eacefb3cd998 /gas/config/tc-mips.c
parent[gdb] Handle vfork in thread with follow-fork-mode child (diff)
downloadbinutils-gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.tar.gz
binutils-gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.tar.bz2
binutils-gdb-85bec12d61ca50669cac5975c88d3a1e377375f9.zip
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 94141e937ea..f3e33410d7f 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);