]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Define __ARM_FEATURE_AES and __ARM_FEATURE_SHA2 when march +crypto is selected
authorAndrea Corallo <andrea.corallo@arm.com>
Wed, 14 Sep 2022 15:38:30 +0000 (17:38 +0200)
committerAndrea Corallo <andrea.corallo@arm.com>
Wed, 28 Sep 2022 13:10:17 +0000 (15:10 +0200)
commit5e9c4ed903c39f82f28362d9411d4dbc491264ec
tree94837eae718ff631c6db58abbdff1d080e0646ba
parentb48d7ff3570fa0ebe7790275cf020d8885120338
arm: Define __ARM_FEATURE_AES and __ARM_FEATURE_SHA2 when march +crypto is selected

Hi all,

this patch fixes the missing definition of __ARM_FEATURE_AES and
__ARM_FEATURE_SHA2 when AES SHA1 & SHA2 crypto instructions are
available [1] (read when march +crypto is selected).

Okay for master?

Thanks

  Andrea

[1] <https://raw.githubusercontent.com/ARM-software/acle/main/main/acle.md>

gcc/ChangeLog

2022-09-14  Andrea Corallo  <andrea.corallo@arm.com>

* config/arm/arm-c.cc (arm_cpu_builtins): Define
__ARM_FEATURE_AES and __ARM_FEATURE_SHA2.

gcc/testsuite/ChangeLog

2022-09-14  Andrea Corallo  <andrea.corallo@arm.com>

* gcc.target/arm/attr-crypto.c: Update test.
gcc/config/arm/arm-c.cc
gcc/testsuite/gcc.target/arm/attr-crypto.c