[PATCH v5 1/5] x86: also disallow non-byte/-word registers with byte/word suffix
H.J. Lu
hjl.tools@gmail.com
Tue Feb 11 11:27:00 GMT 2020
On Tue, Feb 11, 2020 at 2:24 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> Along the lines of be4c5e58bd ("x86: Always disallow double word suffix
> with word general register") also adjust check_{byte,word}_reg(), to make
> overall behavior consistent again in this regard.
>
> gas/
> 2020-02-XX Jan Beulich <jbeulich@suse.com>
>
> PR gas/25438
> * config/tc-i386.c (REGISTER_WARNINGS): Delete.
> (check_byte_reg): Skip only source operand of CRC32. Drop Non-
> 64-bit-only warning.
> (check_word_reg): Consistently error on mismatching register
> size and suffix.
> * testsuite/gas/i386/general.s: Replace dword GPR with word one
> for movw. Replace suffix / GPR for orb.
> * testsuite/gas/i386/inval.s: Add tests for movw with dword and
> byte GPRs as well as ones for inb/outb with a word accumulator.
> * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
> testsuite/gas/i386/inval.l: Adjust expectations.
>
OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list