Implementation notes: riscv64, hifiveunleashedriscv, crypto_aead/paeq128tnm

Computer: hifiveunleashedriscv
Architecture: riscv64
CPU ID: unknown CPU ID
SUPERCOP version: 20191221
Operation: crypto_aead
Primitive: paeq128tnm
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1614071614436 28 6553624559 756 66384refg++_-march=rv64gc_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
353938085032 28 6553613333 740 66384refg++_-march=rv64gc_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
357173885444 28 6553614064 748 66384refg++_-march=rv64gc_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
422597605564 28 6553614126 748 66384refg++_-march=rv64gc_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221

Compiler output

Implementation: aesni
Security model: unknown
Compiler: g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.cpp: encrypt.cpp:13:10: fatal error: wmmintrin.h: No such file or directory
encrypt.cpp: 13 | #include "wmmintrin.h"
encrypt.cpp: | ^~~~~~~~~~~~~
encrypt.cpp: compilation terminated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE aesni
g++ -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE aesni
g++ -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE aesni
g++ -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE aesni

Compiler output

Implementation: opt-win-aes
Security model: unknown
Compiler: g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.cpp: encrypt.cpp:12:10: fatal error: wmmintrin.h: No such file or directory
encrypt.cpp: 12 | #include "wmmintrin.h"
encrypt.cpp: | ^~~~~~~~~~~~~
encrypt.cpp: compilation terminated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE opt-win-aes
g++ -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE opt-win-aes
g++ -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE opt-win-aes
g++ -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE opt-win-aes

Compiler output

Implementation: ref
Security model: unknown
Compiler: g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_paeq128tnm_ref_encrypt(unsigned char*, long long unsigned int*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:355:27: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '256' to '0' [-Woverflow]
encrypt.cpp: 355 | D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_encrypt_no_nonce(unsigned char*, long long unsigned int*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:610:27: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '256' to '0' [-Woverflow]
encrypt.cpp: 610 | D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_paeq128tnm_ref_decrypt(unsigned char*, long long unsigned int*, unsigned char*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:864:27: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '256' to '0' [-Woverflow]
encrypt.cpp: 864 | D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
g++ -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
g++ -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
g++ -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref