diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-11-08 08:37:26 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-11-08 08:37:26 +0000 |
commit | 69a5dd57325484add5531a8c72399786f14b2ccd (patch) | |
tree | 0ead71d403fd752136d57fbf8d2fd36eca1cf2c7 /gcc | |
parent | f486280c53be53136f0bb9b578f43dc6c9c5acea (diff) | |
download | gcc-69a5dd57325484add5531a8c72399786f14b2ccd.zip gcc-69a5dd57325484add5531a8c72399786f14b2ccd.tar.gz gcc-69a5dd57325484add5531a8c72399786f14b2ccd.tar.bz2 |
[AArch64] Don't handle bswap in aarch64_builtin_vectorized_function
aarch64_builtin_vectorized_function no longer needs to handle bswap*
since we have internal functions and optabs for all supported cases.
2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* config/aarch64/aarch64-builtins.c
(aarch64_builtin_vectorized_function): Remove bswap handling.
From-SVN: r277951
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64-builtins.c | 23 |
2 files changed, 5 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4829fd..c97322c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> + * config/aarch64/aarch64-builtins.c + (aarch64_builtin_vectorized_function): Remove bswap handling. + +2019-11-08 Richard Sandiford <richard.sandiford@arm.com> + * tree-core.h (tree_type_common::indivisible_p): New member variable. * tree.h (TYPE_INDIVISIBLE_P): New macro. * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c index 23a0db4..83d6f75 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -1918,29 +1918,6 @@ aarch64_builtin_vectorized_function (unsigned int fn, tree type_out, return aarch64_builtin_decls[builtin]; } - case CFN_BUILT_IN_BSWAP16: -#undef AARCH64_CHECK_BUILTIN_MODE -#define AARCH64_CHECK_BUILTIN_MODE(C, N) \ - (out_mode == N##Imode && out_n == C \ - && in_mode == N##Imode && in_n == C) - if (AARCH64_CHECK_BUILTIN_MODE (4, H)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOPU_bswapv4hi]; - else if (AARCH64_CHECK_BUILTIN_MODE (8, H)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOPU_bswapv8hi]; - else - return NULL_TREE; - case CFN_BUILT_IN_BSWAP32: - if (AARCH64_CHECK_BUILTIN_MODE (2, S)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOPU_bswapv2si]; - else if (AARCH64_CHECK_BUILTIN_MODE (4, S)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOPU_bswapv4si]; - else - return NULL_TREE; - case CFN_BUILT_IN_BSWAP64: - if (AARCH64_CHECK_BUILTIN_MODE (2, D)) - return aarch64_builtin_decls[AARCH64_SIMD_BUILTIN_UNOPU_bswapv2di]; - else - return NULL_TREE; default: return NULL_TREE; } |