Implementation notes: amd64, h8atom, crypto_aead/triadaev1

Computer: h8atom
Architecture: amd64
CPU ID: GenuineIntel-00030661-bfebfbff
SUPERCOP version: 20200618
Operation: crypto_aead
Primitive: triadaev1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2689291510257 0 025512 784 928refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041220200409
8428064420843 0 035425 776 856refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041220200409
8428219120826 0 035521 776 856refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041220200409
8453179713418 0 026769 776 856refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041220200409
8455562513418 0 026769 776 856refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041220200409
1086976036163 0 019037 768 928refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041220200409
1291189067857 0 020701 768 928refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041220200409
1291826625276 0 017145 752 896refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041220200409
1312755717963 0 019423 768 856refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041220200409

Compiler output

Implementation: add_avx
Security model: unknown
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
simd.cpp: simd.cpp:105:14: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_56x_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[2] = _mm_blendv_epi8(out[2], newc, BlendMask);
simd.cpp: ^
simd.cpp: simd.cpp:126:14: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_56x_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[0] = _mm_blendv_epi8(out[0], newa, BlendMask);
simd.cpp: ^
simd.cpp: simd.cpp:142:14: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_56x_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[1] = _mm_blendv_epi8(out[1], newb, BlendMask);
simd.cpp: ^
simd.cpp: 3 errors generated.

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

Compiler output

Implementation: add_avx
Security model: unknown
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
simd.cpp: simd.cpp: In function 'void triad_high_speed_encryption(unsigned char*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*)':
simd.cpp: simd.cpp:400:11: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
simd.cpp: in[2] = _mm256_load_si256((const __m256i *)(tmp0));
simd.cpp: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h: In function 'void triad_update_encryption(const __m256i*, __m256i*) [with int i = 7]':
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:207:1: error: inlining failed in call to always_inline '__m256i _mm256_blendv_epi8(__m256i, __m256i, __m256i)': target specific option mismatch
simd.cpp: _mm256_blendv_epi8 (__m256i __X, __m256i __Y, __m256i __M)
simd.cpp: ^~~~~~~~~~~~~~~~~~
simd.cpp: simd.cpp:224:32: note: called from here
simd.cpp: out[1] = _mm256_blendv_epi8(out[1], newb, BlendMask256List[i - 1]);
simd.cpp: ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:746:1: error: inlining failed in call to always_inline '__m256i _mm256_srli_si256(__m256i, int)': target specific option mismatch
simd.cpp: _mm256_srli_si256 (__m256i __A, const int __N)
simd.cpp: ^~~~~~~~~~~~~~~~~
simd.cpp: simd.cpp:223:31: note: called from here
simd.cpp: out[1] = _mm256_srli_si256(in[1], i);
simd.cpp: ~~~~~~~~~~~~~~~~~^~~~~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: ...

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

Compiler output

Implementation: add_sse
Security model: unknown
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
simd.cpp: simd.cpp:237:12: error: always_inline function '_mm_broadcastq_epi64' requires target feature 'xsave', but would be inlined into function 'triad_high_speed_encryption' that is compiled without support for 'xsave'
simd.cpp: inR[0] = _mm_broadcastq_epi64(in[0]);
simd.cpp: ^
simd.cpp: simd.cpp:238:12: error: always_inline function '_mm_broadcastq_epi64' requires target feature 'xsave', but would be inlined into function 'triad_high_speed_encryption' that is compiled without support for 'xsave'
simd.cpp: inR[1] = _mm_broadcastq_epi64(in[1]);
simd.cpp: ^
simd.cpp: simd.cpp:239:12: error: always_inline function '_mm_broadcastq_epi64' requires target feature 'xsave', but would be inlined into function 'triad_high_speed_encryption' that is compiled without support for 'xsave'
simd.cpp: inR[2] = _mm_broadcastq_epi64(in[2]);
simd.cpp: ^
simd.cpp: 3 errors generated.

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

Compiler output

Implementation: add_sse
Security model: unknown
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h: In function 'void triad_high_speed_encryption(unsigned char*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*)':
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:1034:1: error: inlining failed in call to always_inline '__m128i _mm_broadcastq_epi64(__m128i)': target specific option mismatch
simd.cpp: _mm_broadcastq_epi64 (__m128i __X)
simd.cpp: ^~~~~~~~~~~~~~~~~~~~
simd.cpp: simd.cpp:237:32: note: called from here
simd.cpp: inR[0] = _mm_broadcastq_epi64(in[0]);
simd.cpp: ~~~~~~~~~~~~~~~~~~~~^~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:1034:1: error: inlining failed in call to always_inline '__m128i _mm_broadcastq_epi64(__m128i)': target specific option mismatch
simd.cpp: _mm_broadcastq_epi64 (__m128i __X)
simd.cpp: ^~~~~~~~~~~~~~~~~~~~
simd.cpp: simd.cpp:238:32: note: called from here
simd.cpp: inR[1] = _mm_broadcastq_epi64(in[1]);
simd.cpp: ~~~~~~~~~~~~~~~~~~~~^~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:1034:1: error: inlining failed in call to always_inline '__m128i _mm_broadcastq_epi64(__m128i)': target specific option mismatch
simd.cpp: _mm_broadcastq_epi64 (__m128i __X)
simd.cpp: ^~~~~~~~~~~~~~~~~~~~
simd.cpp: ...

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

Namespace violations

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.o Init_loading T
encrypt.o Initialization T
encrypt.o Initialization_mac T
encrypt.o Keystreamgen T
encrypt.o Keystreamgen_byte T
encrypt.o Stateupdate T
encrypt.o dec_onebyte T
encrypt.o decryption_part T
encrypt.o enc_onebyte T
encrypt.o encryption_part T
encrypt.o filter T
encrypt.o mac_onebyte_ad T
encrypt.o mac_onebyte_message T
encrypt.o macgeneration_part T
encrypt.o tagverification_part T

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