From: Niels Möller Date: Wed, 2 Apr 2025 14:39:03 +0000 (+0200) Subject: ppc64: Use assembly files only if __VSX__ is defined. X-Git-Tag: nettle_3.10.2_release_20250626~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623fd6513f684c6cfd104e05ea4bbe141281aa7a;p=thirdparty%2Fnettle.git ppc64: Use assembly files only if __VSX__ is defined. --- diff --git a/ChangeLog b/ChangeLog index 462dcf72..b1ab73ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-04-02 Niels Möller + + * configure.ac: For ppc64, check if __VSX__ is defined, and + disable use of assembly if it isn't. + 2025-03-02 Niels Möller * powerpc64/p8/gcm-aes-decrypt.asm: Avoid using lxvb16x diff --git a/configure.ac b/configure.ac index 7c003bb7..0ad58fbd 100644 --- a/configure.ac +++ b/configure.ac @@ -367,6 +367,16 @@ case "$host_cpu" in ]], [[]])], [], [ ELFV2_ABI=yes ]) + if test "$enable_assembler" = yes ; then + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#if defined(__VSX__) +#error VSX available +#endif + ]], [[]])], [ + AC_MSG_WARN([VSX instructions (Power7 or later) not available, disabling use of assembly.]) + enable_assembler=no + ], []) + fi fi ;; aarch64*)