From 58dae82843f508b0f1e7e8e593496ba6e2822979 Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Mon, 23 Feb 2015 16:14:44 +0100 Subject: 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 [mpe: Rework harness logic, rename to test-vphn, add -m64] Signed-off-by: Michael Ellerman Reviewed-by: Greg Kurz --- tools/testing/selftests/powerpc/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/testing/selftests/powerpc/utils.h') diff --git a/tools/testing/selftests/powerpc/utils.h b/tools/testing/selftests/powerpc/utils.h index a93777ae0684..2ec455e37792 100644 --- a/tools/testing/selftests/powerpc/utils.h +++ b/tools/testing/selftests/powerpc/utils.h @@ -15,6 +15,7 @@ typedef signed long long s64; /* Just for familiarity */ typedef uint32_t u32; +typedef uint16_t u16; typedef uint8_t u8; -- cgit v1.2.3-59-g8ed1b