Re: Aligning stack offsets for spills

2021-06-10 Thread Jeff Law via Gcc-patches
On 6/8/2021 8:55 AM, Jakub Jelinek wrote: On Tue, Jun 08, 2021 at 08:47:26AM -0600, Jeff Law wrote: Why is the machinery involving STACK_SLOT_ALIGNMENT and spill_slot_alignment() (for spilling) or get_stack_local_alignment() (for backing stack slots) not working for you? If everything is

Re: Aligning stack offsets for spills

2021-06-10 Thread Segher Boessenkool
On Thu, Jun 10, 2021 at 02:28:34PM -0500, Peter Bergner via Gcc-patches wrote: > On 6/7/21 2:00 PM, Jeff Law wrote: > > I can't divulge many of the details right now, but one of the quirks of our > > architecture is that reg+d addressing modes for our vector loads/stores > > require > > the

Re: Aligning stack offsets for spills

2021-06-10 Thread Peter Bergner via Gcc-patches
On 6/7/21 2:00 PM, Jeff Law wrote: > I can't divulge many of the details right now, but one of the quirks of our > architecture is that reg+d addressing modes for our vector loads/stores > require > the displacement to be aligned. This is an artifact of how these instructions > are encoded.

Re: Aligning stack offsets for spills

2021-06-08 Thread Michael Matz
Hello, On Tue, 8 Jun 2021, Jeff Law wrote: > On 6/8/2021 9:06 AM, H.J. Lu wrote: > > On Tue, Jun 8, 2021 at 7:56 AM Jakub Jelinek via Gcc-patches > > wrote: > >> On Tue, Jun 08, 2021 at 08:47:26AM -0600, Jeff Law wrote: > Why is the machinery involving STACK_SLOT_ALIGNMENT and >

Re: Aligning stack offsets for spills

2021-06-08 Thread Jeff Law
On 6/8/2021 9:06 AM, H.J. Lu wrote: On Tue, Jun 8, 2021 at 7:56 AM Jakub Jelinek via Gcc-patches wrote: On Tue, Jun 08, 2021 at 08:47:26AM -0600, Jeff Law wrote: Why is the machinery involving STACK_SLOT_ALIGNMENT and spill_slot_alignment() (for spilling) or get_stack_local_alignment()

Re: Aligning stack offsets for spills

2021-06-08 Thread H.J. Lu via Gcc-patches
On Tue, Jun 8, 2021 at 7:56 AM Jakub Jelinek via Gcc-patches wrote: > > On Tue, Jun 08, 2021 at 08:47:26AM -0600, Jeff Law wrote: > > > Why is the machinery involving STACK_SLOT_ALIGNMENT and > > > spill_slot_alignment() (for spilling) or get_stack_local_alignment() (for > > > backing stack

Re: Aligning stack offsets for spills

2021-06-08 Thread Jeff Law
On 6/8/2021 12:56 AM, Richard Biener wrote: On Mon, Jun 7, 2021 at 9:00 PM Jeff Law wrote: So, as many of you know I left Red Hat a while ago and joined Tachyum. We're building a new processor and we've come across an issue where I think we need upstream discussion. I can't divulge many

Re: Aligning stack offsets for spills

2021-06-08 Thread Jakub Jelinek via Gcc-patches
On Tue, Jun 08, 2021 at 08:47:26AM -0600, Jeff Law wrote: > > Why is the machinery involving STACK_SLOT_ALIGNMENT and > > spill_slot_alignment() (for spilling) or get_stack_local_alignment() (for > > backing stack slots) not working for you? If everything is setup > > correctly the input

Re: Aligning stack offsets for spills

2021-06-08 Thread Jeff Law
On 6/8/2021 8:08 AM, Michael Matz wrote: Hello, On Mon, 7 Jun 2021, Jeff Law wrote: So, as many of you know I left Red Hat a while ago and joined Tachyum.  We're building a new processor and we've come across an issue where I think we need upstream discussion. I can't divulge many of the

Re: Aligning stack offsets for spills

2021-06-08 Thread Michael Matz
Hello, On Mon, 7 Jun 2021, Jeff Law wrote: > > So, as many of you know I left Red Hat a while ago and joined Tachyum.  We're > building a new processor and we've come across an issue where I think we need > upstream discussion. > > I can't divulge many of the details right now, but one of the

Re: Aligning stack offsets for spills

2021-06-08 Thread Richard Biener via Gcc-patches
On Mon, Jun 7, 2021 at 9:00 PM Jeff Law wrote: > > > So, as many of you know I left Red Hat a while ago and joined Tachyum. > We're building a new processor and we've come across an issue where I > think we need upstream discussion. > > I can't divulge many of the details right now, but one of

Aligning stack offsets for spills

2021-06-07 Thread Jeff Law
So, as many of you know I left Red Hat a while ago and joined Tachyum.  We're building a new processor and we've come across an issue where I think we need upstream discussion. I can't divulge many of the details right now, but one of the quirks of our architecture is that reg+d addressing