public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jbeulich at suse dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/104497] New: SEGV during GIMPLE pass: pre
Date: Fri, 11 Feb 2022 07:34:54 +0000	[thread overview]
Message-ID: <bug-104497-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104497
           Summary: SEGV during GIMPLE pass: pre
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbeulich at suse dot com
  Target Milestone: ---

Compiling this

// -msse2 (on ix86) or -msse4 or -mavx
// -O0 and -O1 are okay; -Os and -O2 are not

typedef float __attribute__((mode(SF), vector_size(16))) vec_t;

extern vec_t src, inv;

void aux(vec_t);

void test(void)
{
    unsigned int i;
    vec_t y;

    for (i = 0; i < (16 / 4); ++i)
        y[i] = (i & 1 ? inv : src)[i];

    aux(y);
}

yields

$ gccver=11.2.0-base gccx -Wall -W -Os -msse2 -c simd-test2.c
during GIMPLE pass: pre
simd-test2.c: In function ‘test’:
simd-test2.c:10:6: internal compiler error: Segmentation fault
   10 | void test(void)
      |      ^~~~
0x877d21a crash_signal
        /usr/local/src/gcc-11.2.0/gcc/toplev.c:327
0x88d5bdd phi_translate_1
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:1717
0x88d67f9 phi_translate
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:1770
0x88d8d4b phi_translate_set
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:1815
0x88d9067 compute_antic_aux
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:2155
0x88da2c5 compute_antic
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:2501
0x88da2c5 execute
        /usr/local/src/gcc-11.2.0/gcc/tree-ssa-pre.c:4386

This same code compiles fine with gcc 10.

             reply	other threads:[~2022-02-11  7:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11  7:34 jbeulich at suse dot com [this message]
2022-02-11  7:50 ` [Bug tree-optimization/104497] " jbeulich at suse dot com
2022-02-11  7:57 ` pinskia at gcc dot gnu.org
2022-02-11  8:02 ` [Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i] pinskia at gcc dot gnu.org
2022-02-11  9:30 ` rguenth at gcc dot gnu.org
2022-02-11 10:00 ` rguenth at gcc dot gnu.org
2022-02-11 10:04 ` rguenth at gcc dot gnu.org
2022-02-11 10:15 ` rguenth at gcc dot gnu.org
2022-02-14  8:12 ` cvs-commit at gcc dot gnu.org
2022-02-14  8:46 ` [Bug tree-optimization/104497] [11 " rguenth at gcc dot gnu.org
2022-04-07  9:53 ` cvs-commit at gcc dot gnu.org
2022-04-07  9:54 ` rguenth 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-104497-4@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).