mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
build: Change configure nasm min test for AVX512
Due to bug in nasm on vinserti32x8 instruction, need nasm v2.13 or better to build new AVX512 igzip files. Changed the configure test and doc to reflect. Change-Id: Iceaf65187cbb2d63c29f9c0f19346f03bb484a94 Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
parent
249deb378d
commit
35dc4f0b0c
@ -28,7 +28,8 @@ Building ISA-L
|
||||
|
||||
### Prerequisites
|
||||
|
||||
* Assembler: nasm v2.11.01 or later or yasm version 1.2.0 or later.
|
||||
* Assembler: nasm v2.11.01 or later (nasm v2.13 or better suggested for building in AVX512 support)
|
||||
or yasm version 1.2.0 or later.
|
||||
* Compiler: gcc, clang, icc or VC compiler.
|
||||
* Make: GNU 'make' or 'nmake' (Windows).
|
||||
* Optional: Building with autotools requires autoconf/automake packages.
|
||||
|
@ -85,8 +85,8 @@ else
|
||||
with_modern_nasm=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_MSG_CHECKING([for optional nasm AVX512 support])
|
||||
AC_LANG_CONFTEST([AC_LANG_SOURCE([[vpshufb zmm0, zmm1, zmm2;]])])
|
||||
sed -i -e '/vpshufb/!d' conftest.c
|
||||
AC_LANG_CONFTEST([AC_LANG_SOURCE([[vinserti32x8 zmm0, ymm1, 1;]])])
|
||||
sed -i -e '/vinsert/!d' conftest.c
|
||||
if nasm -f elf64 conftest.c 2> /dev/null; then
|
||||
nasm_knows_avx512=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
@ -109,7 +109,7 @@ if test x"$AS" = x""; then
|
||||
elif test x"$with_modern_nasm" = x"yes"; then
|
||||
AS=nasm
|
||||
else
|
||||
AC_MSG_ERROR([No modern yasm or nasm found as required. Yasm should be 1.2.0 or later, and nasm should be v2.11.01 or later.])
|
||||
AC_MSG_ERROR([No modern yasm or nasm found as required. Yasm should be 1.2.0 or later, and nasm should be v2.11.01 or later (v2.13 for AVX512).])
|
||||
fi
|
||||
fi
|
||||
echo "Using assembler $AS"
|
||||
|
Loading…
Reference in New Issue
Block a user