X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=lib%2Fraid6%2Ftest%2FMakefile;h=3ab8720aa2f843cad399f30300b0bbfa60f314e6;hb=526d02dd37b9875ed7fc43ee741cdb2e19544c5d;hp=79777645cac9c1243518f4f4bf403cdc567aa9ea;hpb=4d6ad6fba6b7af06143c67964f4095c74c9ce87c;p=linux diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index 79777645cac9..3ab8720aa2f8 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile @@ -34,6 +34,9 @@ endif ifeq ($(IS_X86),yes) OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o + CFLAGS += $(shell echo "pshufb %xmm0, %xmm0" | \ + gcc -c -x assembler - >&/dev/null && \ + rm ./-.o && echo -DCONFIG_AS_SSSE3=1) CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \ gcc -c -x assembler - >&/dev/null && \ rm ./-.o && echo -DCONFIG_AS_AVX2=1)