+2016-07-12 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/predicates.md (x86_64_immediate_operand)
+ <case CONST_INT>: Remove unneeded truncation to DImode.
+ <case CONST>: Ditto.
+ (x86_64_zext_immediate_operand) <case CONST>: Ditto.
+
2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/71805
{
case CONST_INT:
{
- HOST_WIDE_INT val = trunc_int_for_mode (INTVAL (op), DImode);
+ HOST_WIDE_INT val = INTVAL (op);
return trunc_int_for_mode (val, SImode) == val;
}
case SYMBOL_REF:
{
rtx op1 = XEXP (XEXP (op, 0), 0);
rtx op2 = XEXP (XEXP (op, 0), 1);
- HOST_WIDE_INT offset;
if (ix86_cmodel == CM_LARGE)
return false;
if (!CONST_INT_P (op2))
return false;
- offset = trunc_int_for_mode (INTVAL (op2), DImode);
+ HOST_WIDE_INT offset = INTVAL (op2);
if (trunc_int_for_mode (offset, SImode) != offset)
return false;
{
rtx op1 = XEXP (XEXP (op, 0), 0);
rtx op2 = XEXP (XEXP (op, 0), 1);
- HOST_WIDE_INT offset;
if (ix86_cmodel == CM_LARGE)
return false;
if (!CONST_INT_P (op2))
return false;
- offset = trunc_int_for_mode (INTVAL (op2), DImode);
+ HOST_WIDE_INT offset = INTVAL (op2);
if (trunc_int_for_mode (offset, SImode) != offset)
return false;