Browse Source

x86: rename CheckRegSize to CheckOperandSize

While originally indeed used for register size checking only, the
attribute has been used for memory operand size checking as well already
for quite a while, with more such uses recently having been added.
users/ahajkova/try-frob
Jan Beulich 3 years ago
parent
commit
9c19e9ec4d
  1. 4
      gas/config/tc-i386.c
  2. 2
      opcodes/i386-gen.c
  3. 6
      opcodes/i386-opc.h
  4. 1014
      opcodes/i386-opc.tbl

4
gas/config/tc-i386.c

@ -6431,7 +6431,7 @@ check_VecOperands (const insn_template *t)
if (operand_type_all_zero (&overlap))
goto bad_broadcast;
if (t->opcode_modifier.checkregsize)
if (t->opcode_modifier.checkoperandsize)
{
unsigned int j;
@ -6848,7 +6848,7 @@ match_template (char mnem_suffix)
}
/* We check register size if needed. */
if (t->opcode_modifier.checkregsize)
if (t->opcode_modifier.checkoperandsize)
{
check_register = (1 << t->operands) - 1;
if (i.broadcast.type || i.broadcast.bytes)

2
opcodes/i386-gen.c

@ -639,7 +639,7 @@ static bitfield opcode_modifiers[] =
BITFIELD (Jump),
BITFIELD (FloatMF),
BITFIELD (Size),
BITFIELD (CheckRegSize),
BITFIELD (CheckOperandSize),
BITFIELD (OperandConstraint),
BITFIELD (MnemonicSize),
BITFIELD (No_bSuf),

6
opcodes/i386-opc.h

@ -494,8 +494,8 @@ enum
/* needs size prefix if in 64-bit mode */
#define SIZE64 3
Size,
/* check register size. */
CheckRegSize,
/* Check that operand sizes match. */
CheckOperandSize,
/* any memory size */
#define ANY_SIZE 1
/* fake an extra reg operand for clr, imul and special register
@ -740,7 +740,7 @@ typedef struct i386_opcode_modifier
unsigned int jump:3;
unsigned int floatmf:1;
unsigned int size:2;
unsigned int checkregsize:1;
unsigned int checkoperandsize:1;
unsigned int operandconstraint:4;
unsigned int mnemonicsize:2;
unsigned int no_bsuf:1;

1014
opcodes/i386-opc.tbl

File diff suppressed because it is too large
Loading…
Cancel
Save