This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
mov{s,z}{b,w,l} suffix guessing
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Tue, 28 Jun 2016 08:00:43 -0600
- Subject: mov{s,z}{b,w,l} suffix guessing
- Authentication-results: sourceware.org; auth=none
H.J.,
i386-opc.tbl has "interesting" comments around these, and the
assembler as a result provides inconsistent behavior: For one
because of the recognition of the suffix-less movzb (as the
only exception). And of course with both instruction groups
therefore being different from all other instructions with
register operands. So the question is: Are these inconsistencies
really intended, or wouldn't it be better to enhance things so
that at least the final suffix bytes on these two groups won't
be required anymore? (Clearly when both operands are
registers, one could even aim at making the second from last
suffix byte optional too.)
And if the current (sorry) state is intentional, shouldn't use of
suffix-less movzb at least get warned about, to pave a road
towards removing that exception?
Thanks, Jan