public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* insn_elision
@ 2006-10-06  6:36 Bharati Bhole
  2006-10-06 17:30 ` insn_elision Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Bharati Bhole @ 2006-10-06  6:36 UTC (permalink / raw)
  To: gcc-help

Hi,
Can anybody plz tell me what is insn_elision in .md files?
It is mentioned in gensupport.c.
Thanks.

Bharati.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: insn_elision
  2006-10-06  6:36 insn_elision Bharati Bhole
@ 2006-10-06 17:30 ` Ian Lance Taylor
  2006-10-07  0:24   ` Regarding SIMD features of GCC ranjith kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2006-10-06 17:30 UTC (permalink / raw)
  To: Bharati Bhole; +Cc: gcc-help

"Bharati Bhole" <bharati.bhole@gmail.com> writes:

> Can anybody plz tell me what is insn_elision in .md files?
> It is mentioned in gensupport.c.

Here is the comment from gensupport.c which explains it.

  /* Discard insn patterns which we know can never match (because
     their C test is provably always false).  If insn_elision is
     false, our caller needs to see all the patterns.  Note that the
     elided patterns are never counted by the sequence numbering; it
     it is the caller's responsibility, when insn_elision is false, not
     to use elided pattern numbers for anything.  */

It may help to know that "elision" is an English word.  It means,
approximately, "omission," which means the act of removing something.
The related word is "elide," which is approximately the same as
"omit."

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Regarding SIMD features of GCC
  2006-10-06 17:30 ` insn_elision Ian Lance Taylor
@ 2006-10-07  0:24   ` ranjith kumar
  2006-10-07  1:25     ` Tim Prince
  2006-10-07 14:05     ` John (Eljay) Love-Jensen
  0 siblings, 2 replies; 5+ messages in thread
From: ranjith kumar @ 2006-10-07  0:24 UTC (permalink / raw)
  To: gcc-help

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?

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.)

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?

Can any one help me?
Thanks. 


		
___________________________________________________________ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Regarding SIMD features of GCC
  2006-10-07  0:24   ` Regarding SIMD features of GCC ranjith kumar
@ 2006-10-07  1:25     ` Tim Prince
  2006-10-07 14:05     ` John (Eljay) Love-Jensen
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Prince @ 2006-10-07  1:25 UTC (permalink / raw)
  To: ranjith kumar; +Cc: gcc-help

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>.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Regarding SIMD features of GCC
  2006-10-07  0:24   ` Regarding SIMD features of GCC ranjith kumar
  2006-10-07  1:25     ` Tim Prince
@ 2006-10-07 14:05     ` John (Eljay) Love-Jensen
  1 sibling, 0 replies; 5+ messages in thread
From: John (Eljay) Love-Jensen @ 2006-10-07 14:05 UTC (permalink / raw)
  To: ranjith kumar, gcc-help

Hi Ranjith,

Sorry - partial answer, may be somewhat tangential.

You can get the compiler to produce a list of optimization produced by a given optimization level list this:

Example for C and -O2:
echo "" | gcc -O2 -fverbose-asm -c -S -x c -; cat ./-.s; rm ./-.s

Example for C++ and -O3:
echo "" | g++ -O3 -fverbose-asm -c -S -x c++ -; cat ./-.s; rm ./-.s

If you have them on your system, one way to access the SSE facilities is through the #include <mmintrin.h> and #include <xmmintrin.h> headers.

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-07 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-06  6:36 insn_elision Bharati Bhole
2006-10-06 17:30 ` insn_elision Ian Lance Taylor
2006-10-07  0:24   ` Regarding SIMD features of GCC ranjith kumar
2006-10-07  1:25     ` Tim Prince
2006-10-07 14:05     ` John (Eljay) Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).