1# SPDX-License-Identifier: GPL-2.0 2# The loops are all 64-bit code 3CFLAGS += -m64 4CFLAGS += -I$(CURDIR) 5CFLAGS += -D SELFTEST 6CFLAGS += -maltivec 7 8# Use our CFLAGS for the implicit .S rule & set the asm machine type 9ASFLAGS = $(CFLAGS) -Wa,-mpower4 10 11TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7 12EXTRA_SOURCES := validate.c ../harness.c 13 14include ../../lib.mk 15 16$(OUTPUT)/copyuser_64: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_base 17$(OUTPUT)/copyuser_power7: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_power7 18$(OUTPUT)/memcpy_64: CPPFLAGS += -D COPY_LOOP=test_memcpy 19$(OUTPUT)/memcpy_power7: CPPFLAGS += -D COPY_LOOP=test_memcpy_power7 20 21$(TEST_GEN_PROGS): $(EXTRA_SOURCES) 22