This is the mail archive of the gcc-help@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: Problem in .md(Machine Description) file


> > Hi,
> > 
> > I have to write a machine description file for a
> chip.
> > For that, i am trying to understand the structure
> and
> > systex of the machine description file of i386.
> > 
> > My problem is that why a 'define_insn' with a name
> > that start with '*' is used. Is it used for
> generating
> > RTL insn or for other purpose?
> 
> The * in insn name is used for identifying the
> instruction in RTL dumps.
> These are no different from the nameless pattern.

This is what written in the GCC manual.
My problem is that if these expressions are used to
match generated RTL insn then

1. What is the difference between these and the
nameless 'define_insn'?

2. To match RTL code, that code should be generated by
some other 'define_insn'.
But the pattern in define_insn "*..." does not match
with the other patterns in the whole .md file at all.
This means that those RTL insn is not generated by any
RTL expression
in .md file. So what is the need to match them.

Waiting for reply.
Nitin Jain
CSE Dept. (IIT bombay)
 
> Regards,
> Rakesh


=====
-------------------------------------------------------------------
Nitin Jain,                       
H-8 ,Room No: 24
I.I.T.Bombay, Powai, Mumbai.
Mail-id: nitin-mbm@yahoo.com 
         nitinj@cse.iitb.ac.in
-------------------------------------------------------------------

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


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