This is the mail archive of the gcc-patches@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: Can't use SImode as Pmode for x32


On 03/17/2011 03:28 PM, H.J. Lu wrote:
> It will require very extensive changes to x86 backend since stack pointer
> and frame pointer are really in DImode for x32 as x32 process runs in
> 64bit mode. If you can make it to work, please let me know.

Yes, the stack pointer uses all 64 bits for e.g. push/pop/call.  But so
what?  Given that our 32-bit move insns also implicitly zero-extend, I
don't see that we need to actually expose the fact of the 64-bit RSP to
the rest of the compiler.


r~


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