This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 05/13] x86: convert Control/Debug/Test 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 (pi, check_byte_reg, build_modrm_byte,
> parse_real_register): Use "class" instead of "control"/"debug"/
> "test" fields.
>
> opcodes/
> 2019-10-XX Jan Beulich <jbeulich@suse.com>
>
> * i386-gen.c (operand_type_init): Add Class= to
> OPERAND_TYPE_CONTROL, OPERAND_TYPE_TEST, and OPERAND_TYPE_DEBUG
> entries.
> (operand_classes): Add RegCR, RegDR, and RegTR entries.
> (operand_types): Drop Control, Debug, and Test entries.
> * i386-opc.h (enum operand_class): Add RegCR, RegDR, and RegTR.
> (Control, Debug, Test): Delete.
> (union i386_operand_type): Remove control, debug, and test
> fields.
> * i386-opc.tbl (Control, Debug, Test): Define.
> * i386-reg.tbl: Replace Control by Class=RegCR, Debug by
> Class=RegDR, and Test by Class=RegTR.
> * i386-init.h, i386-tbl.h: Re-generate.
>
OK.
Thanks.
--
H.J.