Implementation notes: amd64, hedera, crypto_core/scale3sntrup857

Computer: hedera
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20210326
Operation: crypto_core
Primitive: scale3sntrup857
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
842321 0 013919 828 944refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
858587 0 015402 812 944refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
858587 0 017098 812 944refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
858587 0 015402 812 944refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
865919 0 015378 812 912refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
3872188 0 012238 820 944refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
3926183 0 012094 820 944refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114
4851178 0 011440 804 912refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021012620210114
9160184 0 011070 812 944refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021012620210114

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
core.c: core.c:27:11: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_mullo_epi16(x,_mm256_set1_epi16(3));
core.c: ^
core.c: core.c:28:11: error: always_inline function '_mm256_sub_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_sub_epi16(x,_mm256_set1_epi16((q+1)/2));
core.c: ^
core.c: core.c:29:14: error: always_inline function '_mm256_srai_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: xneg = _mm256_srai_epi16(x,15);
core.c: ^
core.c: core.c:30:11: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(q)&xneg);
core.c: ^
core.c: core.c:31:14: error: always_inline function '_mm256_srai_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: xneg = _mm256_srai_epi16(x,15);
core.c: ^
core.c: core.c:32:11: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(q)&xneg);
core.c: ^
core.c: core.c:33:11: error: always_inline function '_mm256_sub_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_sub_epi16(x,_mm256_set1_epi16((q-1)/2));
core.c: ^
core.c: 7 errors generated.

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
core.c: core.c:20:18: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx'
core.c: __m256i save = _mm256_loadu_si256((__m256i *) (inbytes+2*i));
core.c: ^
core.c: core.c:25:19: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx'
core.c: __m256i x = _mm256_loadu_si256((__m256i *) inbytes);
core.c: ^
core.c: core.c:27:11: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_mullo_epi16(x,_mm256_set1_epi16(3));
core.c: ^
core.c: core.c:27:32: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx'
core.c: x = _mm256_mullo_epi16(x,_mm256_set1_epi16(3));
core.c: ^
core.c: core.c:28:11: error: always_inline function '_mm256_sub_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_sub_epi16(x,_mm256_set1_epi16((q+1)/2));
core.c: ^
core.c: core.c:28:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx'
core.c: x = _mm256_sub_epi16(x,_mm256_set1_epi16((q+1)/2));
core.c: ^
core.c: core.c:29:14: error: always_inline function '_mm256_srai_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: xneg = _mm256_srai_epi16(x,15);
core.c: ^
core.c: core.c:30:11: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx2'
core.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(q)&xneg);
core.c: ^
core.c: core.c:30:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_core_scale3sntrup857_avx_constbranchindex' that is compiled without support for 'avx'
core.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
core.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
core.c: from core.c:1:
core.c: core.c: In function 'crypto_core_scale3sntrup857_avx_constbranchindex':
core.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:808:1: error: inlining failed in call to always_inline '_mm256_sub_epi16': target specific option mismatch
core.c: _mm256_sub_epi16 (__m256i __A, __m256i __B)
core.c: ^~~~~~~~~~~~~~~~
core.c: core.c:33:11: note: called from here
core.c: x = _mm256_sub_epi16(x,_mm256_set1_epi16((q-1)/2));
core.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
core.c: from core.c:1:
core.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:112:1: error: inlining failed in call to always_inline '_mm256_add_epi16': target specific option mismatch
core.c: _mm256_add_epi16 (__m256i __A, __m256i __B)
core.c: ^~~~~~~~~~~~~~~~
core.c: core.c:32:11: note: called from here
core.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(q)&xneg);
core.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
core.c: from core.c:1:
core.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:710:1: error: inlining failed in call to always_inline '_mm256_srai_epi16': target specific option mismatch
core.c: _mm256_srai_epi16 (__m256i __A, int __B)
core.c: ^~~~~~~~~~~~~~~~~
core.c: core.c:31:14: note: called from here
core.c: xneg = _mm256_srai_epi16(x,15);
core.c: ^~~~~~~~~~~~~~~~~~~~~~~
core.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