Hi Everyone, We added some code generation tests to cryptest.sh for X86 and ARM. Its a quick sanity check to ensure expected code paths are activated.
The output of cryptest.sh now shows compilation of one source file, and then verifies the disassembly include expected instruction mnemonic, like aesenc and aesdec. Below is a sample. Also see the following commits: http://github.com/weidai11/cryptopp/commit/57a0059eb70d7b630d0a5c536e3e0d383467ca73, http://github.com/weidai11/cryptopp/commit/b1d7754ff7b73fb4e6e3cf6adc7a7da986e233cb and http://github.com/weidai11/cryptopp/commit/7c3967ad8f6a61f2dbf34e47184810f6f9c55cd5 . Jeff $ ./cryptest.sh IS_LINUX: 1 IS_X64: 1 HAVE_CXX03: 1 HAVE_GNU03: 1 HAVE_CXX11: 0 HAVE_GNU11: 0 HAVE_LDGOLD: 1 OPT_O3: -O3 OPT_O5: -O5 OPT_OS: -Os OPT_OFAST: -Ofast HAVE_OMP: 1 HAVE_ASAN: 1 HAVE_UBSAN: 0 HAVE_VALGRIND: 1 CPU: 8 logical FREQ: 2.76566 GHz MEM: 15954 MB Using make -j 8 Git branch: master (commit 57a0059eb70d7b63) Compiler: g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Pathname: /usr/bin/g++ (symlinked) DEBUG_CXXFLAGS: -DDEBUG -g3 -O0 RELEASE_CXXFLAGS: -DNDEBUG -g2 -O2 VALGRIND_CXXFLAGS: -DNDEBUG -g3 -O1 ************************************ Testing: X86 AES-NI code generation g++ -DNDEBUG -g2 -O2 -fPIC -march=native -pipe -c rijndael.cpp Verified aesenc, aesenclast, aesdec, aesdeclast, aesimc, aeskeygenassist machine instructions ************************************ Testing: X86 carryless multiply code generation g++ -DNDEBUG -g2 -O2 -fPIC -march=native -pipe -c gcm.cpp Verified pclmullqh and pclmullql machine instructions ************************************ Testing: X86 RDRAND and RDSEED code generation g++ -DNDEBUG -g2 -O2 -fPIC -march=native -pipe -c rdrand.cpp Verified rdrand and rdseed machine instructions ************************************ Testing: X86 CRC32 code generation g++ -DNDEBUG -g2 -O2 -fPIC -march=native -pipe -c crc.cpp Verified crc32l and crc32b machine instructions ... -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
