[Bug rtl-optimization/68670] [4.9 Regression] gcc.c-torture/execute/pr68376-2.c FAILs with -ftracer

2016-02-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68670

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Thu Feb 11 09:11:58 2016
New Revision: 233323

URL: https://gcc.gnu.org/viewcvs?rev=233323=gcc=rev
Log:
Backported from mainline
2015-12-10  Jakub Jelinek  

PR rtl-optimization/68376
PR rtl-optimization/68670
* ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
or > -1 conditions regardless of negate, and disallow
all other conditions.

* gcc.c-torture/execute/pr68376-2.c (f5, f6, f7, f8): New
tests.
(main): Call them.
* gcc.dg/pr68670-1.c: New test.
* gcc.dg/pr68670-2.c: New test.

2015-11-19  Jakub Jelinek  

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-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-1.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-2.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr68670-1.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr68670-2.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/ifcvt.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog

[Bug rtl-optimization/68670] [4.9 Regression] gcc.c-torture/execute/pr68376-2.c FAILs with -ftracer

2016-02-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68670

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jakub Jelinek  ---
Fixed.

[Bug rtl-optimization/68670] [4.9 Regression] gcc.c-torture/execute/pr68376-2.c FAILs with -ftracer

2016-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68670

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug rtl-optimization/68670] [4.9 Regression] gcc.c-torture/execute/pr68376-2.c FAILs with -ftracer

2015-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68670

Jakub Jelinek  changed:

   What|Removed |Added

  Known to work||6.0
Summary|[4.9/5/6 Regression]|[4.9 Regression]
   |gcc.c-torture/execute/pr683 |gcc.c-torture/execute/pr683
   |76-2.c FAILs with -ftracer  |76-2.c FAILs with -ftracer
  Known to fail|6.0 |

--- Comment #5 from Jakub Jelinek  ---
Fixed for 5.4+ so far.