You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently we added support of aarch64 to iresearch project and to ArangoDB.
And we found out some bugs while using combination of simdcomp and sse2neon.
In function __SIMD_fastunpack1_32 following instruction is used: _mm_srli_epi32
Everything works fine on x86 architecture but on aarch64 we got some strange bug with double increment of shift variable. After deep investigation we found that sse2neon implementation of this intrinsic use macros which substitute second parameter twice. And there are a lot of other places where such situation is possible.
The solution is quite simple: Move increment from function call to single line.
In function __SIMD_fastunpack1_32 following instruction is used: _mm_srli_epi32 Everything works fine on x86 architecture but on aarch64 we got some strange bug with double increment of shift variable. After deep investigation we found that sse2neon implementation of this intrinsic use macros which substitute second parameter twice. And there are a lot of other places where such situation is possible.
Recent SSE2NEON improves _mm_srai_epi32 to handle complex arguments.
Activity
lemire commentedon Jan 14, 2022
Pull request invited.
alexbakharew commentedon Mar 10, 2022
Hi
Recently we added support of aarch64 to iresearch project and to ArangoDB.
And we found out some bugs while using combination of simdcomp and sse2neon.
In function __SIMD_fastunpack1_32 following instruction is used: _mm_srli_epi32
Everything works fine on x86 architecture but on aarch64 we got some strange bug with double increment of shift variable. After deep investigation we found that sse2neon implementation of this intrinsic use macros which substitute second parameter twice. And there are a lot of other places where such situation is possible.
The solution is quite simple: Move increment from function call to single line.
Please be careful
jserv commentedon Oct 8, 2022
Recent SSE2NEON improves
_mm_srai_epi32to handle complex arguments.