]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: gimple fold aes[ed] [PR114522]
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 11 Feb 2025 20:51:23 +0000 (20:51 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 13 Feb 2025 12:23:34 +0000 (12:23 +0000)
commit926c989131e914e69cd73529d183ebd9d637798a
tree03ac8a32051c6878d19199d7038cb528f686f27f
parent0e485b8c85c31856b9f7c91015ac94874b100bd4
arm: gimple fold aes[ed] [PR114522]

Almost a copy/paste from the recent aarch64 version of this patch,
this one is a bit more intrusive because it also introduces
arm_general_gimple_fold_builtin.

With this patch,
gcc.target/arm/aes_xor_combine.c scan-assembler-not veor
passes again.

gcc/ChangeLog:

PR target/114522
* config/arm/arm-builtins.cc (arm_fold_aes_op): New function.
(arm_general_gimple_fold_builtin): New function.
* config/arm/arm-builtins.h (arm_general_gimple_fold_builtin): New
prototype.
* config/arm/arm.cc (arm_gimple_fold_builtin): Call
arm_general_gimple_fold_builtin as needed.
gcc/config/arm/arm-builtins.cc
gcc/config/arm/arm-builtins.h
gcc/config/arm/arm.cc