Implementation notes: amd64, h6sandy, crypto_encode/653x1541

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_encode
Primitive: 653x1541
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
17732067 0 015819 844 896portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
18021596 0 013411 844 896portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
20412300 0 014613 804 960portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
21012047 0 014451 844 896portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
3130702 0 010811 844 896portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
3131622 0 010341 836 896portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
3298797 0 011596 796 960portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
3402744 0 011845 804 960portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
3426703 0 010520 780 928portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
62241290 0 013581 804 960refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
68441783 0 013571 844 896refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
69121553 0 013939 844 896refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
69471783 0 015515 844 896refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
8842856 0 011909 804 960refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
8893826 0 011580 796 960refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212
9111557 0 010627 844 896refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
9662632 0 010325 836 896refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121220231212
9897778 0 010528 780 928refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121220231212

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
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_653x1541_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:39:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx_constbranchindex' 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_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_mullo_epi32(x,_mm256_set1_epi32(1541));
encode.c: ^
encode.c: encode.c:41:9: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi32(y,x);
encode.c: ^
encode.c: encode.c:42:9: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_shuffle_epi8(x,_mm256_set_epi8(
encode.c: ^
encode.c: encode.c:46:9: error: '__builtin_ia32_permdi256' needs target feature avx2
encode.c: x = _mm256_permute4x64_epi64(x,0xd8);
encode.c: ^
encode.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:818:13: note: expanded from macro '_mm256_permute4x64_epi64'
encode.c: ((__m256i)__builtin_ia32_permdi256((__v4di)(__m256i)(V), (int)(M)))
encode.c: ^
encode.c: encode.c:71:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
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: constbranchindex
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 'avx', but would be inlined into function 'crypto_encode_653x1541_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_653x1541_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
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_653x1541_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
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_653x1541_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_653x1541_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_653x1541_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_653x1541_avx_constbranchindex' that is compiled without support for 'avx'
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: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c: from encode.c:3:
encode.c: encode.c: In function 'crypto_encode_653x1541_avx_constbranchindex':
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:1071:1: error: inlining failed in call to 'always_inline' '_mm256_permute4x64_epi64': target specific option mismatch
encode.c: 1071 | _mm256_permute4x64_epi64 (__m256i __X, const int __M)
encode.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:46:9: note: called from here
encode.c: 46 | x = _mm256_permute4x64_epi64(x,0xd8);
encode.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:588:1: error: inlining failed in call to 'always_inline' '_mm256_shuffle_epi8': target specific option mismatch
encode.c: 588 | _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
encode.c: | ^~~~~~~~~~~~~~~~~~~
encode.c: encode.c:42:9: note: called from here
encode.c: 42 | x = _mm256_shuffle_epi8(x,_mm256_set_epi8(
encode.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: 43 | 12,8,4,0,12,8,4,0,14,13,10,9,6,5,2,1,
encode.c: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: 44 | 12,8,4,0,12,8,4,0,14,13,10,9,6,5,2,1
encode.c: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: 45 | ));
encode.c: | ~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c: from encode.c:3:
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