From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBD38385701C; Sat, 7 Oct 2023 07:57:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBD38385701C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696665467; bh=H9uAYZxA179We5HLeNudcSJwAZL2/a6kt4BP1L3C+Ac=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XhqBWN96XL4nNrtDtE4ueTx8kfcuBJuhOlec9WGXP5UE2wGE0KMXpCcV81gLe6PL0 yOwHG0+P1RUF/trxH5ctBnBl4OIgETOSqTsBqJ47D1T7pAzlgb96T3zvGfeg4A5R1h uPE0AemKJsWzfwcIWmucWdnWw0UAs6GSnT3DgMTc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108338] use mtvsrws for lowpart DI->SF conversion on P9 Date: Sat, 07 Oct 2023 07:57:47 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108338 --- Comment #1 from CVS Commits --- The master branch has been updated by Jiu Fu Guo : https://gcc.gnu.org/g:5f56b76ff1c15118200204569389f85cca4e32d3 commit r14-4444-g5f56b76ff1c15118200204569389f85cca4e32d3 Author: Jiufu Guo Date: Thu Sep 28 17:00:04 2023 +0800 rs6000: optimize moving to sf from highpart di Currently, we have the pattern "movsf_from_si2" which was trying to support moving high part DI to SF. But current pattern only accepts "ashiftrt": XX:SF=3Dbitcast:SF(subreg(YY:DI>>32),0), but actually "lshiftrt" should also be ok. And current pattern only supports BE. Here, updating the pattern to support BE and "lshiftrt". PR target/108338 gcc/ChangeLog: * config/rs6000/predicates.md (lowpart_subreg_operator): New define_predicate. * config/rs6000/rs6000.md (any_rshift): New code_iterator. (movsf_from_si2): Rename to ... (movsf_from_si2_): ... this. gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr108338.c: New test.=