This is the mail archive of the gcc@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: %0 and match_dup in .md


On Monday 05 January 2004 12:06 pm, Vimal Kumar wrote:
> As far as I understand, it comes out that operand 0
> and operand 1 are refering to the same expression. So,
> why can't match_dup be used in place of operand 1? In
> fact, I'm unable to figure out the differences between
> the two. I may be missing something very important.
> Please help!!

See 
"(match_dup [...]" from
http://gcc.gnu.org/onlinedocs/gccint/RTL-Template.html#RTL%20Template

and

"0,1,2...9" from
http://gcc.gnu.org/onlinedocs/gccint/Simple-Constraints.html#Simple%
20Constraints

Basically match_dup matches indicates the same operand is used multiple times. 
A "0" constraint matches the same register/object to two different operands. 
In the latter case one of the operands may be an autoincrement addressing 
mode if the machine supports such things.

HTH

Paul


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