From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B65D63858288; Wed, 14 Sep 2022 15:20:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B65D63858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663168811; bh=pcidvXnjP5AyH9K8CPSrkj/DfLumTraekd5Fb19XbOs=; h=From:To:Subject:Date:From; b=q1mFXjwxcky2cC11tkcd2RldLrYpgGPX1uiU40sw4+W1N1SZF8ce+VTd6YQe3d14c ZEmEJN2rCdQ/LCuwz2CW0o6UniCTGi7o/f0lLuWpYVQ6fUv3E/BDB+FDwImoMxH9rQ HnK8XfVRodOxE0m4r2n2UoqVv6p9gEytFvMX+9cM= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106942] New: ICE in gen_lowpart_general, at rtlhooks.cc:57, or ICE in extract_insn, at recog.cc:2791 (error: unrecognizable insn) Date: Wed, 14 Sep 2022 15:20:11 +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: 13.0 X-Bugzilla-Keywords: ice-on-invalid-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 cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106942 Bug ID: 106942 Summary: ICE in gen_lowpart_general, at rtlhooks.cc:57, or ICE in extract_insn, at recog.cc:2791 (error: unrecognizable insn) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: crazylht at gmail dot com, dcb314 at hotmail dot com, lingling.kong7 at gmail dot com, marxin at gcc dot gnu.= org, unassigned at gcc dot gnu.org Target Milestone: --- Target: x86_64-unknown-linux-gnu +++ This bug was initially created as a clone of Bug #106742 +++ 1. gcc 13.0.0 20220911 snapshot (g:0ea5e3f4542832b8da016b152695e64a2a386309) ICEs when compiling the following testcase, reduced from gcc/testsuite/gcc.target/i386/vect-bfloat16-2a.c, w/ -mavx -O1: typedef __bf16 v16bf __attribute__ ((__vector_size__ (32))); v16bf vec_init_dup_v16bf (__bf16 a1) { return __extension__ (v16bf) { a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1, a1 }; } % x86_64-unknown-linux-gnu-gcc-13.0.0 -mavx -O1 -c ohm7ipdh.c during RTL pass: expand ohm7ipdh.c: In function 'vec_init_dup_v16bf': ohm7ipdh.c:6:10: internal compiler error: in gen_lowpart_general, at rtlhooks.cc:57 6 | return __extension__ (v16bf) { | ^~~~~~~~~~~~~ 0x73101e gen_lowpart_general(machine_mode, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/rt= lhooks.cc:57 0x137fbb3 ix86_expand_vector_init_duplicate(bool, machine_mode, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/co= nfig/i386/i386-expand.cc:15049 0x137f7ff ix86_expand_vector_init_duplicate(bool, machine_mode, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/co= nfig/i386/i386-expand.cc:15117 0x138377b ix86_expand_vector_init(bool, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/co= nfig/i386/i386-expand.cc:16095 0x1a4f36d ??? =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/co= nfig/i386/sse.md:26602 0xb30678 rtx_insn* insn_gen_fn::operator()(rtx_def*, rtx_def*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/re= cog.h:407 0xb30678 store_constructor(tree_node*, rtx_def*, int, poly_int<1u, long>, b= ool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/ex= pr.cc:7407 0xb334dd expand_constructor =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/ex= pr.cc:8745 0xb1fc7a 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/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/ex= pr.cc:10990 0xb20c36 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/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/ex= pr.cc:10629 0x9f598c expand_expr =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/ex= pr.h:310 0x9f598c expand_return =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/cf= gexpand.cc:3809 0x9f598c expand_gimple_stmt_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/cf= gexpand.cc:3918 0x9f598c expand_gimple_stmt =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/cf= gexpand.cc:4044 0x9fb597 expand_gimple_basic_block =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/cf= gexpand.cc:6096 0x9fd137 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/cf= gexpand.cc:6822 2. W/ -mavx -O0, it yields the following instead: % gcc-13.0.0 -mavx -O0 -c ohm7ipdh.c ohm7ipdh.c: In function 'vec_init_dup_v16bf': ohm7ipdh.c:10:1: error: unrecognizable insn: 10 | } | ^ (insn 12 11 13 2 (set (reg:V16BF 84) (vec_concat:V16BF (reg:V16QI 85) (reg:V16QI 85))) "ohm7ipdh.c":6:10 -1 (nil)) during RTL pass: vregs ohm7ipdh.c:10:1: internal compiler error: in extract_insn, at recog.cc:2791 0x730822 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/rt= l-error.cc:108 0x73083e _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/rt= l-error.cc:116 0x72edc3 extract_insn(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/re= cog.cc:2791 0xb83be3 instantiate_virtual_regs_in_insn =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/fu= nction.cc:1611 0xb83be3 instantiate_virtual_regs =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/fu= nction.cc:1985 0xb83be3 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220911/work/gcc-13-20220911/gcc/fu= nction.cc:2034 Note the command line lacks -mavx512fp16 in both cases.=