aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-09-14 20:05:28 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-09-14 20:05:28 +0000
commitb5016f899b41a0b13614ef023ceacc0079f84c91 (patch)
tree3fa6f6b92877387516bfea310047ebfc35060691 /gas
parentc0209578ea4c8c8c1aa4e6839a8cdd592146f073 (diff)
downloadgdb-b5016f899b41a0b13614ef023ceacc0079f84c91.zip
gdb-b5016f899b41a0b13614ef023ceacc0079f84c91.tar.gz
gdb-b5016f899b41a0b13614ef023ceacc0079f84c91.tar.bz2
2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (build_modrm_byte): Use (A || B) instead of (A || B) != 0.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8f28e59..b736e96 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
+ * config/tc-i386.c (build_modrm_byte): Use (A || B) instead
+ of (A || B) != 0.
+
+2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
+
* config/tc-i386.c (build_modrm_byte): Adjust indentation.
2007-09-14 Michael Meissner <michael.meissner@amd.com>
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index cf00046..fd9e0c3 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4373,7 +4373,7 @@ build_modrm_byte (void)
here, it looks to GAS as if this is a 2 operand instruction. */
if ((i.tm.opcode_modifier.drex
|| i.tm.opcode_modifier.drexv
- || i.tm.opcode_modifier.drexc) != 0
+ || i.tm.opcode_modifier.drexc)
&& i.reg_operands == 2)
{
const reg_entry *reg = i.op[i.drex.modrm_reg].regs;
@@ -4470,9 +4470,9 @@ build_modrm_byte (void)
/* This has been precalculated for SSE5 instructions
that have a DREX field earlier in process_drex. */
- if ((i.tm.opcode_modifier.drex
- || i.tm.opcode_modifier.drexv
- || i.tm.opcode_modifier.drexc) != 0)
+ if (i.tm.opcode_modifier.drex
+ || i.tm.opcode_modifier.drexv
+ || i.tm.opcode_modifier.drexc)
op = i.drex.modrm_regmem;
else
{
@@ -4675,9 +4675,9 @@ build_modrm_byte (void)
/* This has been precalculated for SSE5 instructions
that have a DREX field earlier in process_drex. */
- if ((i.tm.opcode_modifier.drex
- || i.tm.opcode_modifier.drexv
- || i.tm.opcode_modifier.drexc) != 0)
+ if (i.tm.opcode_modifier.drex
+ || i.tm.opcode_modifier.drexv
+ || i.tm.opcode_modifier.drexc)
{
op = i.drex.modrm_reg;
i.rm.reg = i.op[op].regs->reg_num;