summaryrefslogtreecommitdiffstats
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-02-11 14:02:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-02-11 14:02:50 +0000
commit24981e7b9507c456c54c1ac7a313e19bc8667dfd (patch)
treef293a5615ad0e0d438b676adaeb78a35c331e616 /gas
parentc75ef631bde5789ce8873821d7491d6d14025a39 (diff)
downloadppe42-binutils-24981e7b9507c456c54c1ac7a313e19bc8667dfd.tar.gz
ppe42-binutils-24981e7b9507c456c54c1ac7a313e19bc8667dfd.zip
Reformat build_modrm_byte.
2010-02-11 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_modrm_byte): Reformat.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-i386.c16
2 files changed, 14 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c9c215801b..1c2ea9eb96 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2010-02-11 H.J. Lu <hongjiu.lu@intel.com>
+ * config/tc-i386.c (build_modrm_byte): Reformat.
+
+2010-02-11 H.J. Lu <hongjiu.lu@intel.com>
+
* config/tc-i386.c: Update copyright.
2010-02-10 Quentin Neill <quentin.neill@amd.com>
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 4bdfa39346..9e804c6cd6 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], &regxmm)
+ gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot],
+ &regxmm)
|| operand_type_equal (&i.tm.operand_types[reg_slot],
&regymm));
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], &regxmm)
- || operand_type_equal (&i.tm.operand_types[reg_slot],
- &regymm));
+ gas_assert (operand_type_equal (&i.tm.operand_types[reg_slot],
+ &regxmm)
+ || operand_type_equal (&i.tm.operand_types[reg_slot],
+ &regymm));
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], &regxmm)
OpenPOWER on IntegriCloud