fold-const.c (extract_muldiv, [...]): Reverse operation if C is negative.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Mon, 29 Nov 1999 22:56:39 +0000 (22:56 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 29 Nov 1999 22:56:39 +0000 (17:56 -0500)
commit59adecfa8c8fbb80e89a30775f9e0e1f324e52ca
tree1c896300e51d20eabe1dc79b9551f9bcde35d9f0
parentce64861eed4220d7a75b09079c13f42553d9b804
fold-const.c (extract_muldiv, [...]): Reverse operation if C is negative.

* fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
operation if C is negative.
(extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
(extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
law for some divisions if constant is negative and change other
divisions to the opposite rounding.

From-SVN: r30714
gcc/ChangeLog
gcc/fold-const.c