diff options
author | Jack Lloyd <[email protected]> | 2017-01-27 20:44:25 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-01-29 17:32:47 -0500 |
commit | 2b848242fe4f6c7023e86d7e916c73af30fb9cf0 (patch) | |
tree | ab138d0a73230de92d123a0afce38c7e04453395 /src/tests/tests.cpp | |
parent | 3cf1917b4e0ab45f853f1fe7cb7faed342987dd9 (diff) |
Add support for NEON in SIMD_4x32
Tested on qemu-aarch64
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r-- | src/tests/tests.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp index 855e19f80..fa93397b2 100644 --- a/src/tests/tests.cpp +++ b/src/tests/tests.cpp @@ -799,6 +799,13 @@ std::vector<Botan::CPUID::CPUID_bits> map_cpuid_string(const std::string& tok) return {Botan::CPUID::CPUID_ALTIVEC_BIT}; #endif +#if defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY) + if(tok == "neon" || tok == "simd") + return {Botan::CPUID::CPUID_ARM_NEON_BIT}; +#endif + + BOTAN_UNUSED(tok); + return {}; } |