diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-04-20 08:22:44 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-06-02 08:42:37 -0700 |
commit | 23850a74afb641102325b4b7f74071d929fc4594 (patch) | |
tree | eb46a0b212d8b2b74220bf427a8af78feb884c60 /tcg/tcg.c | |
parent | 3d5bb2ea5cc9ed54f65a6929a6e6baa01cabd98b (diff) | |
download | qemu-23850a74afb641102325b4b7f74071d929fc4594.zip |
tcg: Implement gvec support for rotate by scalar
No host backend support yet, but the interfaces for rotls
are in place. Only implement left-rotate for now, as the
only known use of vector rotate by scalar is s390x, so any
right-rotate would be unused and untestable.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1663,6 +1663,8 @@ bool tcg_op_supported(TCGOpcode op) return have_vec && TCG_TARGET_HAS_shv_vec; case INDEX_op_rotli_vec: return have_vec && TCG_TARGET_HAS_roti_vec; + case INDEX_op_rotls_vec: + return have_vec && TCG_TARGET_HAS_rots_vec; case INDEX_op_rotlv_vec: case INDEX_op_rotrv_vec: return have_vec && TCG_TARGET_HAS_rotv_vec; |