This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Can't use SImode as Pmode for x32
On 03/19/2011 08:46 AM, H.J. Lu wrote:
> Operations on stack and frame pointers, like push/pop, require stack
> and frame pointers in DImode. Even if I use word_mode in gen_push
> and gen_pop, I got
No they don't. Not really. Assuming the stack and frame pointer are
properly zero extended, and no one tries to place a stack frame across
null, then you can also represent it by an SImode operation.
> x.i:10:1: error: unrecognizable insn:
> (insn/f 22 5 23 2 (set (mem:SI (pre_dec:DI (reg/f:SI 7 sp)) [0 S4 A8])
> (reg/f:SI 6 bp)) x.i:6 -1
> (nil))
Well, gee, that merely means a pattern needs to be adjusted.
r~