This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Regarding SIMD features of GCC
- From: Tim Prince <timothyprince at sbcglobal dot net>
- To: ranjith kumar <ranjit_kumar_b4u at yahoo dot co dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 06 Oct 2006 18:25:16 -0700
- Subject: Re: Regarding SIMD features of GCC
- References: <20061007002405.63420.qmail@web27401.mail.ukl.yahoo.com>
- Reply-to: tprince at myrealbox dot com
ranjith kumar wrote:
Hi,
I have the following queries:
1) Apart from general optimizations (enabled by -O3
flag), what is the total list of optimizations done by
gcc(GNU C compiler) for Pentium-4 processor?
ie)processor specific optimizations only
Can any one tell any source where I can find them?
An answer which comes to mind is to look in gcc/config/i386, in the
source distribution.
2)Where can I find list of functions and data types
defined to exploit SIMD features of Pentium-4
processor by GCC. (I am familiar with SIMD features
of Pentium-4.)
How about the architecture specific include files, like <xmmintrin.h>?
From the title, I thought you might be interested in gcc-4.2 vectorization.
3) Pentium-4 has special instructions like MOVNTQ,
MOVNTPS ...to enable data from XMM and MMX registers
to be stored to memory using a non-temporal hint.
How to do the same in a C language?
Not unless a compiler has a feature for substituting those instructions,
or you take advantage of <xmmintrin.h>.