Implementation notes: amd64, h6sandy, crypto_core/invsntrup761

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_core
Primitive: invsntrup761
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
124864482998 0 016647 812 992refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
307240452145 0 015549 852 928refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
308299252145 0 017493 852 928refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
372471582885 0 016877 852 928refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
404827531171 0 012829 852 928refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
405428021058 0 012383 844 928refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
418173491041 0 013479 812 992refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
455359391148 0 013220 796 992refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
45776526939 0 012014 796 960refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212

Compiler output

Implementation: avx
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
recip.c: recip.c:96:23: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: __m256i f0vecqinv = _mm256_mullo_epi16(f0vec,qinvvec);
recip.c: ^
recip.c: recip.c:97:23: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: __m256i g0vecqinv = _mm256_mullo_epi16(g0vec,qinvvec);
recip.c: ^
recip.c: recip.c:103:21: error: always_inline function '_mm256_blendv_epi8' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: __m256i finew = _mm256_blendv_epi8(fi,gi,maskvec);
recip.c: ^
recip.c: recip.c:104:21: error: always_inline function '_mm256_blendv_epi8' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: __m256i ginew = _mm256_blendv_epi8(gi,fi,maskvec);
recip.c: ^
recip.c: recip.c:105:13: error: always_inline function '_mm256_sub_epi16' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: ginew = _mm256_sub_epi16(montproduct(ginew,f0vec,f0vecqinv),montproduct(finew,g0vec,g0vecqinv));
recip.c: ^
recip.c: recip.c:86:7: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'montproduct' that is compiled without support for 'avx2'
recip.c: d = _mm256_mullo_epi16(x,yqinv);
recip.c: ^
recip.c: recip.c:87:8: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'montproduct' that is compiled without support for 'avx2'
recip.c: hi = _mm256_mulhi_epi16(x,y);
recip.c: ^
recip.c: recip.c:88:7: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'montproduct' that is compiled without support for 'avx2'
recip.c: e = _mm256_mulhi_epi16(d,qvec);
recip.c: ^
recip.c: recip.c:89:10: error: always_inline function '_mm256_sub_epi16' requires target feature 'avx2', but would be inlined into function 'montproduct' that is compiled without support for 'avx2'
recip.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
recip.c: recip.c:94:19: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx'
recip.c: __m256i f0vec = _mm256_set1_epi16(f0);
recip.c: ^
recip.c: recip.c:94:19: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
recip.c: recip.c:95:19: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx'
recip.c: __m256i g0vec = _mm256_set1_epi16(g0);
recip.c: ^
recip.c: recip.c:95:19: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
recip.c: recip.c:96:48: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx'
recip.c: __m256i f0vecqinv = _mm256_mullo_epi16(f0vec,qinvvec);
recip.c: ^
recip.c: recip.c:80:17: note: expanded from macro 'qinvvec'
recip.c: #define qinvvec _mm256_set1_epi16(qinv)
recip.c: ^
recip.c: recip.c:96:48: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
recip.c: recip.c:80:17: note: expanded from macro 'qinvvec'
recip.c: #define qinvvec _mm256_set1_epi16(qinv)
recip.c: ^
recip.c: recip.c:96:23: error: always_inline function '_mm256_mullo_epi16' requires target feature 'avx2', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx2'
recip.c: __m256i f0vecqinv = _mm256_mullo_epi16(f0vec,qinvvec);
recip.c: ^
recip.c: recip.c:96:23: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
recip.c: recip.c:97:48: error: always_inline function '_mm256_set1_epi16' requires target feature 'avx', but would be inlined into function 'vectormodq_swapeliminate' that is compiled without support for 'avx'
recip.c: __m256i g0vecqinv = _mm256_mullo_epi16(g0vec,qinvvec);
recip.c: ^
recip.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
recip.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
recip.c: from recip.c:1:
recip.c: recip.c: In function 'montproduct':
recip.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:808:1: error: inlining failed in call to 'always_inline' '_mm256_sub_epi16': target specific option mismatch
recip.c: 808 | _mm256_sub_epi16 (__m256i __A, __m256i __B)
recip.c: | ^~~~~~~~~~~~~~~~
recip.c: recip.c:89:10: note: called from here
recip.c: 89 | return _mm256_sub_epi16(hi,e);
recip.c: | ^~~~~~~~~~~~~~~~~~~~~~
recip.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
recip.c: from recip.c:1:
recip.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:546:1: error: inlining failed in call to 'always_inline' '_mm256_mulhi_epi16': target specific option mismatch
recip.c: 546 | _mm256_mulhi_epi16 (__m256i __A, __m256i __B)
recip.c: | ^~~~~~~~~~~~~~~~~~
recip.c: recip.c:88:7: note: called from here
recip.c: 88 | e = _mm256_mulhi_epi16(d,qvec);
recip.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~
recip.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
recip.c: from recip.c:1:
recip.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:546:1: error: inlining failed in call to 'always_inline' '_mm256_mulhi_epi16': target specific option mismatch
recip.c: 546 | _mm256_mulhi_epi16 (__m256i __A, __m256i __B)
recip.c: | ^~~~~~~~~~~~~~~~~~
recip.c: recip.c:87:8: note: called from here
recip.c: 87 | hi = _mm256_mulhi_epi16(x,y);
recip.c: | ^~~~~~~~~~~~~~~~~~~~~~~
recip.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

