This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 06/13] x86: convert RegSIMD and RegMMX from bitfield to enumerator
On Wed, Oct 30, 2019 at 1:25 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> This is to further shrink the operand type representation.
>
> gas/
> 2019-10-XX Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386.c (match_mem_size, operand_size_match,
> operand_type_register_match, pi, check_VecOperands, match_template,
> check_byte_reg, check_long_reg, check_qword_reg, process_operands,
> build_modrm_byte, parse_real_register): Use "class" instead of
> "regsimd" / "regmmx" fields.
>
> opcodes/
> 2019-10-XX Jan Beulich <jbeulich@suse.com>
>
> * i386-gen.c (operand_type_init): Add Class= to
> OPERAND_TYPE_REGMMX, OPERAND_TYPE_REGXMM, OPERAND_TYPE_REGYMM, and
> OPERAND_TYPE_REGZMM entries.
> (operand_classes): Add RegMMX and RegSIMD entries.
> (operand_types): Drop RegMMX and RegSIMD entries.
> * i386-opc.h (enum operand_class): Add RegMMX and RegSIMD.
> (RegMMX, RegSIMD): Delete.
> (union i386_operand_type): Remove regmmx and regsimd fields.
> * i386-opc.tbl (RegMMX): Define.
> (RegXMM, RegYMM, RegZMM): Add Class=.
> * i386-reg.tbl: Replace RegMMX by Class=RegMMX and RegSIMD by
> Class=RegSIMD.
> * i386-init.h, i386-tbl.h: Re-generate.
>
OK.
Thanks.
--
H.J.