Implementation notes: amd64, gcc123, crypto_encode/1277x2627round

Computer: gcc123
Architecture: amd64
CPU ID: GenuineIntel-000206d7-bfebfbff
SUPERCOP version: 20220213
Operation: crypto_encode
Primitive: 1277x2627round
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
4383406 0 014519 828 912refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
4904874 0 016370 812 912refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
4908874 0 018066 812 912refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
4917874 0 016370 812 912refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
4955506 0 015658 812 880refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
7152110 0 012080 804 880refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
7174138 0 012742 820 912refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
7214117 0 012582 820 912refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
7343117 0 011674 804 912refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:36:9: error: always_inline function '_mm256_mulhrs_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_mulhrs_epi16(x,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:37:10: error: always_inline function '_mm256_mulhrs_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_mulhrs_epi16(x2,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:38:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_add_epi16(x,x));
encode.c: ^
encode.c: encode.c:38:28: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_add_epi16(x,x));
encode.c: ^
encode.c: encode.c:39:10: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_add_epi16(x2,x2));
encode.c: ^
encode.c: encode.c:39:30: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_add_epi16(x2,x2));
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:41:10: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:44:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_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_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_loadu_si256((__m256i *) (reading+0));
encode.c: ^
encode.c: encode.c:35:10: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x2 = _mm256_loadu_si256((__m256i *) (reading+16));
encode.c: ^
encode.c: encode.c:36:9: error: always_inline function '_mm256_mulhrs_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_mulhrs_epi16(x,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:36:31: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x = _mm256_mulhrs_epi16(x,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:37:10: error: always_inline function '_mm256_mulhrs_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_mulhrs_epi16(x2,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:37:33: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: x2 = _mm256_mulhrs_epi16(x2,_mm256_set1_epi16(10923));
encode.c: ^
encode.c: encode.c:38:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_add_epi16(x,x));
encode.c: ^
encode.c: encode.c:38:28: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_add_epi16(x,x));
encode.c: ^
encode.c: encode.c:39:10: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_1277x2627round_avx_constbranchindex' 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: 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/8/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: encode.c: In function 'crypto_encode_1277x2627round_avx_constbranchindex':
encode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:1068:1: error: inlining failed in call to always_inline '_mm256_permute4x64_epi64': target specific option mismatch
encode.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:63:10: note: called from here
encode.c: x2 = _mm256_permute4x64_epi64(x2,0xd8);
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:1068:1: error: inlining failed in call to always_inline '_mm256_permute4x64_epi64': target specific option mismatch
encode.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:62:9: note: called from here
encode.c: x = _mm256_permute4x64_epi64(x,0xd8);
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:588:1: error: inlining failed in call to always_inline '_mm256_shuffle_epi8': target specific option mismatch
encode.c: _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
encode.c: ^~~~~~~~~~~~~~~~~~~
encode.c: encode.c:58:10: note: called from here
encode.c: x2 = _mm256_shuffle_epi8(x2,_mm256_set_epi8(
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