Check if AVX2 is supported when running sb-simd.impure.lisp

This commit is contained in:
Sergio Durigan Junior 2023-03-15 19:48:24 -04:00 committed by Stas Boukarev
parent 7af84ff2c7
commit 7790dffb61

View file

@ -15,6 +15,10 @@
(t
(error "Unexpected error: ~A" c)))))
(when (zerop (sb-alien:extern-alien "avx2_supported" int))
(format t "~&Skipping test of sb-simd~%")
(invoke-restart 'run-tests::skip-file))
(with-compilation-unit ()
(dolist (file '("packages.lisp"
"numbers.lisp"