This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does SIMD optimization of GCC 3.4.6 work?
- From: Rene Rebe <rene at exactcode dot de>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: gcc at gcc dot gnu dot org, zhou13 at netscape dot net
- Date: Wed, 5 Jul 2006 20:38:44 +0200
- Subject: Re: Does SIMD optimization of GCC 3.4.6 work?
- References: <031201c6a060$782bd180$a501a8c0@CAM.ARTIMI.COM>
Hi,
On Wednesday 05 July 2006 20:26, Dave Korn wrote:
> I believe Lionel's real problem is likely to be that he was hoping that
> turning on the "-mmx -sse -sse2 -3dnow" options would auto-vectorise his code
> for him.
>
> Lionel, (IIUIC) those options just /enable/ the use of the various SIMD
> features; they don't adjust your code to use those features if it doesn't do
> so already, so apart from a fairly small speed-up on some floating point
> operations that can be done more efficiently in the mmx unit, you shouldn't
> have been expecting to see much difference in the first place.
When you put it this way one should point him to "-ftree-vectorize" of
GCC 4.0 and 4.1 ...
Yours,
--
René Rebe - ExactCODE - Berlin (Europe / Germany)
http://exactcode.de | http://t2-project.org | http://rene.rebe.name
+49 (0)30 / 255 897 45