Increase ARM NEON testing using existing test cases

pull/200/head
Jeffrey Walton 2016-06-16 03:25:24 -04:00
parent 10bd31f1e5
commit 9521a49cbb
1 changed files with 14 additions and 6 deletions

View File

@ -133,11 +133,6 @@ fi
rm -f adhoc.cpp > /dev/null 2>&1
cp adhoc.cpp.proto adhoc.cpp
$CXX -DCRYPTOPP_ADHOC_MAIN -Wno-deprecated-declarations adhoc.cpp -o $TMP/adhoc.exe > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
RETAINED_CXXFLAGS+=("-Wno-deprecated-declarations")
fi
# Hit or miss, only latest compilers.
HAVE_CXX17=0
$CXX -DCRYPTOPP_ADHOC_MAIN -std=c++17 adhoc.cpp -o $TMP/adhoc.exe > /dev/null 2>&1
@ -211,7 +206,7 @@ fi
HAVE_ARM_NEON=0
if [ "$IS_ARM32" -ne "0" ] || [ "$IS_ARM64" -ne "0" ]; then
# $CXX -DCRYPTOPP_ADHOC_MAIN -march=armv7a -mfpu=neon adhoc.cpp -o $TMP/adhoc.exe > /dev/null 2>&1
if [ "$?" -eq "0" ] && [ $(cat /proc/cpuinfo 2>/dev/null | grep -i -c NEON) -ne "0" ]; then
if [ $(cat /proc/cpuinfo 2>/dev/null | grep -i -c NEON) -ne "0" ]; then
HAVE_ARM_NEON=1
fi
fi
@ -399,6 +394,19 @@ else
echo "Compiler:" $($CXX --version | head -1) | tee -a "$TEST_RESULTS"
fi
############################################
# Add to keep noise to a minimum
$CXX -DCRYPTOPP_ADHOC_MAIN -Wno-deprecated-declarations adhoc.cpp -o $TMP/adhoc.exe > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
RETAINED_CXXFLAGS+=("-Wno-deprecated-declarations")
fi
# Add to exercise NEON more thoroughly
if [ "$IS_ARM32" -ne "0" ] && [ "$HAVE_ARM_NEON" -ne "0" ]; then
RETAINED_CXXFLAGS+=("-fpu=neon")
fi
############################################
############################################