Skip to content

Commit 161db5d

Browse files
gkammelashligit
authored andcommitted
lib/raid6/test/Makefile: Add avx512 gen_syndrome and recovery functions
Adding avx512 gen_syndrome and recovery functions so as to allow code to be compiled and tested successfully in userspace. This patch is tested in userspace and improvement in performace is observed. Cc: H. Peter Anvin <hpa@zytor.com> Cc: Jim Kukunas <james.t.kukunas@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Megha Dey <megha.dey@linux.intel.com> Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com> Reviewed-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
1 parent 13c520b commit 161db5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/raid6/test/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ ifeq ($(ARCH),arm64)
3232
endif
3333

3434
ifeq ($(IS_X86),yes)
35-
OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o
35+
OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o
3636
CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \
3737
gcc -c -x assembler - >&/dev/null && \
3838
rm ./-.o && echo -DCONFIG_AS_AVX2=1)
39+
CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \
40+
gcc -c -x assembler - >&/dev/null && \
41+
rm ./-.o && echo -DCONFIG_AS_AVX512=1)
3942
else ifeq ($(HAS_NEON),yes)
4043
OBJS += neon.o neon1.o neon2.o neon4.o neon8.o
4144
CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1

0 commit comments

Comments
 (0)