aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/cpuid
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-01 06:27:48 -0400
committerJack Lloyd <[email protected]>2018-10-01 06:27:48 -0400
commit4e025ca2c44718971b544e4a72c2199878e193c1 (patch)
tree3af2c6a6dca37542b37df54a748045c4c908c512 /src/lib/utils/cpuid
parentda123fb7d7142126b194b8f27293d1b114a4baf5 (diff)
Handle PPC crypto bit in tests [ci skip]
Diffstat (limited to 'src/lib/utils/cpuid')
-rw-r--r--src/lib/utils/cpuid/cpuid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/cpuid/cpuid.cpp b/src/lib/utils/cpuid/cpuid.cpp
index c5d39b68e..2d1603408 100644
--- a/src/lib/utils/cpuid/cpuid.cpp
+++ b/src/lib/utils/cpuid/cpuid.cpp
@@ -162,6 +162,8 @@ CPUID::bit_from_string(const std::string& tok)
#elif defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY)
if(tok == "altivec" || tok == "simd")
return {Botan::CPUID::CPUID_ALTIVEC_BIT};
+ if(tok == "ppc_crypto")
+ return {Botan::CPUID::PPC_CRYPTO_BIT};
#elif defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY)
if(tok == "neon" || tok == "simd")