Implementation notes: amd64, h4e450, crypto_encode/857x1723

Computer: h4e450
Architecture: amd64
CPU ID: AuthenticAMD-00500f20-178bfbff
SUPERCOP version: 20200618
Operation: crypto_encode
Primitive: 857x1723
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
67972072 0 013600 760 728portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
69111920 0 011728 760 728portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
69301920 0 011728 760 728portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
69401920 0 013136 760 728portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
8403734 0 09270 752 728portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
96955459 0 017622 776 800portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
10146761 0 09657 752 768portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
10170793 0 010389 768 800portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
10412809 0 010477 768 800portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
171711634 0 013806 776 800refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
18815753 0 010536 760 728refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
18839753 0 010536 760 728refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
22791638 0 010229 768 800refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
24030579 0 09425 752 768refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
25075534 0 09046 752 728refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
266241626 0 013128 760 728refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
266951555 0 012744 760 728refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
28272663 0 010301 768 800refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409

Compiler output

Implementation: avx
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:34:9: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_loadu_si256((__m256i *) reading);
encode.c: ^
encode.c: encode.c:35:9: error: always_inline function '_mm256_add_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2583));
encode.c: ^
encode.c: encode.c:35:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2583));
encode.c: ^
encode.c: encode.c:36:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:37:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:37:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:38:13: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: y = x & _mm256_set1_epi32(65535);
encode.c: ^
encode.c: encode.c:39:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.c: x = _mm256_srli_epi32(x,16);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mullo_epi32' requires target feature 'xsave', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'xsave'
encode.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: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:34:9: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_loadu_si256((__m256i *) reading);
encode.c: ^
encode.c: encode.c:35:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2583));
encode.c: ^
encode.c: encode.c:35:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2583));
encode.c: ^
encode.c: encode.c:36:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'sse4.2'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:37:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:37:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:38:13: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'sse4.2'
encode.c: y = x & _mm256_set1_epi32(65535);
encode.c: ^
encode.c: encode.c:39:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_srli_epi32(x,16);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mullo_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_857x1723_avx' that is compiled without support for 'avx2'
encode.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: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encode.c: encode.c: In function 'crypto_encode_857x1723_avx':
encode.c: encode.c:34:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
encode.c: x = _mm256_loadu_si256((__m256i *) reading);
encode.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:41:0,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avxintrin.h:529:1: error: inlining failed in call to always_inline '_mm256_extract_epi32': target specific option mismatch
encode.c: _mm256_extract_epi32 (__m256i __X, int const __N)
encode.c: ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:49:29: note: called from here
encode.c: *((uint32 *) (out+4)) = _mm256_extract_epi32(x,6);
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:41:0,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avxintrin.h:529:1: error: inlining failed in call to always_inline '_mm256_extract_epi32': target specific option mismatch
encode.c: _mm256_extract_epi32 (__m256i __X, int const __N)
encode.c: ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:48:29: note: called from here
encode.c: *((uint32 *) (out+0)) = _mm256_extract_epi32(x,4);
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:41:0,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avxintrin.h:523:1: error: inlining failed in call to always_inline '_mm256_extractf128_si256': target specific option mismatch
encode.c: _mm256_extractf128_si256 (__m256i __X, const int __N)
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~
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