Skip to content

Commit f8fa585

Browse files
WIP
1 parent c19b1cb commit f8fa585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ namespace xsimd
492492
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
493493
XSIMD_INLINE batch<T, A> load_unaligned(T const* mem, convert<T>, requires_arch<altivec>) noexcept
494494
{
495-
return batch<T, A>(*(typename batch<T, A>::register_type)mem);
495+
auto lo = vec_ld(0, mem);
496+
auto hi = vec_ld(16, mem);
497+
return vec_perm(lo, hi, vec_lvsl(0, mem));
496498
}
497499

498500
#if 0

0 commit comments

Comments
 (0)