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 tree-optimization/98766] New: SVE: ICE in tree_to_shwi with -O3 --param=avoid-fma-max-bits
Date: Wed, 20 Jan 2021 12:02:21 +0000	[thread overview]
Message-ID: <bug-98766-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 98766
           Summary: SVE: ICE in tree_to_shwi with -O3
                    --param=avoid-fma-max-bits
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat test.c
extern int a[];
void c(short *d) {
  for (int e = 0; e < 9; e++)
    a[e] = d[e] * 2;
}
$ aarch64-elf-gcc -c test.c -march=armv8.2-a+sve -O3
--param=avoid-fma-max-bits=8
during GIMPLE pass: widening_mul
test.c: In function 'c':
test.c:2:6: internal compiler error: in tree_to_shwi, at tree.c:7448
    2 | void c(short *d) {
      |      ^
0x11684f0 tree_to_shwi(tree_node const*)
        /home/alecop01/toolchain/src/gcc/gcc/tree.c:7448
0xfd97c1 convert_mult_to_fma
        /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:3255
0xfda040 after_dom_children
        /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:4619
0x19d3d80 dom_walker::walk(basic_block_def*)
        /home/alecop01/toolchain/src/gcc/gcc/domwalk.c:352
0xfd3731 execute
        /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-math-opts.c:4718
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.

Removing any one of the options makes the ICE go away. It appears to ICE at any
nonzero valid value of the param (although I've not checked this exhaustively).

             reply	other threads:[~2021-01-20 12:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-20 12:02 acoplan at gcc dot gnu.org [this message]
2021-01-20 12:06 ` [Bug tree-optimization/98766] [10/11 Regression] " ktkachov at gcc dot gnu.org
2021-01-20 14:50 ` rguenth at gcc dot gnu.org
2021-01-22 12:41 ` ktkachov at gcc dot gnu.org
2021-01-22 16:41 ` cvs-commit at gcc dot gnu.org
2021-01-22 16:42 ` [Bug tree-optimization/98766] [10 " ktkachov at gcc dot gnu.org
2021-01-27 14:42 ` cvs-commit at gcc dot gnu.org
2021-01-27 14:44 ` ktkachov 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-98766-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).