[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2015-06-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 CC||corydoras at ridiculousfish 
dot co
   ||m

--- Comment #17 from Richard Biener rguenth at gcc dot gnu.org ---
*** Bug 61108 has been marked as a duplicate of this bug. ***


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2015-06-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

--- Comment #18 from Richard Biener rguenth at gcc dot gnu.org ---
Author: rguenth
Date: Wed Jun 10 12:53:09 2015
New Revision: 224327

URL: https://gcc.gnu.org/viewcvs?rev=224327root=gccview=rev
Log:
2015-06-10  Richard Biener  rguent...@suse.de

Backport from mainline
2014-04-04  Cong Hou  co...@google.com

PR tree-optimization/60656
* tree-vect-stmts.c (supportable_widening_operation):
Fix a bug that elements in a vector with vect_used_by_reduction
property are incorrectly reordered when the operation on it is not
consistant with the one in reduction operation.

* gcc.dg/vect/pr60656.c: New test.

2014-01-31  Richard Biener  rguent...@suse.de

PR middle-end/59990
* builtins.c (fold_builtin_memory_op): Make sure to not
use a floating-point mode or a boolean or enumeral type for
the copy operation.

* gcc.dg/torture/pr59990.c: New testcase.
* gcc.target/i386/pr49168-1.c: Adjust.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr59990.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr60656.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/builtins.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr49168-1.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2015-06-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org

--- Comment #16 from Richard Biener rguenth at gcc dot gnu.org ---
I'll see if it is backportable easily.


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2015-06-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

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

--- Comment #19 from Richard Biener rguenth at gcc dot gnu.org ---
Fixed.


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2015-06-09 Thread bernhard.kaindl at thalesgroup dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Bernhard Kaindl bernhard.kaindl at thalesgroup dot com changed:

   What|Removed |Added

 CC||bernhard.kaindl@thalesgroup
   ||.com

--- Comment #15 from Bernhard Kaindl bernhard.kaindl at thalesgroup dot com 
---
Confirmed:

* Fixed in: gcc-4.9.2 (release)
* NOT Fixed in: gcc-4.8.4 (release)

It seems indeed only i386, x32 and x86_64 (-m32, -mx32 and -m64) are affected.

-fopt-info-vec-note show that e.g. powerpc  powerpc64 don't vectorize the
loop.

The mainline fix from Comment #8 apples without fuzz and fixes this wrong code
issue in gcc-4.8.4.

Apply it for 4.8.5?


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2014-12-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|4.8.4   |4.8.5

--- Comment #14 from Jakub Jelinek jakub at gcc dot gnu.org ---
GCC 4.8.4 has been released.


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2014-05-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|4.8.3   |4.8.4

--- Comment #13 from Richard Biener rguenth at gcc dot gnu.org ---
GCC 4.8.3 is being released, adjusting target milestone.


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2014-04-16 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Bernd Edlinger bernd.edlinger at hotmail dot de changed:

   What|Removed |Added

 CC||bernd.edlinger at hotmail dot 
de

--- Comment #11 from Bernd Edlinger bernd.edlinger at hotmail dot de ---
Hmm,

with gcc-4.9.0-RC-20140411 on arm-linux-gnueabihf I see the following:

ERROR: gcc.dg/vect/pr60656.c: error executing dg-final: can't read
et_vect_widen_mult_si_to_di_pattern_saved: no such variable
UNRESOLVED: gcc.dg/vect/pr60656.c: error executing dg-final: can't read
et_vect_widen_mult_si_to_di_pattern_saved: no such variable

what does that mean?


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2014-04-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

--- Comment #12 from Jakub Jelinek jakub at gcc dot gnu.org ---
Should be fixed already with r209363.


[Bug tree-optimization/60656] [4.8 regression] x86 vectorization produces wrong code

2014-04-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60656

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---
Summary|[4.8/4.9 regression] x86|[4.8 regression] x86
   |vectorization produces  |vectorization produces
   |wrong code  |wrong code

--- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org ---
Actually, still not fixed on the 4.8 branch, only on the trunk.