aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/stringloops/Makefile
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2015-01-21 12:27:39 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-01-23 16:44:23 +1100
commit521adf5357105f6f750fbe7bca958fab3b19df2e (patch)
tree74f9dc6108221b20aa7ded50b1ed47528d1a9538 /tools/testing/selftests/powerpc/stringloops/Makefile
parentpowerpc: Add 64bit optimised memcmp (diff)
downloadlinux-dev-521adf5357105f6f750fbe7bca958fab3b19df2e.tar.xz
linux-dev-521adf5357105f6f750fbe7bca958fab3b19df2e.zip
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/Makefile20
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 @@
+# The loops are all 64-bit code
+CFLAGS += -m64
+CFLAGS += -I$(CURDIR)
+
+PROGS := memcmp
+EXTRA_SOURCES := memcmp_64.S ../harness.c
+
+all: $(PROGS)
+
+$(PROGS): $(EXTRA_SOURCES)
+
+run_tests: all
+ @-for PROG in $(PROGS); do \
+ ./$$PROG; \
+ done;
+
+clean:
+ rm -f $(PROGS) *.o
+
+.PHONY: all run_tests clean