From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 766883858403; Mon, 3 Jan 2022 19:59:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 766883858403 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103894] [12 Regression] ICE: in emit_move_multi_word, at expr.c:3870 with -mno-sse2 Date: Mon, 03 Jan 2022 19:59:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 03 Jan 2022 19:59:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103894 --- Comment #3 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:1096ab1775636f35de9c6661f8f71f03299af998 commit r12-6194-g1096ab1775636f35de9c6661f8f71f03299af998 Author: Uros Bizjak Date: Mon Jan 3 20:58:16 2022 +0100 i386: Always enable mov patterns [PR103894] Middle end tries to generate V4QImode moves to implement V2QImode inser= ts and calls emit_move_multi_word when V4QImode moves are unavailable, as = is the case with 32-bit vector moves, constrainted with TARGET_SSE2. However, this triggers gcc_assert (mode_size >=3D UNITS_PER_WORD); in emit_move_multi_word, since mode_size of V4QImode operand is less th= an UNITS_PER_WORD of 64-bit targets. The patch unconditionally enables 32-bit vector moves to match 16-bit vector moves. This also enables implementation of 32-bit vector logic operations with GPR in a follow-up patch. 2022-01-03 Uro=C3=85=C2=A1 Bizjak gcc/ChangeLog: PR target/103894 * config/i386/mmx.md (mov): Remove TARGET_SSE2 constraint. (mov_internal): Ditto. (*push_rex64): Ditto. (movmisalign): Ditto. (*push_rex64 splitter): Enable for TARGET_64BIT && TARGET_SSE. (*push2): Remove insn pattern. gcc/testsuite/ChangeLog: PR target/103894 * gcc.target/i386/pr103894.c: New test.=