Implementation notes: amd64, gcc123, crypto_decode/857x3

Computer: gcc123
Architecture: amd64
CPU ID: GenuineIntel-000206d7-bfebfbff
SUPERCOP version: 20220213
Operation: crypto_decode
Primitive: 857x3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
299820 0 012695 828 912refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021011420210114
1382147 0 013394 812 912refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021011420210114
1384147 0 013034 812 880refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021011420210114
1388147 0 015090 812 912refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021011420210114
1395147 0 013394 812 912refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021011420210114
1520150 0 010486 820 912refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021011420210114
1536146 0 010350 820 912refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021011420210114
1569126 0 09832 804 880refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021011420210114
1602129 0 09394 804 912refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021011420210114

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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_857x3_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_857x3_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_857x3_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_857x3_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_857x3_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_857x3_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_857x3_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_857x3_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_857x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c: ...

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

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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_857x3_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:22:18: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_decode_857x3_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:39: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_857x3_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:23:11: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_857x3_avx_constbranchindex' that is compiled without support for 'avx'
decode.c: s0 &= _mm256_set1_epi8(15);
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_857x3_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_857x3_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_857x3_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:32:39: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_decode_857x3_avx_constbranchindex' that is compiled without support for 'avx'
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_857x3_avx_constbranchindex' that is compiled without support for 'avx2'
decode.c: ...

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

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
decode.c: from decode.c:1:
decode.c: decode.c: In function 'crypto_decode_857x3_avx_constbranchindex':
decode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:105:1: error: inlining failed in call to always_inline '_mm256_add_epi8': target specific option mismatch
decode.c: _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c: ^~~~~~~~~~~~~~~
decode.c: decode.c:56:10: note: called from here
decode.c: f3 = _mm256_add_epi8(f3,_mm256_set1_epi8(-1));
decode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
decode.c: from decode.c:1:
decode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:105:1: error: inlining failed in call to always_inline '_mm256_add_epi8': target specific option mismatch
decode.c: _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c: ^~~~~~~~~~~~~~~
decode.c: decode.c:55:10: note: called from here
decode.c: f2 = _mm256_add_epi8(f2,_mm256_set1_epi8(-1));
decode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
decode.c: from decode.c:1:
decode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:105:1: error: inlining failed in call to always_inline '_mm256_add_epi8': target specific option mismatch
decode.c: _mm256_add_epi8 (__m256i __A, __m256i __B)
decode.c: ^~~~~~~~~~~~~~~
decode.c: decode.c:54:10: note: called from here
decode.c: f1 = _mm256_add_epi8(f1,_mm256_set1_epi8(-1));
decode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decode.c: ...

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