]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Update memcmp_64 selftest for VMX implementation
authorSimon Guo <wei.guo.simon@gmail.com>
Thu, 7 Jun 2018 01:57:55 +0000 (09:57 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:03:22 +0000 (22:03 +1000)
commit87b97550d595581412f6ffa47dd67e24980f49b2
tree0ceed7ce3d93d212c35355fe746e2f01358c2ac6
parent81eddd04f7baa134ef693df409e06e7d046c4253
selftests/powerpc: Update memcmp_64 selftest for VMX implementation

This patch reworked selftest memcmp_64 so that memcmp selftest can
cover more test cases.

It adds testcases for:
- memcmp over 4K bytes size.
- s1/s2 with different/random offset on 16 bytes boundary.
- enter/exit_vmx_ops pairness.

Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
[mpe: Add -maltivec to fix build on some toolchains]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h
tools/testing/selftests/powerpc/stringloops/Makefile
tools/testing/selftests/powerpc/stringloops/asm/ppc-opcode.h [new file with mode: 0644]
tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h
tools/testing/selftests/powerpc/stringloops/memcmp.c