From ad692b07c3014957184a9ade04044310760b74d5 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 30 Jun 2020 20:51:14 -0700 Subject: [PATCH] Add CPUID output to self-test. --- core/Tests.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/Tests.cpp b/core/Tests.cpp index 265fbda5a..c59ad8bce 100644 --- a/core/Tests.cpp +++ b/core/Tests.cpp @@ -379,6 +379,19 @@ extern "C" const char *ZTT_general() ZT_T_PRINTF("OK" ZT_EOL_S); } +#ifdef ZT_ARCH_X64 + ZT_T_PRINTF("[general] X64 CPUID: aes=%d avx=%d avx2=%d avx512f=%d fsrm=%d rdrand=%d sha=%d vaes=%d vpclmulqdq=%d" ZT_EOL_S, + Utils::CPUID.aes, + Utils::CPUID.avx, + Utils::CPUID.avx2, + Utils::CPUID.avx512f, + Utils::CPUID.fsrm, + Utils::CPUID.rdrand, + Utils::CPUID.sha, + Utils::CPUID.vaes, + Utils::CPUID.vpclmulqdq); +#endif + { ZT_T_PRINTF("[general] Testing Utils::countBits() functions... "); uint32_t i32 = 0;