Implementation notes: amd64, h6sandy, crypto_sign/rainbow3ccyclicc683248

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: rainbow3ccyclicc683248
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
115436090172749 8 52192948 940 1824T:ssse3gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
11565801198385 8 52138748 940 1824T:ssse3gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
11609357555223 8 52102164 932 1824T:ssse3gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
116945593101032 8 52142652 956 1792T:ssse3clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
117059503149785 0 52203796 932 1824T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
11727582570818 8 52114430 948 1792T:ssse3clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
11784341081151 8 52122428 940 1824T:ssse3gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
118075018190335 0 52244332 932 1824T:amd64gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
11877871591773 0 52144940 948 1792T:amd64clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
118912590133985 8 52172428 956 1792T:ssse3clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
11903738861947 0 52114756 932 1824T:amd64gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
11913875680959 8 52124252 956 1792T:ssse3clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
119307826109800 0 52161980 948 1792T:amd64clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
11934802180951 0 52134540 948 1792T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
11939568870467 0 52123540 932 1824T:amd64gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
12144746275720 0 52126884 948 1792T:amd64clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12147154072435 0 52126140 948 1792T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12177551947511 0 5298966 940 1792T:amd64clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12198187133462 0 5285452 924 1824T:amd64gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
12231095163835 0 52116644 948 1792T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12250290648080 0 52101084 932 1824T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
12303881949592 0 52102276 932 1824T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212
12433837242006 0 5293470 940 1792T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12439512541074 0 5293388 948 1792T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12472857446218 0 5298580 948 1792T:amd64clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121820231212
12717759130350 0 5282196 924 1824T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121820231212

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