From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7ABB385842A; Mon, 20 Dec 2021 20:16:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7ABB385842A From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103772] [12 Regression] wrong code with -mavx512fp16 since r12-5700-g7eb961d83b0eda53 Date: Mon, 20 Dec 2021 20:16:49 +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: wrong-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: P3 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, 20 Dec 2021 20:16:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103772 --- Comment #3 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:72c68d7ad90221075102f08f22256d0b4a7631b3 commit r12-6081-g72c68d7ad90221075102f08f22256d0b4a7631b3 Author: Uros Bizjak Date: Mon Dec 20 21:15:50 2021 +0100 i386: Fix _pinsr and its splitters [PR103772] The clever trick to duplicate the value of the input operand into itself proved not so clever after all. The splitter should not clobber the in= put operand in any case, since the register can hold the value outside the HImode lowpart when accessed as subreg. Use the standard earlyclobber approach instead. The testcase fails with avx2 ISA, but I was not able to create the test= case that wouldn't require -mavx512fp16 compile flag. 2021-12-20 Uro=C3=85=C2=A1 Bizjak gcc/ChangeLog: PR target/103772 * config/i386/sse.md (_pinsr): Add earlyclobber to (x,x,x,i) alternative. (_pinsr peephole2): Remove. (_pinsr splitter): Use output operand as a temporary register. Split after reload_completed.=