This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, This patch updates constant folding to not associate operations for saturating types, because it affects the result. One new test is added. Thanks! Regards, Chao-ying gcc/ChangeLog 2007-03-29 Chao-ying Fu <fu@mips.com> * fold-const.c (split_tree): Support FIXED_CST. (operand_equal_p): Support FIXED_CST. (fold_binary): Make sure the type is not saturating, before associating operations. Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2). gcc/testsuite/ChangeLog 2007-03-29 Chao-ying Fu <fu@mips.com> * gcc.dg/fixed-ponit/noassoc.c: New test.
Attachment:
gcc.diff
Description: gcc.diff
Attachment:
noassoc.c
Description: noassoc.c
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |