This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/25413] wrong alignment or incorrect address computation in vectorized code on Pentium 4 SSE



------- Comment #17 from dorit at gcc dot gnu dot org  2007-07-25 08:40 -------
This looks like an unrelated problem - the vectorizer does not perform loop
peeling here so it's not an issue of natural alignment. Lets open a separate PR
for this one, unless there's already one open. In the meantime, would you
please try this patch?:

Index: tree-vectorizer.c
===================================================================
*** tree-vectorizer.c   (revision 126902)
--- tree-vectorizer.c   (working copy)
*************** vect_can_force_dr_alignment_p (tree decl
*** 1527,1533 ****
         PREFERRED_STACK_BOUNDARY is honored by all translation units.
         However, until someone implements forced stack alignment, SSE
         isn't really usable without this.  */
!     return (alignment <= PREFERRED_STACK_BOUNDARY);
  }


--- 1527,1533 ----
         PREFERRED_STACK_BOUNDARY is honored by all translation units.
         However, until someone implements forced stack alignment, SSE
         isn't really usable without this.  */
!     return (alignment <= STACK_BOUNDARY);
  }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25413


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]