RAID: add tilegx SIMD implementation of raid6
[firefly-linux-kernel-4.4.55.git] / lib / raid6 / test / Makefile
index 087332dbf8aa164630148626e33c523dfd52dbf7..78f89d807f4e77e5a19d0157df12a8ee17db6c40 100644 (file)
@@ -35,6 +35,9 @@ else
                 OBJS += altivec1.o altivec2.o altivec4.o altivec8.o
         endif
 endif
+ifeq ($(ARCH),tilegx)
+OBJS += tilegx8.o
+endif
 
 .c.o:
        $(CC) $(CFLAGS) -c -o $@ $<
@@ -85,11 +88,15 @@ int16.c: int.uc ../unroll.awk
 int32.c: int.uc ../unroll.awk
        $(AWK) ../unroll.awk -vN=32 < int.uc > $@
 
+tilegx8.c: tilegx.uc ../unroll.awk
+       $(AWK) ../unroll.awk -vN=8 < tilegx.uc > $@
+
 tables.c: mktables
        ./mktables > tables.c
 
 clean:
        rm -f *.o *.a mktables mktables.c *.uc int*.c altivec*.c tables.c raid6test
+       rm -f tilegx*.c
 
 spotless: clean
        rm -f *~