Skip to content

Commit f3ad5f1

Browse files
Fix portability issue with avx512f upper_half of batch of float
It was relying on an intrinsic only available with avx512dq
1 parent 0fd437f commit f3ad5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsimd/arch/xsimd_avx512f.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace xsimd
5555
}
5656
XSIMD_INLINE __m256 upper_half(__m512 self) noexcept
5757
{
58-
return _mm512_extractf32x8_ps(self, 1);
58+
return _mm256_castsi256_ps(_mm512_extracti64x4_epi64(_mm512_castps_si512(self), 1));
5959
}
6060
XSIMD_INLINE __m256d upper_half(__m512d self) noexcept
6161
{

0 commit comments

Comments
 (0)