[Bug optimization/14552] compiled trivial vector intrinsic code is ineffiencent

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 12 16:38:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-12 16:38 -------
Using a tempary variable I can get it down to 5 instructions (including the return):
        movq    w, %mm0
        psllw   $1, %mm0
        movq    %mm0, dw
        movq    %mm0, w
        ret

The problem is that global variables create the pessimize code so this is a dup of bug 12395.

*** This bug has been marked as a duplicate of 12395 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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



More information about the Gcc-bugs mailing list