Implementation notes: amd64, hunsnivy, crypto_decode/953x3

Computer: hunsnivy
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_decode
Primitive: 953x3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
3241370 0 012672 780 952refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1485150 0 010496 780 952refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1501127 0 012320 812 888refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1502127 0 013992 812 888refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1503147 0 012440 812 888refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1505127 0 010150 804 888refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1507150 0 010215 772 952refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1724126 0 09662 804 888refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1741129 0 09219 756 920refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output


decode.c: decode.c:22:18: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i s1 = _mm256_srli_epi16(s0&_mm256_set1_epi8(-16),4);
decode.c:                  ^
decode.c: decode.c:25:18: error: always_inline function '_mm256_unpacklo_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a0 = _mm256_unpacklo_epi8(s0,s1);
decode.c:                  ^
decode.c: decode.c:28:18: error: always_inline function '_mm256_unpackhi_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a1 = _mm256_unpackhi_epi8(s0,s1);
decode.c:                  ^
decode.c: decode.c:32:18: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a2 = _mm256_srli_epi16(a0&_mm256_set1_epi8(12),2);
decode.c:                  ^
decode.c: decode.c:33:18: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a3 = _mm256_srli_epi16(a1&_mm256_set1_epi8(12),2);
decode.c:                  ^
decode.c: decode.c:37:18: error: always_inline function '_mm256_unpacklo_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i b0 = _mm256_unpacklo_epi8(a0,a2);
decode.c:                  ^
decode.c: decode.c:41:18: error: always_inline function '_mm256_unpackhi_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i b2 = _mm256_unpackhi_epi8(a0,a2);
decode.c:                  ^
decode.c: decode.c:43:18: error: always_inline function '_mm256_unpacklo_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i b1 = _mm256_unpacklo_epi8(a1,a3);
decode.c:                  ^
decode.c: decode.c:45:18: error: always_inline function '_mm256_unpackhi_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avxclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avxclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avxclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
avxclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


decode.c: decode.c:18:18: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx'
decode.c:     __m256i s0 = _mm256_loadu_si256((const __m256i *) s);
decode.c:                  ^
decode.c: decode.c:18:18: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:22:39: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx'
decode.c:     __m256i s1 = _mm256_srli_epi16(s0&_mm256_set1_epi8(-16),4);
decode.c:                                       ^
decode.c: decode.c:22:39: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:22:18: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i s1 = _mm256_srli_epi16(s0&_mm256_set1_epi8(-16),4);
decode.c:                  ^
decode.c: decode.c:22:18: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:23:11: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx'
decode.c:     s0 &= _mm256_set1_epi8(15);
decode.c:           ^
decode.c: decode.c:23:11: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:25:18: error: always_inline function '_mm256_unpacklo_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a0 = _mm256_unpacklo_epi8(s0,s1);
decode.c:                  ^
decode.c: decode.c:25:18: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:28:18: error: always_inline function '_mm256_unpackhi_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c:     __m256i a1 = _mm256_unpackhi_epi8(s0,s1);
decode.c:                  ^
decode.c: decode.c:28:18: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
decode.c: decode.c:32:39: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_953x3_avx_constbranchindex' that is compiled without support for 'avx'
decode.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
avxclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
decode.c:                  from decode.c:1:
decode.c: decode.c: In function 'crypto_decode_953x3_avx_constbranchindex':
decode.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:105:1: error: inlining failed in call to 'always_inline' '_mm256_add_epi8': target specific option mismatch
decode.c:   105 | _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c:       | ^~~~~~~~~~~~~~~
decode.c: decode.c:56:10: note: called from here
decode.c:    56 |     f3 = _mm256_add_epi8(f3,_mm256_set1_epi8(-1));
decode.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
decode.c:                  from decode.c:1:
decode.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:105:1: error: inlining failed in call to 'always_inline' '_mm256_add_epi8': target specific option mismatch
decode.c:   105 | _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c:       | ^~~~~~~~~~~~~~~
decode.c: decode.c:55:10: note: called from here
decode.c:    55 |     f2 = _mm256_add_epi8(f2,_mm256_set1_epi8(-1));
decode.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
decode.c:                  from decode.c:1:
decode.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:105:1: error: inlining failed in call to 'always_inline' '_mm256_add_epi8': target specific option mismatch
decode.c:   105 | _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c:       | ^~~~~~~~~~~~~~~
decode.c: decode.c:54:10: note: called from here
decode.c:    54 |     f1 = _mm256_add_epi8(f1,_mm256_set1_epi8(-1));
decode.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avxgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avxgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avxgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
avxgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Passed TIMECOP


TIMECOP iterations: 10

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)