selftests/powerpc: Add test for VPHN
The goal is to verify vphn_unpack_associativity() parses VPHN numbers correctly. We feed it with a variety of input values and compare with expected results. PAPR+ does not say much about VPHN parsing: I came up with a list of tests that check many simple cases and some corner ones. I wouldn't dare to say the list is exhaustive though. Signed-off-by:Greg Kurz <gkurz@linux.vnet.ibm.com> [mpe: Rework harness logic, rename to test-vphn, add -m64] Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Reviewed-by:
Greg Kurz <gkurz@linux.vnet.ibm.com>
Showing
- tools/testing/selftests/powerpc/Makefile 1 addition, 1 deletiontools/testing/selftests/powerpc/Makefile
- tools/testing/selftests/powerpc/utils.h 1 addition, 0 deletionstools/testing/selftests/powerpc/utils.h
- tools/testing/selftests/powerpc/vphn/.gitignore 1 addition, 0 deletionstools/testing/selftests/powerpc/vphn/.gitignore
- tools/testing/selftests/powerpc/vphn/Makefile 15 additions, 0 deletionstools/testing/selftests/powerpc/vphn/Makefile
- tools/testing/selftests/powerpc/vphn/test-vphn.c 410 additions, 0 deletionstools/testing/selftests/powerpc/vphn/test-vphn.c
- tools/testing/selftests/powerpc/vphn/vphn.c 1 addition, 0 deletionstools/testing/selftests/powerpc/vphn/vphn.c
- tools/testing/selftests/powerpc/vphn/vphn.h 1 addition, 0 deletionstools/testing/selftests/powerpc/vphn/vphn.h
Loading
Please register or sign in to comment