This is the mail archive of the gcc-patches@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]

Re: [wwwdocs] Vectorizer's updates to 4.3.0 changes


On Wed, Mar 12, 2008 at 09:41:22AM +0100, Dominique Dhumieres wrote:
> > > +     <code>-O3</code>. In order to generate code for a SIMD extension, it
> > > +     has to be specified as well: use <code>-maltivec</code> for PowerPC
> > > +     platforms and <code>-msse/-msse2</code> for i?86 and x86_64.
> > 
> > You should not need -msse/-msse2 for x86-64 at all since that is the
> > default.  If you do not this, I would consider it a bug.
> 
> I find this part extremely confusing. If -O3 enable vectorization, why does not it
> set the relevant -m* to make it effective? If not, I would also consider it a bug.

Because on i?86 and PowerPC -msse2 resp. -maltivec isn't available on all
CPUs?  -O3 is not an option that should change the slected instruction set.
If on i?86 -msse2 isn't given (nor -march= for CPUs that support SSE2), the
vectorizer vectorizes what it can given the available instruction set.

	Jakub


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