From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD21E3853D25; Fri, 30 Jun 2023 09:21:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD21E3853D25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688116886; bh=4RD4IR0oAU3aEGUdyCePVjrZKWDdtBd2fo/rnHhTVOE=; h=From:To:Subject:Date:From; b=MXlSZYvldWnO2Cm3NRAPWperJkQGvcaPXkIUg7BEnS91mdkcblHO577BJ+po8mh+5 euHOApNzX/bhH0djc468hLwVRNt00l8ziv8dux/JfzpQ4OJkwcmxmJsGaxH5kV/HrY uizGh+sBmA6wsxmAlGb9BhX4gTn2SmzCjgDiYAeA= From: "sirl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110496] New: ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654 Date: Fri, 30 Jun 2023 09:21:25 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sirl at gcc dot gnu.org 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 bug_severity priority component assigned_to reporter target_milestone 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=3D110496 Bug ID: 110496 Summary: ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- This testcase (reduced with cvise): long contents, f_num; int decide(); int f_MV0__x; void f() { unsigned char *rptr; unsigned char valbuf[6]; rptr =3D (unsigned char *)contents; if (decide()) do { __builtin_memcpy(valbuf, &f_MV0__x, sizeof(int)); (&valbuf[0])[4] =3D (&valbuf[0])[5] =3D 0; } while (0); else { int MV0__x =3D f_num; __builtin_memcpy(valbuf, &MV0__x, sizeof(int)); (&valbuf[0])[4] =3D (&valbuf[0])[5] =3D 0; } rptr[1] =3D valbuf[4]; rptr[2] =3D valbuf[5]; rptr[4] =3D valbuf[1]; rptr[5] =3D valbuf[2]; __builtin_memset(valbuf, 0, 8); } ICEs with gcc@r14-2190: during GIMPLE pass: store-merging testcase.c: In function 'f': testcase.c:4:6: internal compiler error: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654 4 | void f() { | ^ 0x921335 tree_not_check_failed(tree_node const*, char const*, int, char con= st*, ...) ../../gcc/tree.cc:8936 0x11175d8 tree_not_check(tree_node*, char const*, int, char const*, tree_co= de) ../../gcc/tree.h:3581 0x11175d8 find_bswap_or_nop_1 ../../gcc/gimple-ssa-store-merging.cc:654 0x17c6758 process_store ../../gcc/gimple-ssa-store-merging.cc:5269 0x17c6758 execute ../../gcc/gimple-ssa-store-merging.cc:5557=