http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47404
Janis Johnson <janis at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janis at gcc dot gnu.org --- Comment #2 from Janis Johnson <janis at gcc dot gnu.org> 2011-02-17 23:22:51 UTC --- This test has failed on all mips, m68k, and powerpc* targets since it was added by: r167800 | jakub | 2010-12-14 06:09:59 -0800 (Tue, 14 Dec 2010) | 15 lines PR tree-optimization/46909 * gimple-fold.c (and_var_with_comparison_1): Save partial result even in the is_and case, if both partial results are the same, return it. (or_var_with_comparison_1): Use is_or predicate instead of innercode == TRUTH_OR_EXPR test. Save partial result even in the is_or case, if both partial results are the same, return it. In the !is_or case when both partial results are the same, return the partial result instead of boolean_true_node. * gcc.c-torture/execute/pr46909-1.c: New test. * gcc.c-torture/execute/pr46909-2.c: New test. * gcc.dg/pr46909.c: New test.