mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Fix tc-i386.c -Werror=logical-not-parentheses error
* config/tc-i386.c (match_template): Remove redundant "!!" testing single-bit bitfields. (build_modrm_byte): Don't compare single-bit bitfields to "1".
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2014-09-12 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* config/tc-i386.c (match_template): Remove redundant "!!" testing
|
||||||
|
single-bit bitfields.
|
||||||
|
(build_modrm_byte): Don't compare single-bit bitfields to "1".
|
||||||
|
|
||||||
2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
* config/tc-arm.c (arm_cpus): Add cortex-a17.
|
* config/tc-arm.c (arm_cpus): Add cortex-a17.
|
||||||
|
@ -4709,9 +4709,9 @@ match_template (void)
|
|||||||
&& !operand_types[0].bitfield.regymm
|
&& !operand_types[0].bitfield.regymm
|
||||||
&& !operand_types[0].bitfield.regzmm)
|
&& !operand_types[0].bitfield.regzmm)
|
||||||
|| (!operand_types[t->operands > 1].bitfield.regmmx
|
|| (!operand_types[t->operands > 1].bitfield.regmmx
|
||||||
&& !!operand_types[t->operands > 1].bitfield.regxmm
|
&& operand_types[t->operands > 1].bitfield.regxmm
|
||||||
&& !!operand_types[t->operands > 1].bitfield.regymm
|
&& operand_types[t->operands > 1].bitfield.regymm
|
||||||
&& !!operand_types[t->operands > 1].bitfield.regzmm))
|
&& operand_types[t->operands > 1].bitfield.regzmm))
|
||||||
&& (t->base_opcode != 0x0fc7
|
&& (t->base_opcode != 0x0fc7
|
||||||
|| t->extension_opcode != 1 /* cmpxchg8b */))
|
|| t->extension_opcode != 1 /* cmpxchg8b */))
|
||||||
continue;
|
continue;
|
||||||
@ -4726,7 +4726,7 @@ match_template (void)
|
|||||||
&& ((!operand_types[0].bitfield.regmmx
|
&& ((!operand_types[0].bitfield.regmmx
|
||||||
&& !operand_types[0].bitfield.regxmm)
|
&& !operand_types[0].bitfield.regxmm)
|
||||||
|| (!operand_types[t->operands > 1].bitfield.regmmx
|
|| (!operand_types[t->operands > 1].bitfield.regmmx
|
||||||
&& !!operand_types[t->operands > 1].bitfield.regxmm)))
|
&& operand_types[t->operands > 1].bitfield.regxmm)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Do not verify operands when there are none. */
|
/* Do not verify operands when there are none. */
|
||||||
@ -6171,8 +6171,8 @@ build_modrm_byte (void)
|
|||||||
op = i.tm.operand_types[vvvv];
|
op = i.tm.operand_types[vvvv];
|
||||||
op.bitfield.regmem = 0;
|
op.bitfield.regmem = 0;
|
||||||
if ((dest + 1) >= i.operands
|
if ((dest + 1) >= i.operands
|
||||||
|| (op.bitfield.reg32 != 1
|
|| (!op.bitfield.reg32
|
||||||
&& !op.bitfield.reg64 != 1
|
&& op.bitfield.reg64
|
||||||
&& !operand_type_equal (&op, ®xmm)
|
&& !operand_type_equal (&op, ®xmm)
|
||||||
&& !operand_type_equal (&op, ®ymm)
|
&& !operand_type_equal (&op, ®ymm)
|
||||||
&& !operand_type_equal (&op, ®zmm)
|
&& !operand_type_equal (&op, ®zmm)
|
||||||
|
Reference in New Issue
Block a user