From 97f7722f2c3570842709ffef5aab5e632ff4002c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 13 Sep 2023 18:56:14 +0200 Subject: [PATCH] autoconf: improve check for ARM crypto extensions And don't forget to include for the second attempt. --- configure | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure b/configure index b3210f72..6d0f176d 100755 --- a/configure +++ b/configure @@ -18581,6 +18581,7 @@ main (void) { vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); #ifdef __clang__ # pragma clang attribute pop @@ -18657,11 +18658,14 @@ printf %s "checking for ARM crypto instructions set with -march=armv8-a+crypto+a # define __ARM_FEATURE_AES 1 #endif + #include + int main (void) { vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); #ifdef __clang__ # pragma clang attribute pop diff --git a/configure.ac b/configure.ac index df83ef51..7b6250b9 100644 --- a/configure.ac +++ b/configure.ac @@ -413,6 +413,7 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ #include ]], [[ vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); #ifdef __clang__ # pragma clang attribute pop @@ -441,8 +442,11 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [ #ifndef __ARM_FEATURE_AES # define __ARM_FEATURE_AES 1 #endif + + #include ]], [[ vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0)); + vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0)); #ifdef __clang__ # pragma clang attribute pop