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


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-21 01:33 -------
With -ffast-math on the mainline, we get:
_Z6foobarv:
.LFB2:
        movaps  b(%rip), %xmm1
        mulps   a(%rip), %xmm1
        movaps  %xmm1, %xmm2
        movaps  %xmm1, %xmm0
        shufps  $85, %xmm1, %xmm2
        addss   %xmm2, %xmm0
        movaps  %xmm1, %xmm2
        unpckhps        %xmm1, %xmm2
        shufps  $255, %xmm1, %xmm1
        addss   %xmm2, %xmm0
        addss   %xmm1, %xmm0
        ret



-- 


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


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