mirror of git://gcc.gnu.org/git/gcc.git
parent
9776e6920d
commit
2efc145507
|
|
@ -2277,9 +2277,9 @@ simplify_binary_operation_1 (enum rtx_code code, machine_mode mode,
|
||||||
if (!HONOR_SIGNED_ZEROS (mode) && trueop0 == CONST0_RTX (mode))
|
if (!HONOR_SIGNED_ZEROS (mode) && trueop0 == CONST0_RTX (mode))
|
||||||
return simplify_gen_unary (NEG, mode, op1, mode);
|
return simplify_gen_unary (NEG, mode, op1, mode);
|
||||||
|
|
||||||
/* (-1 - a) is ~a, unless the expression avoids symbolic constants,
|
/* (-1 - a) is ~a, unless the expression contains symbolic
|
||||||
in which case not retaining additions and subtractions could
|
constants, in which case not retaining additions and
|
||||||
cause invalid assembly to be produced. */
|
subtractions could cause invalid assembly to be produced. */
|
||||||
if (trueop0 == constm1_rtx
|
if (trueop0 == constm1_rtx
|
||||||
&& !contains_symbolic_reference_p (op1))
|
&& !contains_symbolic_reference_p (op1))
|
||||||
return simplify_gen_unary (NOT, mode, op1, mode);
|
return simplify_gen_unary (NOT, mode, op1, mode);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue