Skip to content
Snippets Groups Projects
Commit c922a4f8 authored by Niels Möller's avatar Niels Möller
Browse files

ppc64: Use assembly files only if __VSX__ is defined.

parent f3bf1c86
No related branches found
No related tags found
No related merge requests found
2025-04-02 Niels Möller <nisse@lysator.liu.se> 2025-04-02 Niels Möller <nisse@lysator.liu.se>
   
Cherry-picked from branch nettle-3.10-fixes:
* configure.ac: For ppc64, check if __VSX__ is defined, and
disable use of assembly if it isn't.
* .gitlab-ci.yml: Fix native/fat to actually run make * .gitlab-ci.yml: Fix native/fat to actually run make
check-fat-override. Add an EXTRA_CHECK_TARGET variable also for check-fat-override. Add an EXTRA_CHECK_TARGET variable also for
the .cross-build template, use it for check-fat-override where the .cross-build template, use it for check-fat-override where
......
...@@ -367,6 +367,16 @@ case "$host_cpu" in ...@@ -367,6 +367,16 @@ case "$host_cpu" in
]], [[]])], [], [ ]], [[]])], [], [
ELFV2_ABI=yes 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 fi
;; ;;
aarch64*) aarch64*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment