Implementation notes: amd64, hydra5, crypto_encode/761x1531

Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240107
Operation: crypto_encode
Primitive: 761x1531
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
33882169 0 014576 860 896portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
33912169 0 014576 860 896portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
34051569 0 013080 860 896portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
43605307 0 018165 804 960portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
5197788 0 012333 804 960portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
5232677 0 010464 780 928portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
5628757 0 011524 796 960portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
5710572 0 09994 852 896portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
5732639 0 010816 860 896portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
107881511 0 013896 860 896refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
108421511 0 013008 860 896refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
109431511 0 013896 860 896refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
111481781 0 014645 804 960refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
13557850 0 012381 804 960refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
15483778 0 010504 780 928refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
15498559 0 010696 860 896refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
155521037 0 010450 852 896refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
15838823 0 011540 796 960refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212

Compiler output

Implementation: avx
Security model: constbranchindex
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 'avx', but would be inlined into function 'crypto_encode_761x1531_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_loadu_si256((__m256i *) reading);
encode.c: ^
encode.c: encode.c:34:9: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:35:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_encode_761x1531_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2295));
encode.c: ^
encode.c: encode.c:35:28: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
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_761x1531_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2295));
encode.c: ^
encode.c: encode.c:35:9: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:36:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_encode_761x1531_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:36:10: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:37:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_encode_761x1531_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:37:30: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
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_761x1531_avx_constbranchindex' 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:9: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:38:13: error: always_inline function '_mm256_set1_epi32' requires target feature 'avx', but would be inlined into function 'crypto_encode_761x1531_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: ...

Number of similar (compiler,implementation) pairs: 5, 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
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
encode.c: encode.c: In function 'crypto_encode_761x1531_avx_constbranchindex':
encode.c: encode.c:34:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
encode.c: 34 | x = _mm256_loadu_si256((__m256i *) reading);
encode.c: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avxintrin.h:536:1: error: inlining failed in call to 'always_inline' '_mm256_extract_epi32': target specific option mismatch
encode.c: 536 | _mm256_extract_epi32 (__m256i __X, int const __N)
encode.c: | ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:49:29: note: called from here
encode.c: 49 | *((uint32 *) (out+4)) = _mm256_extract_epi32(x,6);
encode.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avxintrin.h:536:1: error: inlining failed in call to 'always_inline' '_mm256_extract_epi32': target specific option mismatch
encode.c: 536 | _mm256_extract_epi32 (__m256i __X, int const __N)
encode.c: | ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:48:29: note: called from here
encode.c: 48 | *((uint32 *) (out+0)) = _mm256_extract_epi32(x,4);
encode.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avxintrin.h:530:1: error: inlining failed in call to 'always_inline' '_mm256_extractf128_si256': target specific option mismatch
encode.c: 530 | _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