(simplify_binary_operation, case MINUS): Check mode of op0,

instead of op1, before calling plus_constant.

From-SVN: r7510
This commit is contained in:
Richard Earnshaw 1994-06-17 14:51:43 +00:00
parent 2e7e71216f
commit b5a09c4171

View File

@ -3714,7 +3714,7 @@ simplify_binary_operation (code, mode, op0, op1)
return tem;
/* Don't let a relocatable value get a negative coeff. */
if (GET_CODE (op1) == CONST_INT && GET_MODE (op1) != VOIDmode)
if (GET_CODE (op1) == CONST_INT && GET_MODE (op0) != VOIDmode)
return plus_constant (op0, - INTVAL (op1));
break;