From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4A4E3857C71; Mon, 15 Nov 2021 17:05:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4A4E3857C71 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103253] New: [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma) Date: Mon, 15 Nov 2021 17:05:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code 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: Mon, 15 Nov 2021 17:05:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103253 Bug ID: 103253 Summary: [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma) Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-unknown-linux-gnu gcc-12.0.0-alpha20111114 snapshot (g:3057f1ab737582a9fb37a3fb967ed8bf3659f2= f4) ICEs when compiling the following testcase, reduced from libgomp/testsuite/libgomp.c/examples-4/simd-8.c, w/ -march=3Dknl -O2 -fexce= ptions -fopenmp -fno-delete-dead-exceptions -fno-trapping-math: double do_work (double do_work_pri) { int i; #pragma omp simd for (i =3D 0; i < 17; ++i) do_work_pri =3D (!i ? 0.5 : i) * 2.0; return do_work_pri; } % x86_64-unknown-linux-gnu-gcc-12.0.0 -march=3Dknl -O2 -fexceptions -fopenmp -fno-delete-dead-exceptions -fno-trapping-math -c gdl8z9xi.c during GIMPLE pass: widening_mul gdl8z9xi.c: In function 'do_work': gdl8z9xi.c:2:1: internal compiler error: Segmentation fault 2 | do_work (double do_work_pri) | ^~~~~~~ 0xeac96f crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/toplev.c:322 0x104eecf contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/tree.h:3554 0x104eecf convert_mult_to_fma =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/tree-ssa-math-opts.c:3227 0x105056c after_dom_children =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/tree-ssa-math-opts.c:4673 0x1b9ed62 dom_walker::walk(basic_block_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/domwalk.c:352 0x10436e2 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gc= c/tree-ssa-math-opts.c:4718=