+Thu Jul 23 13:49:41 1998 Jeffrey A Law (law@cygnus.com)
+
+ * expr.c (check_max_integer_computation_mode): Allow conversions
+ of constant integers to MAX_INTEGER_COMPUTATION_MODE.
+ (expand_expr): Likewise.
+
Thu Jul 23 11:12:06 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (expand_expr): Expand RETURN_EXPR.
enum tree_code code = TREE_CODE (exp);
enum machine_mode mode;
+ /* We must allow conversions of constants to MAX_INTEGER_COMPUTATION_MODE. */
+ if (code == NOP_EXPR
+ && TREE_CODE (TREE_OPERAND (exp, 0)) == INTEGER_CST)
+ return;
+
/* First check the type of the overall operation. We need only look at
unary, binary and relational operations. */
if (TREE_CODE_CLASS (code) == '1'
}
#ifdef MAX_INTEGER_COMPUTATION_MODE
- if (target)
+ if (target && TREE_CODE (exp) != INTEGER_CST)
{
enum machine_mode mode = GET_MODE (target);
fatal ("unsupported wide integer operation");
}
- if (GET_MODE_CLASS (tmode) == MODE_INT
+ if (TREE_CODE (exp) != INTEGER_CST
+ && GET_MODE_CLASS (tmode) == MODE_INT
&& tmode > MAX_INTEGER_COMPUTATION_MODE)
fatal ("unsupported wide integer operation");