This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18767] No vectorization for simple loop
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 May 2011 21:44:52 +0000
- Subject: [Bug tree-optimization/18767] No vectorization for simple loop
- Auto-submitted: auto-generated
- References: <bug-18767-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18767
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2011-05-22 21:25:27 UTC ---
(In reply to comment #3)
> Still not vectorized in recent GCC:
>
> t.c:7: note: not vectorized: unsupported use in stmt.
pr18767.c:10: note: reduction: unsafe fp math optimization: s_8 = D.2696_7 +
s_16;
-ffast-math solves this.
foobar:
.LFB0:
.cfi_startproc
vmovaps b(%rip), %xmm0
vmulps a(%rip), %xmm0, %xmm0
vhaddps %xmm0, %xmm0, %xmm0
vhaddps %xmm0, %xmm0, %xmm0
ret