Implementation notes: amd64, hydra4, crypto_aead/paeq64

Computer: hydra4
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: paeq64
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
257335212259 28 6553628224 816 66648T:refg++_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
285947910368 32 6553626765 884 66552T:refclang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
31478859840 32 6553625389 884 66552T:refclang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
92199304295 32 6553617715 876 66552T:refclang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
147851484608 32 6553618603 876 66552T:refclang++_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
188581315746 28 6553620560 816 66648T:refg++_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
201291923757 28 6553616723 792 66616T:refg++_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
235659264983 28 6553619127 808 66648T:refg++_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625

Compiler output


encrypt.cpp: encrypt.cpp:21:9: warning: unknown pragma ignored [-Wunknown-pragmas]
encrypt.cpp: #pragma intrinsic(_mm_set_epi64x)
encrypt.cpp:         ^
encrypt.cpp: encrypt.cpp:166:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc0 = _mm_aesenc_si128(acc0, roundkey0);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:167:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc1 = _mm_aesenc_si128(acc1, roundkey1);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:168:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc2 = _mm_aesenc_si128(acc2, roundkey2);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:169:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc3 = _mm_aesenc_si128(acc3, roundkey3);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:171:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc4 = _mm_aesenc_si128(acc4, roundkey0);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:172:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc5 = _mm_aesenc_si128(acc5, roundkey1);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:173:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp:                         acc6 = _mm_aesenc_si128(acc6, roundkey2);
encrypt.cpp:                                ^
encrypt.cpp: encrypt.cpp:174:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'aes'
encrypt.cpp: ...

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

Compiler output


encrypt.cpp: encrypt.cpp:21: warning: ignoring '#pragma intrinsic ' [-Wunknown-pragmas]
encrypt.cpp:    21 | #pragma intrinsic(_mm_set_epi64x)
encrypt.cpp:       |
encrypt.cpp: encrypt.cpp: In function 'int PAEQ64_opt_AESNI_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*)':
encrypt.cpp: encrypt.cpp:773:10: warning: unused variable 'ADblock_mask' [-Wunused-variable]
encrypt.cpp:   773 |  __m128i ADblock_mask = _mm_set_epi32(0xffffffff, 0xffff0000, 0, 0); //upper 6 bytes
encrypt.cpp:       |          ^~~~~~~~~~~~
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/wmmintrin.h: In function 'void DoubleFPermAsm(const __m128i*, const __m128i*, __m128i*, __m128i*)':
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
encrypt.cpp:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt.cpp:       | ^~~~~~~~~~~~~~~~
encrypt.cpp: encrypt.cpp:174:27: note: called from here
encrypt.cpp:   174 |    acc7 = _mm_aesenc_si128(acc7, roundkey3);
encrypt.cpp:       |           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
encrypt.cpp:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt.cpp:       | ^~~~~~~~~~~~~~~~
encrypt.cpp: encrypt.cpp:173:27: note: called from here
encrypt.cpp:   173 |    acc6 = _mm_aesenc_si128(acc6, roundkey2);
encrypt.cpp:       |           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/10/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '__m128i _mm_aesenc_si128(__m128i, __m128i)': target specific option mismatch
encrypt.cpp:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt.cpp: ...

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