Implementation notes: amd64, hedera, crypto_aead/minalpherv11

Computer: hedera
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20210326
Operation: crypto_aead
Primitive: minalpherv11
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
292669013749 0 032770 812 1040T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
294983613944 0 030706 812 1008T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
295201111782 0 029098 812 1040T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
296034311782 0 029098 812 1040T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
34078709057 0 025121 836 1040T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
44927296787 0 021230 820 1040T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
46865275740 0 019336 804 1008T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
52636964873 0 017994 804 1040T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
60403316367 0 020670 820 1040T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
MinalpherCore.cpp: MinalpherCore.cpp:88:17: error: '__builtin_ia32_permdi256' needs target feature avx2
MinalpherCore.cpp: __m256i tmp = _mm256_permute4x64_epi64(DATA, 0xD8);
MinalpherCore.cpp: ^
MinalpherCore.cpp: /usr/include/clang/7.0.1/include/avx2intrin.h:838:12: note: expanded from macro '_mm256_permute4x64_epi64'
MinalpherCore.cpp: (__m256i)__builtin_ia32_permdi256((__v4di)(__m256i)(V), (int)(M))
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:92:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: tmp0 = _mm256_and_si256(ymmMask, tmp);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:93:10: error: always_inline function '_mm256_andnot_si256' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: tmp1 = _mm256_andnot_si256(ymmMask, tmp);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:96:10: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: tmp1 = _mm256_srli_epi16(tmp1, 4);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:99:18: error: always_inline function '_mm256_unpacklo_epi8' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: __m256i ymm0 = _mm256_unpacklo_epi8(tmp0, tmp1);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:100:18: error: always_inline function '_mm256_unpackhi_epi8' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: __m256i ymm1 = _mm256_unpackhi_epi8(tmp0, tmp1);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:128:3: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'minalpher_core_single_block' that is compiled without support for 'avx2'
MinalpherCore.cpp: singleRoundFunctionH( 0, ymm0, ymm1);
MinalpherCore.cpp: ^
MinalpherCore.cpp: MinalpherCore.cpp:112:12: note: expanded from macro 'singleRoundFunctionH'
MinalpherCore.cpp: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang++ -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang++ -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
MinalpherCore.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
MinalpherCore.cpp: from /usr/lib/gcc/x86_64-linux-gnu/8/include/x86intrin.h:48,
MinalpherCore.cpp: from define.h:47,
MinalpherCore.cpp: from MinalpherCore.cpp:33:
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h: In function 'void minalpher_core_single_block(const __m256i&, __m256i&, __m256i&)':
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:588:1: error: inlining failed in call to always_inline '__m256i _mm256_shuffle_epi8(__m256i, __m256i)': target specific option mismatch
MinalpherCore.cpp: _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
MinalpherCore.cpp: ^~~~~~~~~~~~~~~~~~~
MinalpherCore.cpp: MinalpherCore.cpp:150:30: note: called from here
MinalpherCore.cpp: ymm1_ = _mm256_shuffle_epi8(ymm1, ShuffleSingleBlock1);
MinalpherCore.cpp: ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
MinalpherCore.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
MinalpherCore.cpp: from /usr/lib/gcc/x86_64-linux-gnu/8/include/x86intrin.h:48,
MinalpherCore.cpp: from define.h:47,
MinalpherCore.cpp: from MinalpherCore.cpp:33:
MinalpherCore.cpp: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:588:1: error: inlining failed in call to always_inline '__m256i _mm256_shuffle_epi8(__m256i, __m256i)': target specific option mismatch
MinalpherCore.cpp: _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
MinalpherCore.cpp: ^~~~~~~~~~~~~~~~~~~
MinalpherCore.cpp: MinalpherCore.cpp:149:30: note: called from here
MinalpherCore.cpp: ymm1 = _mm256_shuffle_epi8(ymmSbox, ymm1);
MinalpherCore.cpp: ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
MinalpherCore.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
MinalpherCore.cpp: from /usr/lib/gcc/x86_64-linux-gnu/8/include/x86intrin.h:48,
MinalpherCore.cpp: from define.h:47,
MinalpherCore.cpp: from MinalpherCore.cpp:33:
MinalpherCore.cpp: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2

Namespace violations

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.o crypto_mac_gen T
encrypt.o crypto_mac_verif T
minalpher.o AEAD_DEC T
minalpher.o AEAD_ENC T
minalpher.o MAC_GEN T
minalpher.o MAC_VERIF T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref