]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: [MVE intrinsics] use long_type_suffix / half_type_suffix helpers
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 30 Aug 2024 13:52:23 +0000 (13:52 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 18 Oct 2024 07:41:16 +0000 (07:41 +0000)
commit8e74cbc3a834ee009a5e60e76b20e8df7114da31
tree0fa3475e683c5cfae8cf4d0d20a75a374c24aea7
parenta5efcfcc93a911c7a04626e64ee65f02d5ecce6f
arm: [MVE intrinsics] use long_type_suffix / half_type_suffix helpers

In several places we are looking for a type twice or half as large as
the type suffix: this patch introduces helper functions to avoid code
duplication. long_type_suffix is similar to the SVE counterpart, but
adds an 'expected_tclass' parameter.  half_type_suffix is similar to
it, but does not exist in SVE.

2024-08-28  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/

* config/arm/arm-mve-builtins-shapes.cc (long_type_suffix): New.
(half_type_suffix): New.
(struct binary_move_narrow_def): Use new helper.
(struct binary_move_narrow_unsigned_def): Likewise.
(struct binary_rshift_narrow_def): Likewise.
(struct binary_rshift_narrow_unsigned_def): Likewise.
(struct binary_widen_def): Likewise.
(struct binary_widen_n_def): Likewise.
(struct binary_widen_opt_n_def): Likewise.
(struct unary_widen_def): Likewise.
gcc/config/arm/arm-mve-builtins-shapes.cc