https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68376
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Nov 19 08:53:52 2015 New Revision: 230597 URL: https://gcc.gnu.org/viewcvs?rev=230597&root=gcc&view=rev Log: PR rtl-optimization/68376 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if encountering x <= 0 ? ~x : x or x > 0 ? ~x : x. * gcc.c-torture/execute/pr68376-1.c: New test. * gcc.c-torture/execute/pr68376-2.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-1.c branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-2.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ifcvt.c branches/gcc-5-branch/gcc/testsuite/ChangeLog