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: scavanging a reg


>>>>> Aldy Hernandez writes:

Aldy> i need a GPR at epilogue/prologue time so i can load and save to the
Aldy> VRSAVE register (which can only be moved to and fro GPRs).

Aldy> what's the best route for this?  can i iterate through "regs_ever_live"
Aldy> and get one from there?  i mean, reload is already done so we won't need
Aldy> any more registers.

	I don't know what dependency ordering your have, but can you use
GPR12 which the prologue and epilogue already uses as an intermediate for
saving the condition register?  If you use r12, you need to be careful not
to trample the CR information for any of the ABI codepaths.

David


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