Implementation notes: amd64, scw1b63b1, crypto_encode/256x2

Computer: scw1b63b1
Architecture: amd64
CPU ID: GenuineIntel-000506f1-0f8bfbff
SUPERCOP version: 20191017
Operation: crypto_encode
Primitive: 256x2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1112130 0 012164 808 800refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
1174122 0 09963 800 800refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
1222114 0 09811 800 800refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
1242104 0 08879 784 768refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
1494110 0 09913 784 728refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
1494110 0 010737 784 728refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
1496106 0 08995 776 728refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
1512110 0 09913 784 728refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
1516148 0 010857 784 728refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017

Compiler output

Implementation: avx
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:7:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: __m256i a0 = _mm256_loadu_si256(0+(__m256i *) v);
encode.c: ^
encode.c: encode.c:8:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: __m256i a1 = _mm256_loadu_si256(1+(__m256i *) v);
encode.c: ^
encode.c: encode.c:9:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: __m256i a2 = _mm256_loadu_si256(2+(__m256i *) v);
encode.c: ^
encode.c: encode.c:10:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: ...
encode.c: __m256i b6 = _mm256_cmpgt_epi8(a6&bottom,zero);
encode.c: ^
encode.c: encode.c:24:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: __m256i b7 = _mm256_cmpgt_epi8(a7&bottom,zero);
encode.c: ^
encode.c: encode.c:25:16: error: always_inline function '_mm256_movemask_epi8' requires target feature 'xsave', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'xsave'
encode.c: int32_t c0 = _mm256_movemask_epi8(b0);
encode.c: ^
encode.c: fatal error: too many errors emitted, stopping now [-ferror-limit=]
encode.c: 20 errors generated.

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: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:7:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: __m256i a0 = _mm256_loadu_si256(0+(__m256i *) v);
encode.c: ^
encode.c: encode.c:8:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: __m256i a1 = _mm256_loadu_si256(1+(__m256i *) v);
encode.c: ^
encode.c: encode.c:9:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: __m256i a2 = _mm256_loadu_si256(2+(__m256i *) v);
encode.c: ^
encode.c: encode.c:10:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: ...
encode.c: __m256i b6 = _mm256_cmpgt_epi8(a6&bottom,zero);
encode.c: ^
encode.c: encode.c:24:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: __m256i b7 = _mm256_cmpgt_epi8(a7&bottom,zero);
encode.c: ^
encode.c: encode.c:25:16: error: always_inline function '_mm256_movemask_epi8' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_256x2_avx' that is compiled without support for 'sse4.2'
encode.c: int32_t c0 = _mm256_movemask_epi8(b0);
encode.c: ^
encode.c: fatal error: too many errors emitted, stopping now [-ferror-limit=]
encode.c: 20 errors generated.

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: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encode.c: encode.c: In function ‘crypto_encode_256x2_avx’:
encode.c: encode.c:7:11: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
encode.c: __m256i a0 = _mm256_loadu_si256(0+(__m256i *) v);
encode.c: ^~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:43:0,
encode.c: from encode.c:1:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avx2intrin.h:433:1: error: inlining failed in call to always_inline ‘_mm256_movemask_epi8’: target specific option mismatch
encode.c: _mm256_movemask_epi8 (__m256i __A)
encode.c: ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:32:11: note: called from here
encode.c: ...
encode.c: __m256i a1 = _mm256_loadu_si256(1+(__m256i *) v);
encode.c: ^~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:41:0,
encode.c: from encode.c:1:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avxintrin.h:894:1: error: inlining failed in call to always_inline ‘_mm256_loadu_si256’: target specific option mismatch
encode.c: _mm256_loadu_si256 (__m256i const *__P)
encode.c: ^~~~~~~~~~~~~~~~~~
encode.c: encode.c:7:11: note: called from here
encode.c: __m256i a0 = _mm256_loadu_si256(0+(__m256i *) v);
encode.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