[PATCH] x86: adjust diagnostic for bad 4-bit immediates
Jan Beulich
JBeulich@suse.com
Tue Jul 24 15:30:00 GMT 2012
The current error message for bad imm4 operands wasn't really helpful,
and was pointing at the wrong operand in Intel mode. Since non-constant
operands are being taken care of by other means anyway, adjust it to
simply state that the constant doesn't fit.
2012-07-24 Jan Beulich <jbeulich@suse.com>
* config/tc-i386-intel.c (match_template): Adjust error message
for 'bad_imm4' case.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4347,7 +4347,7 @@ check_reverse:
err_msg = _("invalid instruction suffix");
break;
case bad_imm4:
- err_msg = _("Imm4 isn't the first operand");
+ err_msg = _("Constant doesn't fit in 4 bits");
break;
case old_gcc_only:
err_msg = _("only supported with old gcc");
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-mainline-x86-bad-imm4.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20120724/e94defbc/attachment.ksh>
More information about the Binutils
mailing list