Makefile (3eb66e91a25497065c5322b1268cbc3953642227) Makefile (6f62a8223e65c0571e48225d5d7e56de95225bae)
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
7CFLAGS += -mcpu=power4
8
9# Use our CFLAGS for the implicit .S rule & set the asm machine type
10ASFLAGS = $(CFLAGS) -Wa,-mpower4
11
12TEST_GEN_PROGS := copyuser_64_t0 copyuser_64_t1 copyuser_64_t2 \
13 copyuser_p7_t0 copyuser_p7_t1 \
14 memcpy_64_t0 memcpy_64_t1 memcpy_64_t2 \
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
7CFLAGS += -mcpu=power4
8
9# Use our CFLAGS for the implicit .S rule & set the asm machine type
10ASFLAGS = $(CFLAGS) -Wa,-mpower4
11
12TEST_GEN_PROGS := copyuser_64_t0 copyuser_64_t1 copyuser_64_t2 \
13 copyuser_p7_t0 copyuser_p7_t1 \
14 memcpy_64_t0 memcpy_64_t1 memcpy_64_t2 \
15 memcpy_p7_t0 memcpy_p7_t1 \
15 memcpy_p7_t0 memcpy_p7_t1 memcpy_mcsafe_64 \
16 copyuser_64_exc_t0 copyuser_64_exc_t1 copyuser_64_exc_t2
17
18EXTRA_SOURCES := validate.c ../harness.c stubs.S
19
20top_srcdir = ../../../../..
21include ../../lib.mk
22
23$(OUTPUT)/copyuser_64_t%: copyuser_64.S $(EXTRA_SOURCES)

--- 16 unchanged lines hidden (view full) ---

40 -o $@ $^
41
42$(OUTPUT)/memcpy_p7_t%: memcpy_power7.S $(EXTRA_SOURCES)
43 $(CC) $(CPPFLAGS) $(CFLAGS) \
44 -D COPY_LOOP=test_memcpy_power7 \
45 -D SELFTEST_CASE=$(subst memcpy_p7_t,,$(notdir $@)) \
46 -o $@ $^
47
16 copyuser_64_exc_t0 copyuser_64_exc_t1 copyuser_64_exc_t2
17
18EXTRA_SOURCES := validate.c ../harness.c stubs.S
19
20top_srcdir = ../../../../..
21include ../../lib.mk
22
23$(OUTPUT)/copyuser_64_t%: copyuser_64.S $(EXTRA_SOURCES)

--- 16 unchanged lines hidden (view full) ---

40 -o $@ $^
41
42$(OUTPUT)/memcpy_p7_t%: memcpy_power7.S $(EXTRA_SOURCES)
43 $(CC) $(CPPFLAGS) $(CFLAGS) \
44 -D COPY_LOOP=test_memcpy_power7 \
45 -D SELFTEST_CASE=$(subst memcpy_p7_t,,$(notdir $@)) \
46 -o $@ $^
47
48$(OUTPUT)/memcpy_mcsafe_64: memcpy_mcsafe_64.S $(EXTRA_SOURCES)
49 $(CC) $(CPPFLAGS) $(CFLAGS) \
50 -D COPY_LOOP=test_memcpy_mcsafe \
51 -o $@ $^
52
48$(OUTPUT)/copyuser_64_exc_t%: copyuser_64.S exc_validate.c ../harness.c \
49 copy_tofrom_user_reference.S stubs.S
50 $(CC) $(CPPFLAGS) $(CFLAGS) \
51 -D COPY_LOOP=test___copy_tofrom_user_base \
52 -D SELFTEST_CASE=$(subst copyuser_64_exc_t,,$(notdir $@)) \
53 -o $@ $^
53$(OUTPUT)/copyuser_64_exc_t%: copyuser_64.S exc_validate.c ../harness.c \
54 copy_tofrom_user_reference.S stubs.S
55 $(CC) $(CPPFLAGS) $(CFLAGS) \
56 -D COPY_LOOP=test___copy_tofrom_user_base \
57 -D SELFTEST_CASE=$(subst copyuser_64_exc_t,,$(notdir $@)) \
58 -o $@ $^