Compiler output

Implementation: jumpdivsteps
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
avx-768.c: avx-768.c:1406:12: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_invsntrup761_jumpdivsteps_constbranchindex_crt768' that is compiled without support for 'avx2'
avx-768.c: g[0] = _mm256_mulhi_epi16(f[0],qrecip_769_x16);
avx-768.c: ^
avx-768.c: avx-768.c:1407:12: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_invsntrup761_jumpdivsteps_constbranchindex_crt768' that is compiled without support for 'avx2'
avx-768.c: g[1] = _mm256_mulhi_epi16(f[1],qrecip_7681_x16);
avx-768.c: ^
avx-768.c: avx-768.c:1408:12: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_invsntrup761_jumpdivsteps_constbranchindex_crt768' that is compiled without support for 'avx2'
avx-768.c: g[2] = _mm256_mulhi_epi16(f[2],qrecip_10753_x16);
avx-768.c: ^
avx-768.c: avx-768.c:1412:12: error: always_inline function '_mm256_srai_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_core_invsntrup761_jumpdivsteps_constbranchindex_crt768' that is compiled without support for 'avx2'
avx-768.c: g[0] = _mm256_srai_epi16(g[0],8);
avx-768.c: ^
avx-768.c: 4 errors generated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE jumpdivsteps
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE jumpdivsteps
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE jumpdivsteps
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE jumpdivsteps

Compiler output

Implementation: jumpdivsteps
Security model: constbranchindex
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
avx-768.c: avx-768.c:544:36: error: invalid output size for constraint '+x'
avx-768.c: __asm__("vpsubw %1,%0,%0" : "+x"(a),"+x"(b));
avx-768.c: ^
avx-768.c: avx-768.c:550:36: error: invalid output size for constraint '+x'
avx-768.c: __asm__("vpaddw %1,%0,%0" : "+x"(a),"+x"(b));
avx-768.c: ^
avx-768.c: 2 errors generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE jumpdivsteps

Compiler output

Implementation: jumpdivsteps
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
avx-768.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
avx-768.c: from avx-768.c:4:
avx-768.c: avx-768.c: In function 'reduce_x16':
avx-768.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:553:1: error: inlining failed in call to 'always_inline' '_mm256_mullo_epi16': target specific option mismatch
avx-768.c: 553 | _mm256_mullo_epi16 (__m256i __A, __m256i __B)
avx-768.c: | ^~~~~~~~~~~~~~~~~~
avx-768.c: avx-768.c:558:7: note: called from here
avx-768.c: 558 | y = _mm256_mullo_epi16(y,q_x16);
avx-768.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
avx-768.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
avx-768.c: from avx-768.c:4:
avx-768.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:531:1: error: inlining failed in call to 'always_inline' '_mm256_mulhrs_epi16': target specific option mismatch
avx-768.c: 531 | _mm256_mulhrs_epi16 (__m256i __X, __m256i __Y)
avx-768.c: | ^~~~~~~~~~~~~~~~~~~
avx-768.c: avx-768.c:557:7: note: called from here
avx-768.c: 557 | y = _mm256_mulhrs_epi16(y,qshift_x16);
avx-768.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avx-768.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
avx-768.c: from avx-768.c:4:
avx-768.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:546:1: error: inlining failed in call to 'always_inline' '_mm256_mulhi_epi16': target specific option mismatch
avx-768.c: 546 | _mm256_mulhi_epi16 (__m256i __A, __m256i __B)
avx-768.c: | ^~~~~~~~~~~~~~~~~~
avx-768.c: avx-768.c:556:15: note: called from here
avx-768.c: 556 | __m256i y = _mm256_mulhi_epi16(x,qrecip_x16);
avx-768.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avx-768.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE jumpdivsteps
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE jumpdivsteps
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE jumpdivsteps
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE jumpdivsteps