Implementation notes: amd64, hydra5, crypto_aead/paeq160

Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: paeq160
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
362191113255 32 6553629717 932 66560T:refclang++_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
424555419116 28 6553636085 840 66656T:refg++_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
478694313510 32 6553629101 932 66560T:refclang++_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
113794136501 32 6553620573 932 66560T:refclang++_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
115887406747 32 6553619799 924 66560T:refclang++_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
192539157998 28 6553623685 840 66656T:refg++_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
210513145232 28 6553618776 816 66624T:refg++_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
232187606402 28 6553621212 832 66656T:refg++_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625

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 (Ubuntu_Clang_14.0.0)
T:aesniclang++ -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:aesniclang++ -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:aesniclang++ -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

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 PAEQ160_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:757:17: warning: unused variable 'ADblock_mask' [-Wunused-variable]
encrypt.cpp:   757 |         __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/11/include/wmmintrin.h: In function 'void DoubleFPermAsm(const __m128i*, const __m128i*, __m128i*, __m128i*)':
encrypt.cpp: /usr/lib/gcc/x86_64-linux-gnu/11/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:48: 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/11/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:48: 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/11/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 (11.4.0)
T:aesnig++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:aesnig++ -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:aesnig++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)