------- Additional Comments From uros at kss-loka dot si 2005-07-21 08:42 ------- You can patch the mainline 4.1 compiler with the patch at http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01128.html. Patch (which is currently awaiting a review) will make gcc to produce optimal code:
'gcc -O2 -mmmx -fomit-frame-pointer' test: movq w, %mm0 paddw %mm0, %mm0 movq %mm0, w movq %mm0, dw emms ret -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |uros at kss-loka dot si |dot org | URL| |http://gcc.gnu.org/ml/gcc- | |patches/2005- | |07/msg01128.html Status|NEW |ASSIGNED Keywords| |patch Last reconfirmed|2004-11-22 03:37:09 |2005-07-21 08:42:15 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14552