From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 704C0386F83C; Thu, 11 Mar 2021 07:43:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 704C0386F83C From: "asolokha at gmx dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 07:43:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99544 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:a18ebd6c439227b048a91fbfa66f5983f884c1= 57) 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 =3D a; d < b; d++) e =3D 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 =3D c + d * 5; | ~~^~~~~~~~~~~ 0x6cd56b expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool) =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-= 11-20210307/gcc/expr.c:10210 0xb3a735 expand_expr =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-= 11-20210307/gcc/expr.c:10210 0xb49214 expand_expr =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /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) =20=20=20=20=20=20=20 /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 =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-= 11-20210307/gcc/cfgexpand.c:3947 0xa12f85 expand_gimple_stmt =20=20=20=20=20=20=20 /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 =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-= 11-20210307/gcc/cfgexpand.c:6045 0xa1a79f execute =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-11.0.1_alpha20210307/work/gcc-= 11-20210307/gcc/cfgexpand.c:6729=