• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# The loops are all 64-bit code
2CFLAGS += -m64
3CFLAGS += -I$(CURDIR)
4CFLAGS += -D SELFTEST
5CFLAGS += -maltivec
6
7# Use our CFLAGS for the implicit .S rule
8ASFLAGS = $(CFLAGS)
9
10TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7
11EXTRA_SOURCES := validate.c ../harness.c
12
13include ../../lib.mk
14
15$(OUTPUT)/copyuser_64:     CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_base
16$(OUTPUT)/copyuser_power7: CPPFLAGS += -D COPY_LOOP=test___copy_tofrom_user_power7
17$(OUTPUT)/memcpy_64:       CPPFLAGS += -D COPY_LOOP=test_memcpy
18$(OUTPUT)/memcpy_power7:   CPPFLAGS += -D COPY_LOOP=test_memcpy_power7
19
20$(TEST_GEN_PROGS): $(EXTRA_SOURCES)
21