Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Jan 15, 2025
1 parent 68cd020 commit 3015bbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/xsimd/types/xsimd_rvv_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,21 @@ namespace xsimd
rvv_type_info<int16_t, rvv_width_m1 * 1>::bitcast<__rvv_uint8m1_t>(
__rvv_uint8m1_t x) noexcept
{
return __riscv_vreinterpret_i16m1(x);
return __riscv_vreinterpret_i16m1(__riscv_vreinterpret_u16m1(x));
}
template <>
XSIMD_INLINE rvv_type_info<int32_t, rvv_width_m1 * 1>::type
rvv_type_info<int32_t, rvv_width_m1 * 1>::bitcast<__rvv_uint8m1_t>(
__rvv_uint8m1_t x) noexcept
{
return __riscv_vreinterpret_i32m1(x);
return __riscv_vreinterpret_i32m1(__riscv_vreinterpret_u32m1(x));
}
template <>
XSIMD_INLINE rvv_type_info<int64_t, rvv_width_m1 * 1>::type
rvv_type_info<int64_t, rvv_width_m1 * 1>::bitcast<__rvv_uint8m1_t>(
__rvv_uint8m1_t x) noexcept
{
return __riscv_vreinterpret_i64m1(x);
return __riscv_vreinterpret_i64m1(__riscv_vreinterpret_u64m1(x));
}
template <>
XSIMD_INLINE rvv_type_info<uint16_t, rvv_width_m1 * 1>::type
Expand Down Expand Up @@ -204,19 +204,19 @@ namespace xsimd
XSIMD_INLINE rvv_type_info<int16_t, rvv_width_m1 * 1>::byte_type
rvv_type_info<int16_t, rvv_width_m1 * 1>::as_bytes<__rvv_int16m1_t>(__rvv_int16m1_t x) noexcept
{
return __riscv_vreinterpret_u8m1(x);
return __riscv_vreinterpret_u8m1(__riscv_vreinterpret_u16m1(x));
}
template <>
XSIMD_INLINE rvv_type_info<int32_t, rvv_width_m1 * 1>::byte_type
rvv_type_info<int32_t, rvv_width_m1 * 1>::as_bytes<__rvv_int32m1_t>(__rvv_int32m1_t x) noexcept
{
return __riscv_vreinterpret_u8m1(x);
return __riscv_vreinterpret_u8m1(__riscv_vreinterpret_u32m1(x));
}
template <>
XSIMD_INLINE rvv_type_info<int64_t, rvv_width_m1 * 1>::byte_type
rvv_type_info<int64_t, rvv_width_m1 * 1>::as_bytes<__rvv_int64m1_t>(__rvv_int64m1_t x) noexcept
{
return __riscv_vreinterpret_u8m1(x);
return __riscv_vreinterpret_u8m1(__riscv_vreinterpret_u64m1(x));
}

template <>
Expand Down

0 comments on commit 3015bbd

Please sign in to comment.