This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14552] compiled trivial vector intrinsic code contains nearly twice as many instructions as needed
- From: "michaelni at gmx dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2004 16:26:04 -0000
- Subject: [Bug optimization/14552] compiled trivial vector intrinsic code contains nearly twice as many instructions as needed
- References: <20040312131535.14552.michaelni@gmx.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From michaelni at gmx dot at 2004-03-12 16:26 -------
sorry, no thats not the same code, it has 1 instruction more, uses a shift
instead of a addition and writes the value to memory and reads it
immedeatly afterwards, anyway iam not surprised that the bugreport got
closed immedeatly
gcc:
movq w, %mm1
psllw $1, %mm1 <-------
movq %mm1, w
movq w, %mm0 <------
movq %mm0, dw
human:
movq w, %mm1
paddw %mm1,%mm1
movq %mm1, w
movq %mm1,dw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14552