]> Git Repo - linux.git/commitdiff
lib/raid6: check for assembler SSSE3 support
authorDaniel Verkamp <[email protected]>
Mon, 12 Nov 2018 23:22:18 +0000 (15:22 -0800)
committerShaohua Li <[email protected]>
Thu, 20 Dec 2018 16:53:23 +0000 (08:53 -0800)
Allow the x86 SSSE3 recovery function to be tested in raid6test.

Signed-off-by: Daniel Verkamp <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
lib/raid6/test/Makefile

index 79777645cac9c1243518f4f4bf403cdc567aa9ea..3ab8720aa2f843cad399f30300b0bbfa60f314e6 100644 (file)
@@ -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)
This page took 0.060922 seconds and 4 git commands to generate.