Implementation notes: amd64, jasper3, crypto_aead/minalpherv11

Computer: jasper3
Microarchitecture: amd64; Tremont (906c0)
Architecture: amd64
CPU ID: GenuineIntel-000906c0-20-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: minalpherv11
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
284128617565 0 033394 788 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
310671516088 0 032464 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
317011914280 0 031936 812 1016T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
317286912532 0 027888 812 1016T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
38139106829 0 021482 788 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
38955934940 0 018446 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
40425985750 0 019822 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
43933545018 0 018069 764 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
49333396020 0 020175 772 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


MinalpherCore.cpp: MinalpherCore.cpp:42:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:     { _mm256_set_epi32(0x0000000, 0x03020100, 0x00000000, 0x0000000, 0x0000000, 0x02030001, 0x0000000, 0x0000000),
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:43:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:       _mm256_set_epi32(0x0000000, 0x01000302, 0x00000000, 0x0000000, 0x0000000, 0x00010203, 0x0000000, 0x0000000)},
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:44:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:     { _mm256_set_epi32(0x0000000, 0x02030001, 0x00000000, 0x0000000, 0x0000000, 0x03020100, 0x0000000, 0x0000000),
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:45:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:       _mm256_set_epi32(0x0000000, 0x00010203, 0x00000000, 0x0000000, 0x0000000, 0x01000302, 0x0000000, 0x0000000)},
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:46:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:     { _mm256_set_epi32(0x0000000, 0x01000302, 0x00000000, 0x0000000, 0x0000000, 0x00010203, 0x0000000, 0x0000000),
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:47:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:       _mm256_set_epi32(0x0000000, 0x03020100, 0x00000000, 0x0000000, 0x0000000, 0x02030001, 0x0000000, 0x0000000)},
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:48:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:     { _mm256_set_epi32(0x0000000, 0x00010203, 0x00000000, 0x0000000, 0x0000000, 0x01000302, 0x0000000, 0x0000000),
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:49:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp:       _mm256_set_epi32(0x0000000, 0x02030001, 0x00000000, 0x0000000, 0x0000000, 0x03020100, 0x0000000, 0x0000000)},
MinalpherCore.cpp:       ^
MinalpherCore.cpp: MinalpherCore.cpp:50:7: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
MinalpherCore.cpp: ...

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


MinalpherCore.cpp: MinalpherCore.cpp: In function 'void minalpher_core_single_block(const __m256i&, __m256i&, __m256i&)':
MinalpherCore.cpp: MinalpherCore.cpp:85:138: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
MinalpherCore.cpp:    85 |   const __m256i ymmMask = _mm256_set_epi32(0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F);
MinalpherCore.cpp:       |                                                                                                                                          ^
MinalpherCore.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:51,
MinalpherCore.cpp:                  from /usr/lib/gcc/x86_64-linux-gnu/10/include/x86intrin.h:32,
MinalpherCore.cpp:                  from define.h:47,
MinalpherCore.cpp:                  from MinalpherCore.cpp:33:
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h: In function 'void __static_initialization_and_destruction_0(int, int)':
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:1278:1: error: inlining failed in call to 'always_inline' '__m256i _mm256_set_epi8(char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char)': target specific option mismatch
MinalpherCore.cpp:  1278 | _mm256_set_epi8  (char __q31, char __q30, char __q29, char __q28,
MinalpherCore.cpp:       | ^~~~~~~~~~~~~~~
MinalpherCore.cpp: MinalpherCore.cpp:705:55: note: called from here
MinalpherCore.cpp:   705 | const __m256i ShuffleQuadrupleBlock3 = _mm256_set_epi8(0xc, 0xd, 0x9, 0x8, 0xf, 0xe, 0xb, 0xa, 0x4, 0x5, 0x1, 0x0, 0x7, 0x6, 0x3, 0x2, 0xc, 0xd, 0x9, 0x8, 0xf, 0xe, 0xb, 0xa, 0x4, 0x5, 0x1, 0x0, 0x7, 0x6, 0x3, 0x2);
MinalpherCore.cpp:       |                                        ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MinalpherCore.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:51,
MinalpherCore.cpp:                  from /usr/lib/gcc/x86_64-linux-gnu/10/include/x86intrin.h:32,
MinalpherCore.cpp:                  from define.h:47,
MinalpherCore.cpp:                  from MinalpherCore.cpp:33:
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:1278:1: error: inlining failed in call to 'always_inline' '__m256i _mm256_set_epi8(char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char, char)': target specific option mismatch
MinalpherCore.cpp:  1278 | _mm256_set_epi8  (char __q31, char __q30, char __q29, char __q28,
MinalpherCore.cpp:       | ^~~~~~~~~~~~~~~
MinalpherCore.cpp: MinalpherCore.cpp:704:55: note: called from here
MinalpherCore.cpp:   704 | const __m256i ShuffleQuadrupleBlock2 = _mm256_set_epi8(0x9, 0x8, 0xf, 0xe, 0xd, 0xc, 0xa, 0xb, 0x1, 0x0, 0x7, 0x6, 0x5, 0x4, 0x2, 0x3, 0x9, 0x8, 0xf, 0xe, 0xd, 0xc, 0xa, 0xb, 0x1, 0x0, 0x7, 0x6, 0x5, 0x4, 0x2, 0x3);
MinalpherCore.cpp:       |                                        ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MinalpherCore.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)