[PATCH 04/13] x86: convert SReg from bitfield to enumerator

H.J. Lu hjl.tools@gmail.com
Thu Oct 31 19:26:00 GMT 2019


On Wed, Oct 30, 2019 at 1:24 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 (pi, check_byte_reg, process_operands,
>         build_modrm_byte, i386_att_operand, parse_real_register): Use
>         "class" instead of "sreg" field.
>         * config/tc-i386-intel.c (i386_intel_simplify_register,
>         i386_intel_operand): Likewise.
>
> opcodes/
> 2019-10-XX  Jan Beulich  <jbeulich@suse.com>
>
>         * i386-gen.c (operand_type_init): Add Class= to
>         OPERAND_TYPE_SREG entry.
>         (operand_classes): Add SReg entry.
>         (operand_types): Drop SReg entry.
>         * i386-opc.h (enum operand_class): Add SReg.
>         (SReg): Delete.
>         (union i386_operand_type): Remove sreg field.
>         * i386-opc.tbl (SReg): Define.
>         * i386-reg.tbl: Replace SReg by Class=SReg.
>         * i386-init.h, i386-tbl.h: Re-generate.
>

OK.

Thanks.

-- 
H.J.



More information about the Binutils mailing list