diff --git a/include/xsimd/types/xsimd_rvv_register.hpp b/include/xsimd/types/xsimd_rvv_register.hpp index 8887f8a0b..5fd76bcec 100644 --- a/include/xsimd/types/xsimd_rvv_register.hpp +++ b/include/xsimd/types/xsimd_rvv_register.hpp @@ -95,6 +95,10 @@ namespace xsimd } \ template <> \ XSIMD_INLINE type bitcast(type x) noexcept { return x; } \ + template <> \ + XSIMD_INLINE type bitcast(byte_type x) noexcept { \ + return XSIMD_RVV_JOINT5(__riscv_vreinterpret_, t, s, m, vmul)(words); \ + } \ static XSIMD_INLINE byte_type as_bytes(type x) noexcept \ { \ const auto words = XSIMD_RVV_JOINT5(__riscv_vreinterpret_, u, s, m, vmul)(x); \