From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD7953857BA6; Thu, 16 Jun 2022 08:59:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD7953857BA6 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103316] PowerPC: Gimple folding of int128 comparisons produces suboptimal code Date: Thu, 16 Jun 2022 08:59:57 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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: Thu, 16 Jun 2022 08:59:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103316 --- Comment #17 from CVS Commits --- The master branch has been updated by HaoChen Gui : https://gcc.gnu.org/g:8d1c6e7038b0c281ac2678f2f615806a7aac9174 commit r13-1131-g8d1c6e7038b0c281ac2678f2f615806a7aac9174 Author: Haochen Gui Date: Mon May 30 09:12:34 2022 +0800 rs6000: add V1TI into vector comparison expand [PR103316] This patch adds V1TI mode into a new mode iterator used in vector comparison,shift and rotation expands. It also merges some vector comparis= on, shift and rotation expands for V1T1 and other vector integer modes as they = have the similar patterns. The expands for V1TI only are removed. gcc/ PR target/103316 * config/rs6000/rs6000-builtin.cc (rs6000_gimple_fold_builtin): Enable gimple folding for RS6000_BIF_VCMPEQUT, RS6000_BIF_VCMPNET, RS6000_BIF_CMPGE_1TI, RS6000_BIF_CMPGE_U1TI, RS6000_BIF_VCMPGTU= T, RS6000_BIF_VCMPGTST, RS6000_BIF_CMPLE_1TI, RS6000_BIF_CMPLE_U1T= I. * config/rs6000/vector.md (VEC_IC): New mode iterator. Add sup= port for new Power10 V1TI instructions. (vec_cmp): Set mode iterator to VEC_IC. (vec_cmpu): Likewise. (vector_nlt): Set mode iterator to VEC_IC. (vector_nltv1ti): Remove. (vector_gtu): Set mode iterator to VEC_IC. (vector_gtuv1ti): Remove. (vector_nltu): Set mode iterator to VEC_IC. (vector_nltuv1ti): Remove. (vector_geu): Set mode iterator to VEC_IC. (vector_ngt): Likewise. (vector_ngtv1ti): Remove. (vector_ngtu): Set mode iterator to VEC_IC. (vector_ngtuv1ti): Remove. (vector_gtu__p): Set mode iterator to VEC_IC. (vector_gtu_v1ti_p): Remove. (vrotl3): Set mode iterator to VEC_IC. Emit insns for V1= TI. (vrotlv1ti3): Remove. (vashr3): Set mode iterator to VEC_IC. Emit insns for V1= TI. (vashrv1ti3): Remove. gcc/testsuite/ PR target/103316 * gcc.target/powerpc/pr103316.c: New. * gcc.target/powerpc/fold-vec-cmp-int128.c: New.=