diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/configure b/configure index 559f535f5cd..fac1e9a4e39 100755 --- a/configure +++ b/configure @@ -17334,16 +17334,17 @@ else /* end confdefs.h. */ #include <immintrin.h> #include <stdint.h> + char buf[sizeof(__m512i)]; + #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("avx512vpopcntdq,avx512bw"))) #endif static int popcount_test(void) { - const char buf[sizeof(__m512i)]; int64_t popcnt = 0; __m512i accum = _mm512_setzero_si512(); - const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf); - const __m512i cnt = _mm512_popcnt_epi64(val); + __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf); + __m512i cnt = _mm512_popcnt_epi64(val); accum = _mm512_add_epi64(accum, cnt); popcnt = _mm512_reduce_add_epi64(accum); return (int) popcnt; @@ -17387,12 +17388,12 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <nmmintrin.h> + unsigned int crc; #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("sse4.2"))) #endif static int crc32_sse42_test(void) { - unsigned int crc = 0; crc = _mm_crc32_u8(crc, 0); crc = _mm_crc32_u32(crc, 0); /* return computed value, to prevent the above being optimized away */ @@ -17459,11 +17460,11 @@ CFLAGS="$pgac_save_CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <arm_acle.h> +unsigned int crc; int main () { -unsigned int crc = 0; - crc = __crc32cb(crc, 0); +crc = __crc32cb(crc, 0); crc = __crc32ch(crc, 0); crc = __crc32cw(crc, 0); crc = __crc32cd(crc, 0); @@ -17500,11 +17501,11 @@ CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc+simd" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <arm_acle.h> +unsigned int crc; int main () { -unsigned int crc = 0; - crc = __crc32cb(crc, 0); +crc = __crc32cb(crc, 0); crc = __crc32ch(crc, 0); crc = __crc32cw(crc, 0); crc = __crc32cd(crc, 0); @@ -17541,11 +17542,11 @@ CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <arm_acle.h> +unsigned int crc; int main () { -unsigned int crc = 0; - crc = __crc32cb(crc, 0); +crc = __crc32cb(crc, 0); crc = __crc32ch(crc, 0); crc = __crc32cw(crc, 0); crc = __crc32cd(crc, 0); @@ -17585,12 +17586,11 @@ if ${pgac_cv_loongarch_crc32c_intrinsics+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +unsigned int crc; int main () { -unsigned int crc = 0; - crc = __builtin_loongarch_crcc_w_b_w(0, crc); +crc = __builtin_loongarch_crcc_w_b_w(0, crc); crc = __builtin_loongarch_crcc_w_h_w(0, crc); crc = __builtin_loongarch_crcc_w_w_w(0, crc); crc = __builtin_loongarch_crcc_w_d_w(0, crc); |