From: H.J. Lu Date: Thu, 11 Feb 2010 14:02:50 +0000 (+0000) Subject: Reformat build_modrm_byte. X-Git-Tag: gdb_7_1-2010-02-18-branchpoint~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24981e7b9507c456c54c1ac7a313e19bc8667dfd;p=thirdparty%2Fbinutils-gdb.git Reformat build_modrm_byte. 2010-02-11 H.J. Lu * config/tc-i386.c (build_modrm_byte): Reformat. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index c9c215801bb..1c2ea9eb963 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2010-02-11 H.J. Lu + + * config/tc-i386.c (build_modrm_byte): Reformat. + 2010-02-11 H.J. Lu * config/tc-i386.c: Update copyright. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4bdfa39346a..9e804c6cd6f 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5051,13 +5051,15 @@ build_modrm_byte (void) nds = tmp; } - gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot], ®xmm) + gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot], + ®xmm) || operand_type_equal (&i.tm.operand_types[reg_slot], ®ymm)); exp->X_op = O_constant; exp->X_add_number = ((i.op[reg_slot].regs->reg_num - + ((i.op[reg_slot].regs->reg_flags & RegRex) ? 8 : 0)) << 4); + + ((i.op[reg_slot].regs->reg_flags & RegRex) ? 8 : 0)) + << 4); } else { @@ -5096,12 +5098,14 @@ build_modrm_byte (void) i.types[imm_slot].bitfield.imm8 = 1; } - gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot], ®xmm) - || operand_type_equal (&i.tm.operand_types[reg_slot], - ®ymm)); + gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot], + ®xmm) + || operand_type_equal (&i.tm.operand_types[reg_slot], + ®ymm)); i.op[imm_slot].imms->X_add_number |= ((i.op[reg_slot].regs->reg_num - + ((i.op[reg_slot].regs->reg_flags & RegRex) ? 8 : 0)) << 4); + + ((i.op[reg_slot].regs->reg_flags & RegRex) ? 8 : 0)) + << 4); } gas_assert (operand_type_equal (&i.tm.operand_types[nds], ®xmm)