public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/99808] New: [8/9/10/11 Regression] ICE in as_a, at machmode.h:365
Date: Mon, 29 Mar 2021 06:58:05 +0000	[thread overview]
Message-ID: <bug-99808-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99808
           Summary: [8/9/10/11 Regression] ICE in as_a, at machmode.h:365
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: aarch64-linux-gnu

gcc-11.0.1-alpha20210328 snapshot (g:499fa254ae8c9752d8c2cf3130b13ffddfd83546)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcvt_high_1.c, w/ -Og -fweb
-fno-forward-propagate -g:

typedef __Float32x2_t float32x2_t;
typedef __Float32x4_t float32x4_t;
typedef __Float64x1_t float64x1_t;
typedef __Float64x2_t float64x2_t;

float32x4_t
foo (void)
{
  float64x2_t arg2 = __builtin_aarch64_combinedf (0, ((float64x1_t) 1UL) [0]);

  return __builtin_aarch64_float_truncate_hi_v4sf ((float32x2_t) 1UL, arg2);
}

% aarch64-linux-gnu-gcc-11.0.1 -Og -fweb -fno-forward-propagate -g -c
bhwx2dh3.c
during RTL pass: final
bhwx2dh3.c: In function 'foo':
bhwx2dh3.c:12:1: internal compiler error: in as_a, at machmode.h:365
   12 | }
      | ^
0x6c306f scalar_int_mode as_a<scalar_int_mode>(machine_mode)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/machmode.h:365
0x6c467f scalar_float_mode as_a<scalar_float_mode>(machine_mode)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/tree.h:3467
0x6c467f insert_float
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:19697
0xacb35e add_const_value_attribute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:19805
0xaef2e8 add_location_or_const_value_attribute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:20367
0xaf0b52 gen_variable_die
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:24104
0xad3272 gen_decl_die
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:26516
0xaf497f decls_for_scope
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:25991
0xacf194 gen_subprogram_die
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:23522
0xad3360 gen_decl_die
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:26428
0xad4a22 dwarf2out_decl
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:27006
0xad539e dwarf2out_function_decl
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/dwarf2out.c:27021
0xb5ce43 rest_of_handle_final
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/final.c:4712
0xb5ce43 execute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210328/work/gcc-11-20210328/gcc/final.c:4754

             reply	other threads:[~2021-03-29  6:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-29  6:58 asolokha at gmx dot com [this message]
2021-03-29  7:48 ` [Bug target/99808] " rguenth at gcc dot gnu.org
2021-03-29  9:02 ` jakub at gcc dot gnu.org
2021-03-29  9:03 ` jakub at gcc dot gnu.org
2021-03-29  9:14 ` jakub at gcc dot gnu.org
2021-03-29 10:16 ` jakub at gcc dot gnu.org
2021-03-29 10:21 ` ktkachov at gcc dot gnu.org
2021-03-29 10:55 ` cvs-commit at gcc dot gnu.org
2021-03-30 13:08 ` cvs-commit at gcc dot gnu.org
2021-03-31  9:39 ` cvs-commit at gcc dot gnu.org
2021-03-31  9:39 ` cvs-commit at gcc dot gnu.org
2021-05-07 10:36 ` cvs-commit at gcc dot gnu.org
2021-05-07 10:38 ` cvs-commit at gcc dot gnu.org
2021-05-07 14:14 ` cvs-commit at gcc dot gnu.org
2021-05-07 14:16 ` cvs-commit 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-99808-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).