summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/stringloops/asm
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/asm
parent15c2d45d17418cc4a712608c78ff3b5f0583d83b (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/asm')
-rw-r--r--tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h b/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h
new file mode 100644
index 000000000000..11bece87e880
--- /dev/null
+++ b/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h
@@ -0,0 +1,7 @@
+#include <ppc-asm.h>
+
+#ifndef r1
+#define r1 sp
+#endif
+
+#define _GLOBAL(A) FUNC_START(test_ ## A)