Implementation notes: amd64, hertz, crypto_aead/paeq128t

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: paeq128t
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1826530086 32 6553649139 900 66632T:aesniclang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
185908687 32 6553623429 892 66632T:aesniclang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
1925814382 32 6553634811 900 66632T:aesniclang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
2055131491 28 6553648733 840 66728T:aesnig++_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
144601813411 32 6553634507 900 66632T:refclang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
168493513387 32 6553634411 900 66632T:refclang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
183653715244 28 6553632461 840 66728T:refg++_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
19176325347 28 6553620549 840 66664T:refg++_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
53343973427 28 6553616968 816 66632T:refg++_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
55588903962 32 6553618877 892 66632T:refclang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


encrypt.cpp: encrypt.cpp:22:9: warning: unknown pragma ignored [-Wunknown-pragmas]
encrypt.cpp:    22 | #pragma intrinsic(_mm_set_epi64x)
encrypt.cpp:       |         ^
encrypt.cpp: encrypt.cpp:553:22: warning: variable 'adblock_counter' set but not used [-Wunused-but-set-variable]
encrypt.cpp:   553 |                 unsigned long long adblock_counter = 1;   //AD block counter
encrypt.cpp:       |                                    ^
encrypt.cpp: encrypt.cpp:933:22: warning: variable 'adblock_counter' set but not used [-Wunused-but-set-variable]
encrypt.cpp:   933 |                 unsigned long long adblock_counter = 1;   //AD block counter
encrypt.cpp:       |                                    ^
encrypt.cpp: 3 warnings generated.

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:aesniclang++ -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:aesniclang++ -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:aesniclang++ -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


encrypt.cpp: encrypt.cpp:22: warning: ignoring '#pragma intrinsic ' [-Wunknown-pragmas]
encrypt.cpp:    22 | #pragma intrinsic(_mm_set_epi64x)
encrypt.cpp:       |
encrypt.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/wmmintrin.h:31,
encrypt.cpp:                  from encrypt.cpp:14:
encrypt.cpp: In function '__m128i _mm_xor_si128(__m128i, __m128i)',
encrypt.cpp:     inlined from 'int PAEQ128_opt_AESNI_decrypt(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*)' at encrypt.cpp:433:35:
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h:1335:35: warning: 'padding[0]' may be used uninitialized [-Wmaybe-uninitialized]
encrypt.cpp:  1335 |   return (__m128i) ((__v2du)__A ^ (__v2du)__B);
encrypt.cpp:       |                                   ^~~~~~~~~~~
encrypt.cpp: encrypt.cpp: In function 'int PAEQ128_opt_AESNI_decrypt(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*)':
encrypt.cpp: encrypt.cpp:401:41: note: 'padding[0]' was declared here
encrypt.cpp:   401 |                                 __m128i padding[3];
encrypt.cpp:       |                                         ^~~~~~~
encrypt.cpp: In function '__m128i _mm_xor_si128(__m128i, __m128i)',
encrypt.cpp:     inlined from 'int PAEQ128_opt_AESNI_decrypt(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*)' at encrypt.cpp:434:35:
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h:1335:35: warning: 'padding[1]' may be used uninitialized [-Wmaybe-uninitialized]
encrypt.cpp:  1335 |   return (__m128i) ((__v2du)__A ^ (__v2du)__B);
encrypt.cpp:       |                                   ^~~~~~~~~~~
encrypt.cpp: encrypt.cpp: In function 'int PAEQ128_opt_AESNI_decrypt(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*)':
encrypt.cpp: encrypt.cpp:401:41: note: 'padding[1]' was declared here
encrypt.cpp:   401 |                                 __m128i padding[3];
encrypt.cpp:       |                                         ^~~~~~~
encrypt.cpp: In function '__m128i _mm_xor_si128(__m128i, __m128i)',
encrypt.cpp:     inlined from 'int PAEQ128_opt_AESNI_decrypt(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*)' at encrypt.cpp:435:35:
encrypt.cpp: ...

Number of similar (implementation,compiler) pairs: 2, namely:
ImplementationCompiler
T:aesnig++ -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:aesnig++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


encrypt.cpp: encrypt.cpp:22: warning: ignoring '#pragma intrinsic ' [-Wunknown-pragmas]
encrypt.cpp:    22 | #pragma intrinsic(_mm_set_epi64x)
encrypt.cpp:       |

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:aesnig++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)