summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/utils.h
diff options
context:
space:
mode:
authorGreg Kurz <gkurz@linux.vnet.ibm.com>2015-02-23 16:14:44 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-18 10:49:00 +1100
commit58dae82843f508b0f1e7e8e593496ba6e2822979 (patch)
treed3dab258b9faa79ffb5330e0fb6f3b06488aef2f /tools/testing/selftests/powerpc/utils.h
parent3338a65badd5758c8723e2b1e5a0db88151f2774 (diff)
downloadop-kernel-dev-58dae82843f508b0f1e7e8e593496ba6e2822979.zip
op-kernel-dev-58dae82843f508b0f1e7e8e593496ba6e2822979.tar.gz
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>
Diffstat (limited to 'tools/testing/selftests/powerpc/utils.h')
-rw-r--r--tools/testing/selftests/powerpc/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/utils.h b/tools/testing/selftests/powerpc/utils.h
index a93777a..2ec455e 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;
OpenPOWER on IntegriCloud