public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vsevolod.livinskij at frtk dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/95308] New: ICE: in maybe_canonicalize_mem_ref_addr with -O3 -march=skylake-avx512
Date: Sun, 24 May 2020 21:05:39 +0000	[thread overview]
Message-ID: <bug-95308-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 95308
           Summary: ICE: in maybe_canonicalize_mem_ref_addr with -O3
                    -march=skylake-avx512
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vsevolod.livinskij at frtk dot ru
  Target Milestone: ---

Error:
>$ g++ -O3 -march=skylake-avx512 -c func.cpp
during GIMPLE pass: forwprop
func.cpp: In function ‘void i(char, long int (*)[100][100][100])’:
func.cpp:5:6: internal compiler error: in maybe_canonicalize_mem_ref_addr, at
gimple-fold.c:4912
    5 | void i(char f, long g[][100][100][100]) {
      |      ^
0x76db2a maybe_canonicalize_mem_ref_addr
        gcc_src/gcc/gimple-fold.c:4912
0xdfdd97 fold_stmt_1
        gcc_src/gcc/gimple-fold.c:5014
0x1226b41 execute
        gcc_src/gcc/tree-ssa-forwprop.c:3095

Reproducer:
extern int a[][18];
extern short b[], c[];
extern char d[][18];
int e;
void i(char f, long g[][100][100][100]) {
  for (int h = 0;; h += 2)
    for (char j = 0; j < 17; j++) {
      if (e ? f : 0) {
        a[h][j] = 5;
        for (int k = 0; k < 12; k += 4)
          for (short l = 0; l < 015; l += 2)
            b[k * 3 + l] = bool(g[2][j][k][l]);
      } else
        d[h][j] = 0;
      c[j] = 3;
    }
}

GCC version:
11.0.0 (a57aa11191617754c8d43b3eb6a2576e970a0668)

             reply	other threads:[~2020-05-24 21:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-24 21:05 vsevolod.livinskij at frtk dot ru [this message]
2020-05-24 21:08 ` [Bug tree-optimization/95308] " vsevolod.livinskij at frtk dot ru
2020-05-25  7:36 ` rguenth at gcc dot gnu.org
2020-05-25  8:50 ` [Bug tree-optimization/95308] [10/11 Regression] ICE: in maybe_canonicalize_mem_ref_addr with -O3 -march=skylake-avx512 since r10-4203-g97c146036750e7cb marxin at gcc dot gnu.org
2020-05-25 10:38 ` cvs-commit at gcc dot gnu.org
2020-05-25 10:38 ` [Bug tree-optimization/95308] [10 " rguenth at gcc dot gnu.org
2020-05-25 11:46 ` cvs-commit at gcc dot gnu.org
2020-06-23 11:06 ` cvs-commit at gcc dot gnu.org
2020-06-23 11:09 ` 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-95308-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).