(simplify_unary_operations): Check that operations really are

double-word before doing them.

From-SVN: r6310
This commit is contained in:
Richard Kenner 1993-12-25 06:05:04 -05:00
parent 3308590619
commit 089481a600
1 changed files with 1 additions and 1 deletions

View File

@ -3029,7 +3029,7 @@ simplify_unary_operation (code, mode, op, op_mode)
/* We can do some operations on integer CONST_DOUBLEs. Also allow
for a DImode operation on a CONST_INT. */
else if (GET_MODE (op) == VOIDmode
else if (GET_MODE (op) == VOIDmode && width == HOST_BITS_PER_INT * 2
&& (GET_CODE (op) == CONST_DOUBLE || GET_CODE (op) == CONST_INT))
{
HOST_WIDE_INT l1, h1, lv, hv;