This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR gas/6518: wrong diagnostic for vcvtpd2dq/vcvtpd2ps/vcvttpd2dq
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 23 May 2008 06:54:07 -0700
- Subject: PATCH: PR gas/6518: wrong diagnostic for vcvtpd2dq/vcvtpd2ps/vcvttpd2dq
Intel syntax has operand size. I am checking in this patch to change
error messsage when there is no match.
H.J.
----
2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
PR gas/6518
* config/tc-i386.c (match_template): Report ambiguous operand
size, not invalid suffix when there is no match in Intel
syntax.
--- gas/config/tc-i386.c.256 2008-05-02 10:08:48.000000000 -0700
+++ gas/config/tc-i386.c 2008-05-23 06:46:27.000000000 -0700
@@ -3754,8 +3754,12 @@ match_template (void)
if (t == current_templates->end)
{
/* We found no match. */
- as_bad (_("suffix or operands invalid for `%s'"),
- current_templates->start->name);
+ if (intel_syntax)
+ as_bad (_("ambiguous operand size or operands invalid for `%s'"),
+ current_templates->start->name);
+ else
+ as_bad (_("suffix or operands invalid for `%s'"),
+ current_templates->start->name);
return 0;
}