From: Richard Earnshaw Date: Fri, 17 Jun 1994 14:51:43 +0000 (+0000) Subject: (simplify_binary_operation, case MINUS): Check mode of op0, X-Git-Tag: misc/cutover-egcs-0~6433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a09c4171659ff37af0febe6ec7c301e111cdd9;p=thirdparty%2Fgcc.git (simplify_binary_operation, case MINUS): Check mode of op0, instead of op1, before calling plus_constant. From-SVN: r7510 --- diff --git a/gcc/cse.c b/gcc/cse.c index a9dfa4d55cdf..28d4edb325c1 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -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;