From 86a53a901aa434a139fc65a793e4d18c48d979c3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 13 Sep 2023 19:28:12 +0200 Subject: [PATCH] autoconf: proper check for ARM crypto extensions --- configure | 6 ++++-- configure.ac | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 6d0f176d..2259a3a3 100755 --- a/configure +++ b/configure @@ -18580,8 +18580,9 @@ int main (void) { + int64x2_t x = { 0, 0 }; vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); - vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x)); #ifdef __clang__ # pragma clang attribute pop @@ -18664,8 +18665,9 @@ int main (void) { + int64x2_t x = { 0, 0 }; vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); - vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x)); #ifdef __clang__ # pragma clang attribute pop diff --git a/configure.ac b/configure.ac index 7b6250b9..8e0288fc 100644 --- a/configure.ac +++ b/configure.ac @@ -412,8 +412,9 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ #include ]], [[ + int64x2_t x = { 0, 0 }; vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); - vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x)); #ifdef __clang__ # pragma clang attribute pop @@ -445,8 +446,9 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ #include ]], [[ + int64x2_t x = { 0, 0 }; vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); - vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x)); #ifdef __clang__ # pragma clang attribute pop