Update CMakeLists NEON flag to reflect only AArch64 NEON optimizations

This commit is contained in:
Danila Kutenin 2024-08-17 19:03:10 -07:00
parent fcf1982acc
commit 32ded457c0

View file

@ -206,10 +206,13 @@ int main() {
check_cxx_source_compiles(" check_cxx_source_compiles("
#include <arm_neon.h> #include <arm_neon.h>
#include <stdint.h>
int main() { int main() {
uint8_t val = 3, dup[8]; uint8_t val = 3, dup[8];
uint8x16_t v = vld1q_dup_u8(&val); uint8x16_t v1 = vld1q_dup_u8(&val);
vst1q_u8(dup, v); uint8x16_t v2 = vqtbl1q_u8(v1, v1);
vst1q_u8(dup, v1);
vst1q_u8(dup, v2);
return 0; return 0;
}" SNAPPY_HAVE_NEON) }" SNAPPY_HAVE_NEON)