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: Who is responsible for satisfying assembler constraints?


Joern Rennecke <amylaar@cygnus.co.uk> writes:

> > However I thought the whole point of constraints was that gcc would make sure
> > they would be satisfied?
> 
> reload can reload objects from memory into registers, but not vice versa.

It can also put constants, or registers equivalent to constants, into
memory, and move registers into memory to move them into other
registers.  I don't think it should ever need to move registers into
memory directly, because then the pseudo should not have been
allocated a hard register in the first place.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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