public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xry111 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/109780] [12/13/14 Regression] csmith: runtime crash with -O2 -march=znver1
Date: Wed, 28 Jun 2023 09:48:02 +0000	[thread overview]
Message-ID: <bug-109780-4-XlL2rdiBHU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109780-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #17 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #16)
> Created attachment 55409 [details]
> A patch
> 
> I am stilling trying to find a small testcase.

The patch triggers an ICE building Spidermonkey 115b9 (it segfaults with GCC
trunk because of some unaligned vmovdqa):

0x93297b ix86_finalize_stack_frame_flags
        ../../gcc/gcc/config/i386/i386.cc:8224
0x162064c ix86_expand_epilogue(int)
        ../../gcc/gcc/config/i386/i386.cc:9405
0x1b2e27f gen_epilogue()
        ../../gcc/gcc/config/i386/i386.md:17517
0x160a815 target_gen_epilogue
        ../../gcc/gcc/config/i386/i386.md:17013
0xf15e86 make_epilogue_seq
        ../../gcc/gcc/function.cc:5964
0xf15f8b thread_prologue_and_epilogue_insns()
        ../../gcc/gcc/function.cc:6046
0xf166c2 rest_of_handle_thread_prologue_and_epilogue
        ../../gcc/gcc/function.cc:6544
0xf166c2 execute
        ../../gcc/gcc/function.cc:6625

The code at i386.cc:8224 reads:

  if (crtl->stack_realign_finalized)
    {
      /* After stack_realign_needed is finalized, we can't no longer
         change it.  */
      gcc_assert (crtl->stack_realign_needed == stack_realign);
      return;
    }

I'm not sure if the assert should be dropped or it's more difficult.

Or can we just force to use unaligned vector moves for block operations until
we can find a better solution?  It's at least better than leaving the
vectorized block moving broken and forcing people trying to disable the
feature.

  parent reply	other threads:[~2023-06-28  9:48 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08 20:35 [Bug c/109780] New: " dcb314 at hotmail dot com
2023-05-08 20:44 ` [Bug target/109780] " pinskia at gcc dot gnu.org
2023-05-08 20:49 ` pinskia at gcc dot gnu.org
2023-05-08 22:09 ` amonakov at gcc dot gnu.org
2023-05-09  7:41 ` rguenth at gcc dot gnu.org
2023-05-09  8:10 ` dcb314 at hotmail dot com
2023-05-09 10:00 ` dcb314 at hotmail dot com
2023-05-09 10:11 ` dcb314 at hotmail dot com
2023-05-09 10:44 ` dcb314 at hotmail dot com
2023-05-09 11:10 ` dcb314 at hotmail dot com
2023-05-09 11:32 ` marxin at gcc dot gnu.org
2023-05-09 11:56 ` amonakov at gcc dot gnu.org
2023-05-09 12:03 ` marxin at gcc dot gnu.org
2023-05-09 14:49 ` amonakov at gcc dot gnu.org
2023-05-09 14:57 ` [Bug target/109780] [12/13/14 Regression] " amonakov at gcc dot gnu.org
2023-06-23  9:42 ` rguenth at gcc dot gnu.org
2023-06-26 12:57 ` xry111 at gcc dot gnu.org
2023-06-27 18:45 ` xry111 at gcc dot gnu.org
2023-06-27 23:35 ` hjl.tools at gmail dot com
2023-06-28  9:48 ` xry111 at gcc dot gnu.org [this message]
2023-06-28  9:59 ` xry111 at gcc dot gnu.org
2023-06-28 15:47 ` hjl.tools at gmail dot com
2023-06-28 15:49 ` xry111 at gcc dot gnu.org
2023-06-28 21:39 ` xry111 at gcc dot gnu.org
2023-06-28 21:40 ` xry111 at gcc dot gnu.org
2023-06-29  2:43 ` hjl.tools at gmail dot com
2023-06-29  8:48 ` xry111 at gcc dot gnu.org
2023-06-29  9:17 ` xry111 at gcc dot gnu.org
2024-01-10 17:33 ` jamborm at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109780-4-XlL2rdiBHU@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).