x86: Fix indentation and use true/false instead of 1/0

gas/ChangeLog:

        * config/tc-i386.c (establish_rex): Fix indentation.
        (check_EgprOperands): Use true/false instead of 1/0.
This commit is contained in:
Cui, Lili 2024-01-12 02:31:11 +00:00
parent 9b32960754
commit 192781a398

@ -7197,7 +7197,7 @@ static bool
check_EgprOperands (const insn_template *t)
{
if (!t->opcode_modifier.noegpr)
return 0;
return false;
for (unsigned int op = 0; op < i.operands; op++)
{
@ -7207,7 +7207,7 @@ check_EgprOperands (const insn_template *t)
if (i.op[op].regs->reg_flags & RegRex2)
{
i.error = register_type_mismatch;
return 1;
return true;
}
}
@ -7215,17 +7215,17 @@ check_EgprOperands (const insn_template *t)
|| (i.base_reg && (i.base_reg->reg_flags & RegRex2)))
{
i.error = unsupported_EGPR_for_addressing;
return 1;
return true;
}
/* Check if pseudo prefix {rex2} is valid. */
if (i.rex2_encoding)
{
i.error = invalid_pseudo_prefix;
return 1;
return true;
}
return 0;
return false;
}
/* Check if APX operands are valid for the instruction. */