* help: standard name of vector mode
@ 2009-10-15 13:13 彭建章
2009-10-15 18:26 ` Ian Lance Taylor
2009-10-15 23:01 ` Hans-Peter Nilsson
0 siblings, 2 replies; 3+ messages in thread
From: 彭建章 @ 2009-10-15 13:13 UTC (permalink / raw)
To: gcc
I'm porting gcc , and use its autovectorization.
How can I know wether a standard name support a vector mode ?
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help: standard name of vector mode
2009-10-15 13:13 help: standard name of vector mode 彭建章
@ 2009-10-15 18:26 ` Ian Lance Taylor
2009-10-15 23:01 ` Hans-Peter Nilsson
1 sibling, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2009-10-15 18:26 UTC (permalink / raw)
To: 彭建章; +Cc: gcc
彭建章 <jianzhangpeng@gmail.com> writes:
> I'm porting gcc , and use its autovectorization.
> How can I know wether a standard name support a vector mode ?
The standard names all have modes built into them. If you are porting
gcc, then you need to write a define_expand or define_insn in your MD
file with a standard name which incorporates the vector mode that you
are using. Using the standard name will enable the middle-end of gcc
to know about your operation. There are many examples in the existing
gcc backends.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help: standard name of vector mode
2009-10-15 13:13 help: standard name of vector mode 彭建章
2009-10-15 18:26 ` Ian Lance Taylor
@ 2009-10-15 23:01 ` Hans-Peter Nilsson
1 sibling, 0 replies; 3+ messages in thread
From: Hans-Peter Nilsson @ 2009-10-15 23:01 UTC (permalink / raw)
To: 彭建章; +Cc: gcc
[-- Attachment #1: Type: TEXT/PLAIN, Size: 526 bytes --]
On Thu, 15 Oct 2009, Åí½¨Õ wrote:
> I'm porting gcc , and use its autovectorization.
> How can I know wether a standard name support a vector mode ?
I might misunderstand your question, but the vector modes that
are supported are enumerated by the port. See e.g.
gcc/config/i386/i386-modes.def, the VECTOR_MODE lines.
With that done, the machine description defines the
standard-name-patterns for vector insns that apply to the port
(which includes those modes as part of the names, as mentioned).
brgds, H-P
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-15 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-15 13:13 help: standard name of vector mode 彭建章
2009-10-15 18:26 ` Ian Lance Taylor
2009-10-15 23:01 ` Hans-Peter Nilsson
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).