Skip to content

Commit eac3479

Browse files
committed
fix-gcc-10
1 parent 6e9e932 commit eac3479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/xsimd/arch/xsimd_avx512f.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,15 +2737,15 @@ namespace xsimd
27372737
{
27382738
XSIMD_IF_CONSTEXPR(sizeof(T) == 1)
27392739
{
2740-
return static_cast<T>(_mm512_cvtsi512_si32(self) & 0xFF);
2740+
return static_cast<T>(_mm_cvtsi128_si32(_mm512_castsi512_si128(self)) & 0xFF);
27412741
}
27422742
else XSIMD_IF_CONSTEXPR(sizeof(T) == 2)
27432743
{
2744-
return static_cast<T>(_mm512_cvtsi512_si32(self) & 0xFFFF);
2744+
return static_cast<T>(_mm_cvtsi128_si32(_mm512_castsi512_si128(self)) & 0xFFFF);
27452745
}
27462746
else XSIMD_IF_CONSTEXPR(sizeof(T) == 4)
27472747
{
2748-
return static_cast<T>(_mm512_cvtsi512_si32(self));
2748+
return static_cast<T>(_mm_cvtsi128_si32(_mm512_castsi512_si128(self)));
27492749
}
27502750
else XSIMD_IF_CONSTEXPR(sizeof(T) == 8)
27512751
{

0 commit comments

Comments
 (0)