2014-01-21 12:22:17 +08:00
|
|
|
# The loops are all 64-bit code
|
|
|
|
CFLAGS += -m64
|
|
|
|
CFLAGS += -I$(CURDIR)
|
|
|
|
CFLAGS += -D SELFTEST
|
2015-03-17 12:16:12 +08:00
|
|
|
CFLAGS += -maltivec
|
2014-01-21 12:22:17 +08:00
|
|
|
|
|
|
|
# Use our CFLAGS for the implicit .S rule
|
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7
|
2014-01-21 12:22:17 +08:00
|
|
|
EXTRA_SOURCES := validate.c ../harness.c
|
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
include ../../lib.mk
|
2014-01-21 12:22:17 +08:00
|
|
|
|
2016-11-29 19:55:52 +08:00
|
|
|
$(OUTPUT)/copyuser_64: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_base
|
|
|
|
$(OUTPUT)/copyuser_power7: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_power7
|
|
|
|
$(OUTPUT)/memcpy_64: CPPFLAGS += -D COPY_LOOP=test_memcpy
|
|
|
|
$(OUTPUT)/memcpy_power7: CPPFLAGS += -D COPY_LOOP=test_memcpy_power7
|
2014-01-21 12:22:17 +08:00
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
$(TEST_GEN_PROGS): $(EXTRA_SOURCES)
|