[patch2/2][arm]: remove builtin expand for sha1
authorSylvia Taylor <sylvia.taylor@arm.com>
Thu, 18 Jul 2019 16:02:05 +0000 (16:02 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 18 Jul 2019 16:02:05 +0000 (16:02 +0000)
commitb9a0100963b357e7e84084e45bbc51d6576410a4
tree806f623c6e01f54496eaf3c26999e573b7396818
parente38341a8e0c7f89eb2146feddea8c2f3bf25a331
[patch2/2][arm]: remove builtin expand for sha1

This patch removes the builtin expand handling for sha1h/c/m/p and
replaces it with expand patterns. This should make it more consistent
with how we handle intrinsic implementations and cleans up the custom
sha1 code in the arm_expand builtins for unop and ternop.

2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>

* config/arm/arm-builtins.c
(arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
(arm_expand_unop_builtin): Likewise.
* config/arm/crypto.md
(crypto_sha1h): Convert from define_insn to define_expand.
(crypto_<crypto_pattern>): Likewise.
(crypto_sha1h_lb): New define_insn.
(crypto_<crypto_pattern>_lb): Likewise.

From-SVN: r273575
gcc/ChangeLog
gcc/config/arm/arm-builtins.c
gcc/config/arm/crypto.md