Skip to content

Commit

Permalink
[WIP] Fix clang-17 miscompilation of __riscv_vreinterpret_u8m8
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Oct 15, 2024
1 parent e4e871c commit 0b5ba50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/xsimd/types/xsimd_rvv_register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ namespace xsimd
} \
template <> \
XSIMD_INLINE type bitcast<type>(type x) noexcept { return x; } \
template <> \
XSIMD_INLINE type bitcast<byte_type>(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); \
Expand Down

0 comments on commit 0b5ba50

Please sign in to comment.