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]

Re: How to clean up i386 machine description?


> 
> If this is the case, what I suggest you do is to use the extra
> condition field of the patterns to reject invalid combinations of the
> operands.  I did this with the C4x target where I wanted to minimise
> the amount of reloading.  On the x86 you'll probably find that the
This sounds interesting. I am doing that in my move patterns
and it seems to work.
But I am not sure how to use it correctly, because I don't know how
exactly reload choose the parameters.
If I understand correctly it does by alternative, always tries to
match and use the condition filed from insn pattern?
So for example if I use "m,r" constraint and
in condition I use GET_CODE(oeprands[x])!=MEM
I will get "r" constraint?
(just simple example :)

I will definitivly look at C4x patterns.

Honza
> predicates match almost anything but that there are limited
> combinations of valid operands.
> 
> Michael.
> 

-- 
------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!


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