Implementation notes: amd64, gcc123, crypto_core/weightsntrup1013

Computer: gcc123
Architecture: amd64
CPU ID: GenuineIntel-000206d7-bfebfbff
SUPERCOP version: 20220213
Operation: crypto_core
Primitive: weightsntrup1013
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
283250 0 013759 828 944refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021053020210529
401541 0 015266 812 944refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529
401541 0 016962 812 944refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529
401541 0 015266 812 944refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529
1203709 0 015066 812 912refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529
2123103 0 012062 820 944refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021053020210529
2129106 0 011974 820 944refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021053020210529
214397 0 011280 804 912refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529
242397 0 010834 804 944refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021053020210529

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
weight.c: weight.c:26:11: error: always_inline function '_mm256_add_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_add_epi8(sum,bits);
weight.c: ^
weight.c: weight.c:31:11: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sumhi = _mm256_srli_epi16(sum,8);
weight.c: ^
weight.c: weight.c:33:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_add_epi16(sum,sumhi);
weight.c: ^
weight.c: weight.c:36:9: error: always_inline function '_mm256_hadd_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_hadd_epi16(sum,sum);
weight.c: ^
weight.c: weight.c:38:9: error: always_inline function '_mm256_hadd_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_hadd_epi16(sum,sum);
weight.c: ^
weight.c: weight.c:40:9: error: always_inline function '_mm256_hadd_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_hadd_epi16(sum,sum);
weight.c: ^
weight.c: 6 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
weight.c: weight.c:20:9: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx'
weight.c: sum = _mm256_loadu_si256((__m256i *) (in+p-32));
weight.c: ^
weight.c: weight.c:21:10: error: always_inline function '_mm256_set_epi8' requires target feature 'avx', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx'
weight.c: sum &= endingmask;
weight.c: ^
weight.c: ./params.h:2:20: note: expanded from macro 'endingmask'
weight.c: #define endingmask _mm256_set_epi8(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0)
weight.c: ^
weight.c: weight.c:24:20: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx'
weight.c: __m256i bits = _mm256_loadu_si256((__m256i *) in);
weight.c: ^
weight.c: weight.c:25:13: error: always_inline function '_mm256_set1_epi8' requires target feature 'avx', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx'
weight.c: bits &= _mm256_set1_epi8(1);
weight.c: ^
weight.c: weight.c:26:11: error: always_inline function '_mm256_add_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sum = _mm256_add_epi8(sum,bits);
weight.c: ^
weight.c: weight.c:31:11: error: always_inline function '_mm256_srli_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.c: sumhi = _mm256_srli_epi16(sum,8);
weight.c: ^
weight.c: weight.c:32:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx'
weight.c: sum &= _mm256_set1_epi16(0xff);
weight.c: ^
weight.c: weight.c:33:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_weightsntrup1013_avx_constbranchindex' that is compiled without support for 'avx2'
weight.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
weight.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
weight.c: from weight.c:1:
weight.c: weight.c: In function 'crypto_core_weightsntrup1013_avx_constbranchindex':
weight.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:105:1: error: inlining failed in call to always_inline '_mm256_add_epi8': target specific option mismatch
weight.c: _mm256_add_epi8 (__m256i __A, __m256i __B)
weight.c: ^~~~~~~~~~~~~~~
weight.c: weight.c:26:11: note: called from here
weight.c: sum = _mm256_add_epi8(sum,bits);
weight.c: ^~~~~~~~~~~~~~~~~~~~~~~~~
weight.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
weight.c: from weight.c:1:
weight.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:105:1: error: inlining failed in call to always_inline '_mm256_add_epi8': target specific option mismatch
weight.c: _mm256_add_epi8 (__m256i __A, __m256i __B)
weight.c: ^~~~~~~~~~~~~~~
weight.c: weight.c:26:11: note: called from here
weight.c: sum = _mm256_add_epi8(sum,bits);
weight.c: ^~~~~~~~~~~~~~~~~~~~~~~~~
weight.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:43,
weight.c: from weight.c:1:
weight.c: /usr/lib/gcc/x86_64-linux-gnu/8/include/avx2intrin.h:287:1: error: inlining failed in call to always_inline '_mm256_hadd_epi16': target specific option mismatch
weight.c: _mm256_hadd_epi16 (__m256i __X, __m256i __Y)
weight.c: ^~~~~~~~~~~~~~~~~
weight.c: weight.c:40:9: note: called from here
weight.c: sum = _mm256_hadd_epi16(sum,sum);
weight.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~
weight.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