summaryrefslogtreecommitdiffstats
path: root/lib/raid6
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2018-11-12 15:22:18 -0800
committerShaohua Li <shli@fb.com>2018-12-20 08:53:23 -0800
commit86919f9dd2dbb88bbbe4e381dc8e6b9e9a1b9eb5 (patch)
tree2a1133d6ab3805ca2b99d846dde7bbb690b65f3c /lib/raid6
parent58af3110a7c5d161f72f94a98c6f2b9b75bf5cf9 (diff)
downloadlinux-86919f9dd2dbb88bbbe4e381dc8e6b9e9a1b9eb5.tar.bz2
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>
Diffstat (limited to 'lib/raid6')
-rw-r--r--lib/raid6/test/Makefile3
1 files changed, 3 insertions, 0 deletions
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)