Skip to content

Commit 86919f9

Browse files
danielverkampshligit
authored andcommitted
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>
1 parent 58af311 commit 86919f9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/raid6/test/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ endif
3434

3535
ifeq ($(IS_X86),yes)
3636
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)
3740
CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \
3841
gcc -c -x assembler - >&/dev/null && \
3942
rm ./-.o && echo -DCONFIG_AS_AVX2=1)

0 commit comments

Comments
 (0)