]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: suppress aes erratum when forwarding from aes
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 1 Nov 2021 13:23:26 +0000 (13:23 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Thu, 20 Jan 2022 11:15:22 +0000 (11:15 +0000)
commit2078550a005f3fde4c331ad4b8452c963c4cdb9d
tree4bbfc900fbfb7bf93d3bc8584e9231618fcab054
parentbc13384e1956a9bc38b084f82e250743451aae61
arm: suppress aes erratum when forwarding from aes

AES operations are commonly chained and since the result of one AES
operation is never a 32-bit value, they do not need an additional
mitigation instruction for the forwarded result.  We handle this
common case by adding additional patterns that allow for this.

gcc/ChangeLog:

* config/arm/crypto.md (crypto_<CRYPTO_AESMC:crypto_pattern>_protected):
New pattern.
(aarch32_crypto_aese_fused_protected): Likewise.
(aarch32_crypto_aesd_fused_protected): Likewise.
gcc/config/arm/crypto.md