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 target/99544] New: [11 Regression] ICE in expand_mult, at expmed.c:3582
Date: Thu, 11 Mar 2021 07:43:03 +0000	[thread overview]
Message-ID: <bug-99544-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99544
           Summary: [11 Regression] ICE in expand_mult, at expmed.c:3582
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: aarch64-linux-gnu

gcc-11.0.1-alpha20210307 snapshot (g:a18ebd6c439227b048a91fbfa66f5983f884c157)
ICEs when compiling the following testcase, extracted from
libgomp/testsuite/libgomp.c-c++-common/pr66199-2.c, w/ -Os -fopenmp:

void
f2 (long a, long b, long c)
{
  long d, e;
  #pragma omp teams distribute parallel for simd firstprivate (a, b, c)
lastprivate(e)
  for (d = a; d < b; d++)
    e = c + d * 5;
}

% aarch64-linux-gnu-gcc-11.0.1 -Os -fopenmp -c drqo2auz.c
during RTL pass: expand
drqo2auz.c: In function 'f2._omp_fn.1':
drqo2auz.c:7:7: internal compiler error: in expand_mult, at expmed.c:3582
    7 |     e = c + d * 5;
      |     ~~^~~~~~~~~~~
0x6cd56b expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expmed.c:3582
0xb39874 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:9211
0xb3f39a expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:10210
0xb3a735 expand_expr
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.h:282
0xb3a735 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:8789
0xb3f39a expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:10210
0xb49214 expand_expr
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.h:282
0xb49214 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:8110
0xb37be8 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/expr.c:9013
0xa12f85 expand_gimple_stmt_1
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/cfgexpand.c:3947
0xa12f85 expand_gimple_stmt
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/cfgexpand.c:4008
0xa18bfa expand_gimple_basic_block
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/cfgexpand.c:6045
0xa1a79f execute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-11-20210307/gcc/cfgexpand.c:6729

             reply	other threads:[~2021-03-11  7:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11  7:43 asolokha at gmx dot com [this message]
2021-03-11  8:45 ` [Bug target/99544] " rguenth at gcc dot gnu.org
2021-03-11 12:24 ` eochoa at gcc dot gnu.org
2021-03-12 10:34 ` jakub at gcc dot gnu.org
2021-03-12 10:48 ` [Bug tree-optimization/99544] " jakub at gcc dot gnu.org
2021-03-12 11:00 ` rguenth at gcc dot gnu.org
2021-03-12 11:00 ` jakub at gcc dot gnu.org
2021-03-12 11:38 ` rguenther at suse dot de
2021-03-13  8:00 ` cvs-commit at gcc dot gnu.org
2021-03-13  8:55 ` jakub 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-99544-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).