https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69454

--- Comment #18 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #17)
> 
> Do you have a testcase to show that you need to realign stack for STV?

You can keep track alignment requirement in STV and replace

 /* Conversion means we may have 128bit register spills/fills
     which require aligned stack.  */
  if (converted_insns)
    {
      if (crtl->stack_alignment_needed < 128)
        crtl->stack_alignment_needed = 128;
      if (crtl->stack_alignment_estimated < 128)
        crtl->stack_alignment_estimated = 128;
    }

with an assert.

Reply via email to