Re: constraints for push byte on word-aligned stack

2011-04-05 Thread Peter Bigot
On Tue, Apr 5, 2011 at 2:35 AM, Andreas Schwab wrote: > Peter Bigot writes: > >> I have a target that supports a "push.b x" operation that puts a byte onto >> the stack but pre-decrements the stack pointer by 2 to maintain alignment. > > That looks like the same as what m68k does, see PUSH_ROUNDI

Re: constraints for push byte on word-aligned stack

2011-04-05 Thread Andreas Schwab
Peter Bigot writes: > I have a target that supports a "push.b x" operation that puts a byte onto > the stack but pre-decrements the stack pointer by 2 to maintain alignment. That looks like the same as what m68k does, see PUSH_ROUNDING. Andreas. -- Andreas Schwab, sch...@redhat.com GPG Key fi

Re: constraints for push byte on word-aligned stack

2011-04-04 Thread Paul Koning
On Apr 4, 2011, at 12:04 PM, Peter Bigot wrote: > I have a target that supports a "push.b x" operation that puts a byte onto > the stack but pre-decrements the stack pointer by 2 to maintain alignment. FWIW, you might look at the pdp11 target support, since what you describe is done by pdp11 al

constraints for push byte on word-aligned stack

2011-04-04 Thread Peter Bigot
I have a target that supports a "push.b x" operation that puts a byte onto the stack but pre-decrements the stack pointer by 2 to maintain alignment. I have a machine description that includes these two defines: (define_insn "*pushqi_pre_mod" [(set (mem:QI (pre_modify:HI (reg:HI 1)