+2000-04-03 Alan Modra <alan@linuxcare.com.au>
+
+ * config/tc-i386.c (i386_immediate): Don't assume a constant
+ immediate is necessarily 16 bits when in 16 bit code mode.
+ (md_assemble): Instead set guess_suffix here after we have checked
+ registers.
+
2000-04-02 Richard Henderson <rth@cygnus.com>
* config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
break;
}
}
+ else if (flag_16bit_code ^ (i.prefix[DATA_PREFIX] != 0))
+ guess_suffix = WORD_MNEM_SUFFIX;
+
for (op = i.operands; --op >= 0; )
if ((i.types[op] & Imm)
&& i.op[op].imms->X_op == O_constant)
if (exp->X_op == O_constant)
{
- int bigimm = Imm32;
- if (flag_16bit_code ^ (i.prefix[DATA_PREFIX] != 0))
- bigimm = Imm16;
- i.types[this_operand] |= bigimm;
+ i.types[this_operand] |= Imm32; /* Size it properly later. */
}
#if (defined (OBJ_AOUT) || defined (OBJ_MAYBE_AOUT))
else if (