This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]