Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/raid6: check for assembler SSSE3 support

Allow the x86 SSSE3 recovery function to be tested in raid6test.

Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Signed-off-by: Shaohua Li <shli@fb.com>

authored by

Daniel Verkamp and committed by
Shaohua Li
86919f9d 58af3110

+3
+3
lib/raid6/test/Makefile
··· 34 34 35 35 ifeq ($(IS_X86),yes) 36 36 OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o 37 + CFLAGS += $(shell echo "pshufb %xmm0, %xmm0" | \ 38 + gcc -c -x assembler - >&/dev/null && \ 39 + rm ./-.o && echo -DCONFIG_AS_SSSE3=1) 37 40 CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \ 38 41 gcc -c -x assembler - >&/dev/null && \ 39 42 rm ./-.o && echo -DCONFIG_AS_AVX2=1)