From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8C5D3858D38; Thu, 11 Jan 2024 06:34:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8C5D3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704954857; bh=CYljVpx2LNOlA5mNgbsHnf7tEYsQtMF/Om8sGD3AxTY=; h=From:To:Subject:Date:From; b=CBEMIUgB2K+59yowd08A+dCCaG8N2Jd62Jj3zvSD4KpirObZFLy25/XP7kaPaJImj W45lBybl/DVmTeZ+1V34USh9wXcQeXraPrTItNlcAIrYS22l6QpakWMA6qF4nx5qhV naQAw2ixhTeA1TGNBz3+/culpaCfXd9r+q/dKxEM= From: "guihaoc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113325] New: unnecessary byte swap for memory clear Date: Thu, 11 Jan 2024 06:34:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guihaoc 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=3D113325 Bug ID: 113325 Summary: unnecessary byte swap for memory clear Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: guihaoc at gcc dot gnu.org Target Milestone: --- //test case void* foo (void* s1) { return __builtin_memset (s1, 0, 32); } //assembly vspltisw 0,0 li 10,16 xxpermdi 0,32,32,2 stxvd2x 0,0,3 stxvd2x 0,3,10 blr The xxpermdi is unnecessary. The problem occurs on P8 LE.=