[PATCH 07/13] x86: convert RegMask and RegBND from bitfield to enumerator
H.J. Lu
hjl.tools@gmail.com
Thu Oct 31 19:28:00 GMT 2019
On Wed, Oct 30, 2019 at 1:26 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 (optimize_encoding, build_modrm_byte,
> check_VecOperations, parse_real_register): Use "class" instead
> of "regmask" and "regbnd" fields.
>
> opcodes/
> 2019-10-XX Jan Beulich <jbeulich@suse.com>
>
> * i386-gen.c (operand_type_init): Add Class= to
> OPERAND_TYPE_REGMASK and OPERAND_TYPE_REGBND entries. Move up
> OPERAND_TYPE_REGBND entry.
> (operand_classes): Add RegMask and RegBND entries.
> (operand_types): Drop RegMask and RegBND entry.
> * i386-opc.h (enum operand_class): Add RegMask and RegBND.
> (RegMask, RegBND): Delete.
> (union i386_operand_type): Remove regmask and regbnd fields.
> * i386-opc.tbl (RegMask, RegBND): Define.
> * i386-reg.tbl: Replace RegMask by Class=RegMask and RegBND by
> Class=RegBND.
> * i386-init.h, i386-tbl.h: Re-generate.
>
OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list