Bump minimum NASM version to 2.14.01

NASM version 2.14.01 supports all x86 ISA in this library.
Since this version has been out since 2018, it is safe to
only permit the library to be compiled with this minimum version,
as announced in issue #297.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara
2025-04-29 21:25:03 +00:00
committed by Tomasz Kantecki
parent d20335bba8
commit 8045bee170
63 changed files with 24 additions and 422 deletions

View File

@@ -179,26 +179,6 @@ $(all_llvm_fuzz_tests): % : %.o $(lib_name)
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) $(FUZZLINK) -o $@
# Check for modern as
test-as = $(shell hash printf && printf $(3) > $(2) && $(AS) $(ASFLAGS) ${tmpf} -o /dev/null 2> /dev/null && echo $(1) || echo $(4))
as_4 := "pblendvb xmm2, xmm1;"
as_6 := "vinserti32x8 zmm0, ymm1, 1;"
as_10 := "vpcompressb zmm0 {k1}, zmm1;"
tmpf := $(shell mktemp)
as_feature_level := $(call test-as, 4, $(tmpf), $(as_4), $(as_feature_level))
as_feature_level := $(call test-as, 6, $(tmpf), $(as_6), $(as_feature_level))
as_feature_level := $(call test-as, 10, $(tmpf), $(as_10), $(as_feature_level))
tmpf := $(shell rm ${tmpf})
ifneq ($(findstring $(as_feature_level),6 10),)
D_HAVE_AS_KNOWS_AVX512_y := -DHAVE_AS_KNOWS_AVX512
endif
CFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
ASFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
# Check for pthreads
ifeq ($(arch),mingw)
have_threads ?= y