Implementation notes: amd64, margaux, crypto_hash/triadhashv1

Computer: margaux
Microarchitecture: amd64; Core 2 65nm (6fb)
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20240425
Operation: crypto_hash
Primitive: triadhashv1

Test failure

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_hash does not handle m=h overlap

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

Compiler output

Implementation: T:add_sse
Security model: timingleaks
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
simd.cpp: simd.cpp:98:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[2] = _mm_blendv_epi8(out[2], newc, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: simd.cpp:119:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[0] = _mm_blendv_epi8(out[0], newa, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: simd.cpp:135:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[1] = _mm_blendv_epi8(out[1], newb, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: simd.cpp:98:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[2] = _mm_blendv_epi8(out[2], newc, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: simd.cpp:119:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[0] = _mm_blendv_epi8(out[0], newa, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: simd.cpp:135:12: error: always_inline function '_mm_blendv_epi8' requires target feature 'sse4.1', but would be inlined into function 'triad_update_encryption' that is compiled without support for 'sse4.1'
simd.cpp: out[1] = _mm_blendv_epi8(out[1], newb, BlendMaskList[i - 1]);
simd.cpp: ^
simd.cpp: 6 errors generated.

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

Compiler output

Implementation: T:add_sse
Security model: timingleaks
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/11/include/immintrin.h:39,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86intrin.h:32,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/11/include/smmintrin.h: In function 'void triad_update_encryption(const __m128i*, __m128i*) [with int i = 7]':
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/11/include/smmintrin.h:179:1: error: inlining failed in call to 'always_inline' '__m128i _mm_blendv_epi8(__m128i, __m128i, __m128i)': target specific option mismatch
simd.cpp: 179 | _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
simd.cpp: | ^~~~~~~~~~~~~~~
simd.cpp: simd.cpp:135:27: note: called from here
simd.cpp: 135 | out[1] = _mm_blendv_epi8(out[1], newb, BlendMaskList[i - 1]);
simd.cpp: | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:39,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86intrin.h:32,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/11/include/smmintrin.h:179:1: error: inlining failed in call to 'always_inline' '__m128i _mm_blendv_epi8(__m128i, __m128i, __m128i)': target specific option mismatch
simd.cpp: 179 | _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
simd.cpp: | ^~~~~~~~~~~~~~~
simd.cpp: simd.cpp:119:27: note: called from here
simd.cpp: 119 | out[0] = _mm_blendv_epi8(out[0], newa, BlendMaskList[i - 1]);
simd.cpp: | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simd.cpp: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:39,
simd.cpp: from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86intrin.h:32,
simd.cpp: from simd.cpp:16:
simd.cpp: /usr/lib/gcc/x86_64-linux-gnu/11/include/smmintrin.h:179:1: error: inlining failed in call to 'always_inline' '__m128i _mm_blendv_epi8(__m128i, __m128i, __m128i)': target specific option mismatch
simd.cpp: 179 | _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
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 T:add_sse
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:add_sse
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:add_sse
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:add_sse