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: Control register spilling: Is it possible ?


"Petar Penchev" <ptr@melexis.com> writes:

> and the error message is related to the first alternative which
> defines  move from memory to memory.

Wait a second.  Why are you defining an alternative to move a value
from memory to memory?  From your split, it doesn't seem like your
processor actually has such an instruction.  If it doesn't, then you
should not have an alternative for it.  gcc should figure out how to
move memory values without help.

You need a way to move a value from any register to any other register
for which HARD_REGNO_MODE_OK returns true, and you need a way to move
such values between stack slots and registers.  But you don't need a
way to move data from memory to memory.

Ian


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