From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0520D385C33A; Thu, 29 Sep 2022 18:58:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0520D385C33A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664477882; bh=db0vSR9h4cTwYinzkJwNKVFNjYM9p+fzd09dXD4hkls=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K3WKlZbLR4ad+dL5So0F/jPw/POevG5OCQQSBs2gIL0FFFCc68u5YBLs/fK7ZDNuL m6uMXFnjLLbMk+kZ8G3dIHh9QPaIQ6sqtkESPnHod3qwjU2VdzQKVjXCT5dylS2vsR Hr/o1Tp+zqrnlqVZ4f7QylZpUwrFw5tpNDioEoYg= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107061] ENCODEKEY128 clobbers xmm4-xmm6 Date: Thu, 29 Sep 2022 18:57:58 +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.2.1 X-Bugzilla-Keywords: wrong-code 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=3D107061 --- Comment #3 from CVS Commits --- The releases/gcc-11 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:f8204b10e6bae0721ab74ad77a80b3761ebaf501 commit r11-10279-gf8204b10e6bae0721ab74ad77a80b3761ebaf501 Author: H.J. Lu Date: Tue Sep 27 16:19:11 2022 -0700 i386: Mark XMM4-XMM6 as clobbered by encodekey128/encodekey256 encodekey128 and encodekey256 operations clear XMM4-XMM6. But it is documented that XMM4-XMM6 are reserved for future usages and software should not rely upon them being zeroed. Change encodekey128 and encodekey256 to clobber XMM4-XMM6. gcc/ PR target/107061 * config/i386/predicates.md (encodekey128_operation): Check XMM4-XMM6 as clobbered. (encodekey256_operation): Likewise. * config/i386/sse.md (encodekey128u32): Clobber XMM4-XMM6. (encodekey256u32): Likewise. gcc/testsuite/ PR target/107061 * gcc.target/i386/keylocker-encodekey128.c: Don't check XMM4-XMM6. * gcc.target/i386/keylocker-encodekey256.c: Likewise. (cherry picked from commit db288230db55dc1ff626f46c708b555847013a41)=