Re: MD file patterns and RTL templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 27, 2007 at 11:13:28PM +0530, BHASKAR G. REDDY wrote:
> 
> Hi,
> Is there any way to know, how a pattern in MD file is matched while
> generating code?

   The program build/genrecog.c is compiled and run, generating insn-recog.c
which contains a decision tree to match RTL against the instruction patterns
in the machine description.

>   But there are numerous other patterns in this md file which also
> generates and instruction when matched against RTL template.

   It is quite normal since "andl" also sets the condition codes. This alone
makes for three patterns to output an "andl" instruction: One to describe
what happens to the destination operand, one to describe how the condition
codes are set and one to describe both of the above at the same time.
Additionally, "andl" may be used for clearing bit-fields.

-- 
Rask Ingemann Lambertsen

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux