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 tree-optimization/18767] No vectorization for simple loop


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


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