Implementation notes: amd64, gcc14, crypto_encode/1277x2627

Computer: gcc14
Architecture: amd64
CPU ID: GenuineIntel-00010676-bfebfbff
SUPERCOP version: 20220506
Operation: crypto_encode
Primitive: 1277x2627
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
49673113 0 015798 844 912portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
67311033 0 011827 820 880portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
67581033 0 012763 820 880portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
67831091 0 012699 820 880portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
67841033 0 011827 820 880portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
6881706 0 010357 812 880portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
7748760 0 011485 836 912portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
7801738 0 010329 820 912portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
7879792 0 011269 836 912portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
15317972 0 013654 844 912refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
19362590 0 011045 836 912refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
19711574 0 011293 836 912refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021052920210529
19848938 0 012635 820 880refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
19917938 0 011699 820 880refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
19925938 0 011699 820 880refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
20506986 0 012555 820 880refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
22906530 0 010149 812 880refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021052920210529
23354516 0 010065 820 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:34:9: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
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 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x2 = _mm256_loadu_si256((__m256i *) (reading+16));
encode.c: ^
encode.c: encode.c:36:9: error: always_inline function '_mm256_add_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:36:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:37:10: error: always_inline function '_mm256_add_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_set1_epi16(3939));
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_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:38:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:39:11: error: always_inline function '_mm256_set1_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'xsave'
encode.c: x2 &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' 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: 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 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
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 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x2 = _mm256_loadu_si256((__m256i *) (reading+16));
encode.c: ^
encode.c: encode.c:36:9: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:36:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:37:10: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_set1_epi16(3939));
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_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x2 = _mm256_add_epi16(x2,_mm256_set1_epi16(3939));
encode.c: ^
encode.c: encode.c:38:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:39:11: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
encode.c: x2 &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_1277x2627_avx_constbranchindex' that is compiled without support for 'sse4.2'
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: encode.c: In function 'crypto_encode_1277x2627_avx_constbranchindex':
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+0));
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:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avxintrin.h:900:1: error: inlining failed in call to always_inline '_mm256_storeu_si256': target specific option mismatch
encode.c: _mm256_storeu_si256 (__m256i *__P, __m256i __A)
encode.c: ^~~~~~~~~~~~~~~~~~~
encode.c: encode.c:61:5: note: called from here
encode.c: _mm256_storeu_si256((__m256i *) out,_mm256_permute2f128_si256(x,x2,0x20));
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:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avxintrin.h:671:1: error: inlining failed in call to always_inline '_mm256_permute2f128_si256': target specific option mismatch
encode.c: _mm256_permute2f128_si256 (__m256i __X, __m256i __Y, const int __C)
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:61:5: note: called from here
encode.c: _mm256_storeu_si256((__m256i *) out,_mm256_permute2f128_si256(x,x2,0x20));
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:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avxintrin.h:900:1: error: inlining failed in call to always_inline '_mm256_storeu_si256': target specific option mismatch
encode.c: _mm256_storeu_si256 (__m256i *__P, __m256i __A)
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