public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/97701] New: [10/11 Regression] aarch64: ICE in extract_constrain_insn since r10-4447-g095f78c6
Date: Tue, 03 Nov 2020 14:41:02 +0000	[thread overview]
Message-ID: <bug-97701-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 97701
           Summary: [10/11 Regression] aarch64: ICE in
                    extract_constrain_insn since r10-4447-g095f78c6
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

For the following testcase:

extern char a[][12][18][17][17];
extern short b[][12][18][17][17];
extern int c[][2][8][7];
short *d;
void e(signed f, int g, char h, char i, char j) {
  for (int k = 648; k; k += f)
    for (short l; l < j; l += 9)
      for (long m = f + 6LL; m < (h ? h : i); m += 2)
        for (int n = 0; n < 16; n += 3LL) {
          for (int o = g; o; o++)
            a[k][l][m][n][o] = b[k][l][m][n][o] = d[k] ? 2 : 0;
          c[k][l][m][0] = 0;
        }
}

AArch64 GCC ICEs at -O3 since
r10-4447-g095f78c62157124ad479a3f98b6995ced090b807. To reproduce:

$ aarch64-elf-gcc -c test.c -O3
test.c: In function 'e':
test.c:14:1: error: insn does not satisfy its constraints:
   14 | }
      | ^
(insn 2496 2495 2497 5 (set (reg:DI 32 v0 [1415])
        (lo_sum:DI (reg:DI 6 x6 [1416])
            (symbol_ref/u:DI ("*.LC0") [flags 0x82]))) 1007 {add_losym_di}
     (nil))
during RTL pass: reload
test.c:14:1: internal compiler error: in extract_constrain_insn, at
recog.c:2212
0xd1ab2f _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:108
0xd1ab60 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:118
0xcec957 extract_constrain_insn(rtx_insn*)
        /home/alecop01/toolchain/src/gcc/gcc/recog.c:2212
0xbbe58d check_rtl
        /home/alecop01/toolchain/src/gcc/gcc/lra.c:2038
0xbc3451 lra(_IO_FILE*)
        /home/alecop01/toolchain/src/gcc/gcc/lra.c:2447
0xb76cff do_reload
        /home/alecop01/toolchain/src/gcc/gcc/ira.c:5725
0xb76cff execute
        /home/alecop01/toolchain/src/gcc/gcc/ira.c:5911
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2020-11-03 14:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 14:41 acoplan at gcc dot gnu.org [this message]
2020-11-03 14:41 ` [Bug target/97701] " acoplan at gcc dot gnu.org
2020-11-03 15:01 ` rguenth at gcc dot gnu.org
2020-11-20  8:30 ` jakub at gcc dot gnu.org
2020-11-20 15:17 ` acoplan at gcc dot gnu.org
2020-11-20 15:54 ` acoplan at gcc dot gnu.org
2020-11-20 16:13 ` acoplan at gcc dot gnu.org
2021-01-14  9:35 ` rguenth at gcc dot gnu.org
2021-01-26 11:25 ` jakub at gcc dot gnu.org
2021-01-28 18:29 ` vmakarov at gcc dot gnu.org
2021-01-29 19:54 ` cvs-commit at gcc dot gnu.org
2021-01-29 19:55 ` vmakarov at gcc dot gnu.org
2021-01-29 20:00 ` jakub at gcc dot gnu.org
2021-01-29 20:13 ` vmakarov at gcc dot gnu.org
2021-01-29 21:06 ` cvs-commit at gcc dot gnu.org
2021-02-03 15:57 ` [Bug target/97701] [10 " jakub at gcc dot gnu.org
2021-02-04 21:04 ` cvs-commit at gcc dot gnu.org
2021-03-31  9:08 ` acoplan at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-06-28 10:42 ` jakub at gcc dot gnu.org
2023-07-07  9:11 ` 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-97701-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).