Implementation notes: amd64, saber214, crypto_sign/rainbow5cclassic963664

Computer: saber214
Microarchitecture: amd64; Bulldozer (600f20)
Architecture: amd64
CPU ID: AuthenticAMD-00600f20-1789c3f5
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: rainbow5cclassic963664
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2561755198117 8 52225653 912 1664T:ssse3gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
2727016114895 8 52164949 928 1632T:ssse3clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
274981392051 8 52143605 928 1632T:ssse3clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
291425399871 8 52148573 912 1664T:ssse3gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
297805770928 8 52122847 920 1632T:ssse3clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
299283282767 8 52134453 928 1632T:ssse3clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
305588681564 8 52131229 912 1664T:ssse3gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
337050355518 8 52110869 904 1664T:ssse3gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
5938680171135 0 52233661 904 1664T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
7570956102094 0 52163685 920 1632T:amd64clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
793058676020 0 52138197 920 1632T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
7993448208322 0 52270997 904 1664T:amd64gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
1115827674747 0 52133725 920 1632T:amd64clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
11284176101611 0 52162061 920 1632T:amd64clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
1156249758192 0 52118813 920 1632T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
1199623872684 0 52134533 920 1632T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
1212347769772 0 52131165 904 1664T:amd64gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
1242733147133 0 52107853 920 1632T:amd64clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
1291232348548 0 52108455 912 1632T:amd64clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
1331154762317 0 52123501 904 1664T:amd64gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
1960673533557 0 5293997 896 1664T:amd64gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
2038952240431 0 52101173 920 1632T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
2074437547879 0 52109237 904 1664T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
2098873649696 0 52110765 904 1664T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212
2262879741059 0 52101007 912 1632T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121920231212
3263669030373 0 5290677 896 1664T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121920231212

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blas_matrix_avx2.c: blas_matrix_avx2.c:40:9: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'gf16mat_prod_16_multab_avx2' that is compiled without support for 'avx2'
blas_matrix_avx2.c: rl ^= _mm256_shuffle_epi8( mt , inp&mask_f );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: blas_matrix_avx2.c:41:53: error: always_inline function '_mm256_andnot_si256' requires target feature 'avx2', but would be inlined into function 'gf16mat_prod_16_multab_avx2' that is compiled without support for 'avx2'
blas_matrix_avx2.c: rh ^= _mm256_shuffle_epi8( mt , _mm256_srli_epi16(_mm256_andnot_si256(mask_f,inp),4) );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: blas_matrix_avx2.c:41:35: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'gf16mat_prod_16_multab_avx2' that is compiled without support for 'avx2'
blas_matrix_avx2.c: rh ^= _mm256_shuffle_epi8( mt , _mm256_srli_epi16(_mm256_andnot_si256(mask_f,inp),4) );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: blas_matrix_avx2.c:41:9: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'gf16mat_prod_16_multab_avx2' that is compiled without support for 'avx2'
blas_matrix_avx2.c: rh ^= _mm256_shuffle_epi8( mt , _mm256_srli_epi16(_mm256_andnot_si256(mask_f,inp),4) );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: blas_matrix_avx2.c:44:19: error: always_inline function '_mm256_slli_epi16' requires target feature 'avx2', but would be inlined into function 'gf16mat_prod_16_multab_avx2' that is compiled without support for 'avx2'
blas_matrix_avx2.c: __m256i r = rl ^ _mm256_slli_epi16( rh , 4 );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: blas_matrix_avx2.c:46:15: error: '__builtin_ia32_extract128i256' needs target feature avx2
blas_matrix_avx2.c: __m128i r1 = _mm256_extracti128_si256( r , 1 );
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:824:13: note: expanded from macro '_mm256_extracti128_si256'
blas_matrix_avx2.c: ((__m128i)__builtin_ia32_extract128i256((__v4di)(__m256i)(V), (int)(M)))
blas_matrix_avx2.c: ^
blas_matrix_avx2.c: 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: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: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blas_comm.c: In file included from blas_comm.c:6:
blas_comm.c: In file included from ./blas.h:25:
blas_comm.c: ./blas_avx2.h:88:17: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'gf256v_add_avx2' that is compiled without support for 'avx'
blas_comm.c: __m256i inp = _mm256_loadu_si256( (__m256i*) (a+i*32) );
blas_comm.c: ^
blas_comm.c: ./blas_avx2.h:88:17: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
blas_comm.c: ./blas_avx2.h:89:17: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'gf256v_add_avx2' that is compiled without support for 'avx'
blas_comm.c: __m256i out = _mm256_loadu_si256( (__m256i*) (accu_b+i*32) );
blas_comm.c: ^
blas_comm.c: ./blas_avx2.h:89:17: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
blas_comm.c: ./blas_avx2.h:91:3: error: always_inline function '_mm256_storeu_si256' requires target feature 'avx', but would be inlined into function 'gf256v_add_avx2' that is compiled without support for 'avx'
blas_comm.c: _mm256_storeu_si256( (__m256i*) (accu_b+i*32) , out );
blas_comm.c: ^
blas_comm.c: ./blas_avx2.h:91:3: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
blas_comm.c: 6 errors generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
blas_matrix_avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
blas_matrix_avx2.c: from gf16_avx2.h:22,
blas_matrix_avx2.c: from blas_matrix_avx2.c:9:
blas_matrix_avx2.c: gf16_avx2.h: In function 'tbl32_gf16_log':
blas_matrix_avx2.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:588:1: error: inlining failed in call to 'always_inline' '_mm256_shuffle_epi8': target specific option mismatch
blas_matrix_avx2.c: 588 | _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
blas_matrix_avx2.c: | ^~~~~~~~~~~~~~~~~~~
blas_matrix_avx2.c: In file included from blas_matrix_avx2.c:9:
blas_matrix_avx2.c: gf16_avx2.h:45:16: note: called from here
blas_matrix_avx2.c: 45 | return _mm256_shuffle_epi8(tab_l,a);
blas_matrix_avx2.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
blas_matrix_avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
blas_matrix_avx2.c: from gf16_avx2.h:22,
blas_matrix_avx2.c: from blas_matrix_avx2.c:9:
blas_matrix_avx2.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:588:1: error: inlining failed in call to 'always_inline' '_mm256_shuffle_epi8': target specific option mismatch
blas_matrix_avx2.c: 588 | _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
blas_matrix_avx2.c: | ^~~~~~~~~~~~~~~~~~~
blas_matrix_avx2.c: In file included from blas_matrix_avx2.c:9:
blas_matrix_avx2.c: gf16_avx2.h:45:16: note: called from here
blas_matrix_avx2.c: 45 | return _mm256_shuffle_epi8(tab_l,a);
blas_matrix_avx2.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Compiler output

Implementation: T:ssse3
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blas_matrix_ref.c: In file included from blas_matrix_ref.c:6:
blas_matrix_ref.c: In file included from ./blas.h:25:
blas_matrix_ref.c: In file included from ./blas_sse.h:16:
blas_matrix_ref.c: ./gf16_sse.h:34:9: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'linear_transform_8x8_128b' that is compiled without support for 'ssse3'
blas_matrix_ref.c: return _mm_shuffle_epi8(tab_l,v&mask_f)^_mm_shuffle_epi8(tab_h,_mm_srli_epi16(v,4)&mask_f);
blas_matrix_ref.c: ^
blas_matrix_ref.c: ./gf16_sse.h:34:42: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'linear_transform_8x8_128b' that is compiled without support for 'ssse3'
blas_matrix_ref.c: return _mm_shuffle_epi8(tab_l,v&mask_f)^_mm_shuffle_epi8(tab_h,_mm_srli_epi16(v,4)&mask_f);
blas_matrix_ref.c: ^
blas_matrix_ref.c: 2 errors generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ssse3