diff options
| author | Anton Blanchard <anton@samba.org> | 2015-01-20 20:27:39 -0500 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-01-23 00:44:23 -0500 |
| commit | 521adf5357105f6f750fbe7bca958fab3b19df2e (patch) | |
| tree | 74f9dc6108221b20aa7ded50b1ed47528d1a9538 /tools/testing/selftests/powerpc/stringloops/Makefile | |
| parent | 15c2d45d17418cc4a712608c78ff3b5f0583d83b (diff) | |
selftests/powerpc: Add memcmp testcase
Add a testcase for the new ppc64 memcmp.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/stringloops/Makefile')
| -rw-r--r-- | tools/testing/selftests/powerpc/stringloops/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/stringloops/Makefile b/tools/testing/selftests/powerpc/stringloops/Makefile new file mode 100644 index 000000000000..506d77346477 --- /dev/null +++ b/tools/testing/selftests/powerpc/stringloops/Makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # The loops are all 64-bit code | ||
| 2 | CFLAGS += -m64 | ||
| 3 | CFLAGS += -I$(CURDIR) | ||
| 4 | |||
| 5 | PROGS := memcmp | ||
| 6 | EXTRA_SOURCES := memcmp_64.S ../harness.c | ||
| 7 | |||
| 8 | all: $(PROGS) | ||
| 9 | |||
| 10 | $(PROGS): $(EXTRA_SOURCES) | ||
| 11 | |||
| 12 | run_tests: all | ||
| 13 | @-for PROG in $(PROGS); do \ | ||
| 14 | ./$$PROG; \ | ||
| 15 | done; | ||
| 16 | |||
| 17 | clean: | ||
| 18 | rm -f $(PROGS) *.o | ||
| 19 | |||
| 20 | .PHONY: all run_tests clean | ||
