]> git.ipfire.org Git - thirdparty/gcc.git/commit
[APX] Prohibit SHA/KEYLOCKER usage of EGPR when APX enabled
authorHongyu Wang <hongyu.wang@intel.com>
Tue, 9 Apr 2024 01:50:11 +0000 (09:50 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Wed, 10 Apr 2024 01:13:07 +0000 (09:13 +0800)
commitea665f90260acb3ffd2e39fcd2e200e702ee0ead
tree59fb8a61ebec2cf964a3467465f6f4a21ee32ee9
parent77c0b5b23f91404004a9bf710981f6d615b63f57
[APX] Prohibit SHA/KEYLOCKER usage of EGPR when APX enabled

The latest APX spec announced removal of SHA/KEYLOCKER evex promotion,
which means the SHA/KEYLOCKER insn does not support EGPR when APX
enabled. Update the corresponding constraints to their EGPR-disabled
counterparts.

gcc/ChangeLog:

* config/i386/sse.md (sha1msg1): Use "ja" instead of "Bm" for
memory constraint.
(sha1msg2): Likewise.
(sha1nexte): Likewise.
(sha1rnds4): Likewise.
(sha256msg1): Likewise.
(sha256msg2): Likewise.
(sha256rnds2): Likewise.
(aes<aesklvariant>u8): Use "jm" instead of "m" for memory
constraint.
(*aes<aeswideklvariant>u8): Likewise.
(*encodekey128u32): Use "jr" instead of "r" for register
constraints.
(*encodekey256u32): Likewise.
gcc/config/i386/sse.md