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
1 changed files with 5 additions and 2 deletions

View File

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