Commit b5a09c41 by Richard Earnshaw

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

instead of op1, before calling plus_constant.

From-SVN: r7510
parent 2e7e7121
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment