Implementation notes: amd64, cubi10, crypto_aead/minalpherv11

Computer: cubi10
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: minalpherv11
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
3009247200 24 550664299 892 6552T:avx2clang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3033147176 24 550664163 892 6552T:avx2clang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3077838532 24 550652249 884 6520T:avx2clang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3479037286 24 550651481 884 6520T:avx2clang++_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
25964538681 0 025306 788 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
276483416088 0 032448 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
289431913964 0 031032 812 1048T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
290278812570 0 029552 812 1048T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
34498966801 0 021458 788 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
36529825066 0 018117 764 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
38497374726 0 018326 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
39430065597 0 019526 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
48318165984 0 020111 772 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


MinalpherCore.cpp: MinalpherCore.cpp:1057:55: warning: variable 'DATA4' is uninitialized when passed as a const reference argument here [-Wuninitialized-const-reference]
MinalpherCore.cpp:   minalpher_core_quadruple_block(DATA1, DATA2, DATA3, DATA4, ymmA, ymmB);
MinalpherCore.cpp:                                                       ^~~~~
MinalpherCore.cpp: MinalpherCore.cpp:1067:63: warning: variable 'DATA4' is uninitialized when passed as a const reference argument here [-Wuninitialized-const-reference]
MinalpherCore.cpp:   minalpher_core_quadruple_block_inverse(DATA1, DATA2, DATA3, DATA4, ymmA, ymmB);
MinalpherCore.cpp:                                                               ^~~~~
MinalpherCore.cpp: 2 warnings generated.
MinalpherMode.cpp: MinalpherMode.cpp:43:13: warning: unused function 'disp' [-Wunused-function]
MinalpherMode.cpp: static void disp(__m128i HI, __m128i LO){
MinalpherMode.cpp:             ^
MinalpherMode.cpp: MinalpherMode.cpp:58:13: warning: unused function 'disp' [-Wunused-function]
MinalpherMode.cpp: static void disp(__m256i DATA){
MinalpherMode.cpp:             ^
MinalpherMode.cpp: MinalpherMode.cpp:99:20: warning: unused function 'tweak_update' [-Wunused-function]
MinalpherMode.cpp: static inline void tweak_update( __m128i& LO, __m128i& HI, __m128i& xHI, int& cnt )
MinalpherMode.cpp:                    ^
MinalpherMode.cpp: 3 warnings generated.

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:avx2clang++ -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang++ -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang++ -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall
T:avx2clang++ -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


MinalpherMode.cpp: MinalpherMode.cpp: In function 'void minalpher_mode_encrypt(const unsigned char*, const unsigned char*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, unsigned char*, long long unsigned int*)':
MinalpherMode.cpp: MinalpherMode.cpp:244:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   244 |     if ((p + 96) < _alen){
MinalpherMode.cpp:       |         ~~~~~~~~~^~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:269:24: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   269 |     }else if ((p + 64) < _alen){
MinalpherMode.cpp:       |               ~~~~~~~~~^~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:288:24: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   288 |     }else if ((p + 32) < _alen){
MinalpherMode.cpp:       |               ~~~~~~~~~^~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:315:20: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   315 |       for (q = 0; q<(_alen - p); q++){
MinalpherMode.cpp:       |                   ~^~~~~~~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:416:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   416 |     for (q = 0; q<(_mlen - 96 - p); q++){
MinalpherMode.cpp:       |                 ~^~~~~~~~~~~~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:506:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   506 |     for (q = 0; q<(_mlen - 64 - p); q++){
MinalpherMode.cpp:       |                 ~^~~~~~~~~~~~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:582:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   582 |     for (q = 0; q<(_mlen - 32 - p); q++){
MinalpherMode.cpp:       |                 ~^~~~~~~~~~~~~~~~~
MinalpherMode.cpp: MinalpherMode.cpp:643:18: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
MinalpherMode.cpp:   643 |     for (q = 0; q<(_mlen - p); q++){
MinalpherMode.cpp:       |                 ~^~~~~~~~~~~~
MinalpherMode.cpp: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:avx2g++ -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2g++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2g++ -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2g++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


encrypt.c: encrypt.c: In function 'crypto_mac_gen':
encrypt.c: encrypt.c:116:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
encrypt.c:   116 |   int ret;
encrypt.c:       |       ^~~
minalpher.c: minalpher.c: In function 'AEAD_TGEN':
minalpher.c: minalpher.c:473:25: warning: variable 'j' set but not used [-Wunused-but-set-variable]
minalpher.c:   473 |   unsigned long long i, j, blocknum;
minalpher.c:       |                         ^
minalpher.c: minalpher.c: In function 'AEAD_MGEN':
minalpher.c: minalpher.c:560:15: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
minalpher.c:   560 |   int d, pad, cnt;
minalpher.c:       |               ^~~
minalpher.c: minalpher.c:560:10: warning: variable 'pad' set but not used [-Wunused-but-set-variable]
minalpher.c:   560 |   int d, pad, cnt;
minalpher.c:       |          ^~~

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)