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/97141] New: [10/11 Regression] aarch64, SVE: ICE in decompose, at rtl.h (during expand) since r10-4676-g9c437a108a
Date: Mon, 21 Sep 2020 10:48:07 +0000	[thread overview]
Message-ID: <bug-97141-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 97141
           Summary: [10/11 Regression] aarch64, SVE: ICE in decompose, at
                    rtl.h (during expand) since r10-4676-g9c437a108a
           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:

int a;
short b, c;
short d(short e, short f) { return e + f; }
void g(void) {
  a = -9;
  for (; a != 51; a = d(a, 5))
    b |= c;
}

AArch64 GCC ICEs at -O3 -march=armv8.2-a+sve since
r10-4676-g9c437a108a14b9bdc44659c131b0da944e5ffeab:

commit 9c437a108a14b9bdc44659c131b0da944e5ffeab
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Thu Nov 14 15:31:25 2019

    Vectorise conversions between differently-sized integer vectors

To reproduce:

$ aarch64-none-elf-gcc -c -S -O3 -march=armv8.2-a+sve test.c
during RTL pass: expand
test.c: In function 'g':
test.c:4:6: internal compiler error: in decompose, at rtl.h:2296
    4 | void g(void) {
      |      ^
0xd05b28 wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*,
unsigned int, std::pair<rtx_def*, machine_mode> const&)
        /home/alecop01/toolchain/src/gcc/gcc/rtl.h:2296
0xd05b28 wide_int_ref_storage<false,
false>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&, unsigned int)
        /home/alecop01/toolchain/src/gcc/gcc/wide-int.h:1034
0xd05b28 generic_wide_int<wide_int_ref_storage<false, false>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, unsigned int)
        /home/alecop01/toolchain/src/gcc/gcc/wide-int.h:790
0xd05b28 wi::binary_traits<std::pair<rtx_def*, machine_mode>,
std::pair<rtx_def*, machine_mode>, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type>::result_type wi::sub<std::pair<rtx_def*,
machine_mode>, std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, std::pair<rtx_def*, machine_mode> const&)
        /home/alecop01/toolchain/src/gcc/gcc/wide-int.h:2510
0xd05b28 rtx_vector_builder::step(rtx_def*, rtx_def*) const
        /home/alecop01/toolchain/src/gcc/gcc/rtx-vector-builder.h:122
0xd05d38 vector_builder<rtx_def*, machine_mode,
rtx_vector_builder>::elt(unsigned int) const
        /home/alecop01/toolchain/src/gcc/gcc/vector-builder.h:254
0xd059a8 rtx_vector_builder::build()
        /home/alecop01/toolchain/src/gcc/gcc/rtx-vector-builder.c:73
0x9932f8 const_vector_from_tree
        /home/alecop01/toolchain/src/gcc/gcc/expr.c:12790
0x9932f8 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /home/alecop01/toolchain/src/gcc/gcc/expr.c:10349
0x998cfb expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /home/alecop01/toolchain/src/gcc/gcc/expr.c:8480
0xe5d7a4 expand_expr
        /home/alecop01/toolchain/src/gcc/gcc/expr.h:282
0xe5d7a4 insert_value_copy_on_edge
        /home/alecop01/toolchain/src/gcc/gcc/tree-outof-ssa.c:349
0xe5d7a4 eliminate_phi
        /home/alecop01/toolchain/src/gcc/gcc/tree-outof-ssa.c:785
0xe5d7a4 expand_phi_nodes(ssaexpand*)
        /home/alecop01/toolchain/src/gcc/gcc/tree-outof-ssa.c:1024
0x85aa3c execute
        /home/alecop01/toolchain/src/gcc/gcc/cfgexpand.c:6553
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-09-21 10:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21 10:48 acoplan at gcc dot gnu.org [this message]
2020-09-21 11:29 ` [Bug target/97141] " rguenth at gcc dot gnu.org
2020-12-08 14:39 ` akrl at gcc dot gnu.org
2020-12-16 14:10 ` acoplan at gcc dot gnu.org
2021-01-14  9:21 ` rguenth at gcc dot gnu.org
2021-01-14  9:21 ` rguenth at gcc dot gnu.org
2021-03-30 11:05 ` rsandifo at gcc dot gnu.org
2021-03-31 18:34 ` cvs-commit at gcc dot gnu.org
2021-03-31 20:37 ` [Bug target/97141] [10 " rsandifo at gcc dot gnu.org
2021-03-31 20:38 ` rsandifo at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-04-23  9:10 ` cvs-commit at gcc dot gnu.org
2021-04-23  9:14 ` rsandifo at gcc dot gnu.org
2021-12-12 13:18 ` pinskia 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-97141-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).