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.
This commit is contained in:
parent
6b7d3204b5
commit
9c19e9ec4d
4 changed files with 504 additions and 504 deletions
|
@ -6431,7 +6431,7 @@ check_VecOperands (const insn_template *t)
|
||||||
if (operand_type_all_zero (&overlap))
|
if (operand_type_all_zero (&overlap))
|
||||||
goto bad_broadcast;
|
goto bad_broadcast;
|
||||||
|
|
||||||
if (t->opcode_modifier.checkregsize)
|
if (t->opcode_modifier.checkoperandsize)
|
||||||
{
|
{
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
|
|
||||||
|
@ -6848,7 +6848,7 @@ match_template (char mnem_suffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We check register size if needed. */
|
/* We check register size if needed. */
|
||||||
if (t->opcode_modifier.checkregsize)
|
if (t->opcode_modifier.checkoperandsize)
|
||||||
{
|
{
|
||||||
check_register = (1 << t->operands) - 1;
|
check_register = (1 << t->operands) - 1;
|
||||||
if (i.broadcast.type || i.broadcast.bytes)
|
if (i.broadcast.type || i.broadcast.bytes)
|
||||||
|
|
|
@ -639,7 +639,7 @@ static bitfield opcode_modifiers[] =
|
||||||
BITFIELD (Jump),
|
BITFIELD (Jump),
|
||||||
BITFIELD (FloatMF),
|
BITFIELD (FloatMF),
|
||||||
BITFIELD (Size),
|
BITFIELD (Size),
|
||||||
BITFIELD (CheckRegSize),
|
BITFIELD (CheckOperandSize),
|
||||||
BITFIELD (OperandConstraint),
|
BITFIELD (OperandConstraint),
|
||||||
BITFIELD (MnemonicSize),
|
BITFIELD (MnemonicSize),
|
||||||
BITFIELD (No_bSuf),
|
BITFIELD (No_bSuf),
|
||||||
|
|
|
@ -494,8 +494,8 @@ enum
|
||||||
/* needs size prefix if in 64-bit mode */
|
/* needs size prefix if in 64-bit mode */
|
||||||
#define SIZE64 3
|
#define SIZE64 3
|
||||||
Size,
|
Size,
|
||||||
/* check register size. */
|
/* Check that operand sizes match. */
|
||||||
CheckRegSize,
|
CheckOperandSize,
|
||||||
/* any memory size */
|
/* any memory size */
|
||||||
#define ANY_SIZE 1
|
#define ANY_SIZE 1
|
||||||
/* fake an extra reg operand for clr, imul and special register
|
/* 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 jump:3;
|
||||||
unsigned int floatmf:1;
|
unsigned int floatmf:1;
|
||||||
unsigned int size:2;
|
unsigned int size:2;
|
||||||
unsigned int checkregsize:1;
|
unsigned int checkoperandsize:1;
|
||||||
unsigned int operandconstraint:4;
|
unsigned int operandconstraint:4;
|
||||||
unsigned int mnemonicsize:2;
|
unsigned int mnemonicsize:2;
|
||||||
unsigned int no_bsuf:1;
|
unsigned int no_bsuf:1;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue