From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1D983858C52; Tue, 27 Sep 2022 19:29:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1D983858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664306956; bh=BfzYrjgSv+iu8iiFBSYXIqKYipMKtMeOFWslwsI3thA=; h=From:To:Subject:Date:From; b=on3VJrJ9ypM+Fv9NBL4xajGdm4R3wdNCDHgSj6yTYEyXy5tIG8ycgu9tUPAbuppgA I/Ouh1bexS5erN6Glik0D/jKgWJzrKAMMYA7sHrh5Unzn2wA0FvNMJ2Dth+S5s1RpS 5QiEeqhlf1iJMr7eUL1Q6Vh6lYOZTkzHG0zVfpJE= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107061] New: ENCODEKEY128 clobbers xmm4-xmm6 Date: Tue, 27 Sep 2022 19:29:16 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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 cc target_milestone cf_gcctarget 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=3D107061 Bug ID: 107061 Summary: ENCODEKEY128 clobbers xmm4-xmm6 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, wwwhhhyyy333 at gmail dot com Target Milestone: --- Target: i386 The current ENCODEKEY128 clears xmm4-xmm6. But Intel key lock spec has XMM4 through XMM6 are reserved for future usages and software should not rely upon them being zeroed. xmm4-xmm6 should be marked as clobbered, not zeroed for future compatibilit= y.=