[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Sep 25 08:19:14 2014 New Revision: 215587 URL: https://gcc.gnu.org/viewcvs?rev=215587&root=gcc&view=rev Log: PR tree-optimization/63341 * tree-vectorizer.h (vect_create_data_

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Thu Sep 25 08:17:32 2014 New Revision: 215585 URL: https://gcc.gnu.org/viewcvs?rev=215585&root=gcc&view=rev Log: PR tree-optimization/63341 * tree-vectorizer.h (vect_create_data_r

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Thu Sep 25 08:12:49 2014 New Revision: 215583 URL: https://gcc.gnu.org/viewcvs?rev=215583&root=gcc&view=rev Log: PR tree-optimization/63341 * tree-vectorizer.h (vect_create_data_r

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #6 from Jakub Jelinek --- Another testcase: typedef union U { unsigned short s; unsigned char c; } __attribute__((packed)) U; struct S { char e __attribute__((aligned (16))); U s[32]; }; struct S t = {0, {{0x5010}, {0x5111}, {0x5212},

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #5 from Richard Biener --- Note that vect_create_addr_base_for_vector_ref _does_ multiply offset by the scalar element size (even if it calls it 'step'): tree step = TYPE_SIZE_UNIT (TREE_TYPE (DR_REF (dr))); ... if (offset) {

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #4 from Richard Biener --- Btw, should be reproducible with negative step cases on x86_64 as well, as we do there if (negative) offset = size_int (-TYPE_VECTOR_SUBPARTS (vectype) + 1); ? I suppose interpreting offset in terms

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #3 from Richard Biener --- Hum, from the comment on vect_create_data_ref_ptr I would expect offset to be in units of the _vector_ size ... Output: 1. Declare a new ptr to vector_type, and have it point to the base of the

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 --- Comment #2 from Jakub Jelinek --- I see non-NULL offset passed to vect_create_data_ref_ptr by vectorizable_store (for negative case), vectorizable_load (for this dr_explicit_realign_optimized), and to vect_create_addr_base_for_vector_ref in v

[Bug tree-optimization/63341] [4.8/4.9/5 Regression] Vectorization miscompilation with -mcpu=power7

2014-09-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |4.8.4 Summary|[4.8/4.9/5