Implementation notes: amd64, scw1b63b1, crypto_scalarmult/kummer

Computer: scw1b63b1
Architecture: amd64
CPU ID: GenuineIntel-000506f1-0f8bfbff
SUPERCOP version: 20191017
Operation: crypto_scalarmult
Primitive: kummer
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
141436613207 0 032401 792 1576ref5uclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
14310109111 0 030212 816 1640ref5gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
14630824393 0 023412 816 1640ref5gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
14755589383 0 030500 816 1640ref5ugcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
150132412645 0 031833 792 1576ref5clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
150683013191 0 032297 792 1576ref5uclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
150790412455 0 030737 792 1576ref5uclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
15169124683 0 023700 816 1640ref5ugcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
153196212455 0 030737 792 1576ref5uclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
158022612645 0 031745 792 1576ref5clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
15817269349 0 027625 792 1576ref5clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
15830689349 0 027625 792 1576ref5clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
15940944440 0 021819 784 1576ref5uclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
16002764393 0 023004 816 1640ref5gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
16114804464 0 021811 784 1576ref5clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121720191017
16124104153 0 021484 808 1608ref5gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
16261464425 0 021756 808 1608ref5ugcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017
16591224686 0 023308 816 1640ref5ugcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121720191017

Test failure

Implementation: avx
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111

Number of similar (compiler,implementation) pairs: 10, 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
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2

Compiler output

Implementation: avx
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(znegate.o): relocation R_X86_64_32S against symbol `minusz' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe4x3limb_freeze.o): relocation R_X86_64_32S against symbol `_2pm43' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe_mul.o): relocation R_X86_64_32S against symbol `mask63' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe_nsquare.o): relocation R_X86_64_32S against symbol `mask63' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(ladder.o): relocation R_X86_64_32S against symbol `_2p22' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: final link failed: Nonrepresentable section on output
try.c: collect2: error: ld returned 1 exit status

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: avx2
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(znegate.o): relocation R_X86_64_32S against symbol `minusz' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe4x3limb_freeze.o): relocation R_X86_64_32S against symbol `_2pm43' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe_mul.o): relocation R_X86_64_32S against symbol `mask63' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(gfe_nsquare.o): relocation R_X86_64_32S against symbol `mask63' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: crypto_scalarmult_kummer.a(ladder.o): relocation R_X86_64_32S against symbol `_two' can not be used when making a shared object; recompile with -fPIC
try.c: /usr/bin/ld: final link failed: Nonrepresentable section on output
try.c: collect2: error: ld returned 1 exit status

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

Compiler output

Implementation: avx2int
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
smult.c: smult.c:36:8: error: always_inline function '_mm256_mul_epi32' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t0 = _mm256_mul_epi32(a->v[0],*b);
smult.c: ^
smult.c: smult.c:37:8: error: always_inline function '_mm256_mul_epi32' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t1 = _mm256_mul_epi32(a->v[1],*b);
smult.c: ^
smult.c: smult.c:38:10: error: always_inline function '_mm256_add_epi64' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t1 = _mm256_add_epi64(t1,_mm256_srli_epi64(t0,26)); t0 &= mask26;
smult.c: ^
smult.c: smult.c:38:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: ...
smult.c: smult.c:44:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t4 = _mm256_add_epi64(t4,_mm256_srli_epi64(t3,25)); t3 &= mask25;
smult.c: ^
smult.c: smult.c:45:10: error: always_inline function '_mm256_add_epi64' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t2 = _mm256_add_epi64(t2,_mm256_srli_epi64(t1,25)); t1 &= mask25;
smult.c: ^
smult.c: smult.c:45:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'xsave', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'xsave'
smult.c: t2 = _mm256_add_epi64(t2,_mm256_srli_epi64(t1,25)); t1 &= mask25;
smult.c: ^
smult.c: 15 errors generated.

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

Compiler output

Implementation: avx2int
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
smult.c: smult.c:36:8: error: always_inline function '_mm256_mul_epi32' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t0 = _mm256_mul_epi32(a->v[0],*b);
smult.c: ^
smult.c: smult.c:37:8: error: always_inline function '_mm256_mul_epi32' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t1 = _mm256_mul_epi32(a->v[1],*b);
smult.c: ^
smult.c: smult.c:38:10: error: always_inline function '_mm256_add_epi64' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t1 = _mm256_add_epi64(t1,_mm256_srli_epi64(t0,26)); t0 &= mask26;
smult.c: ^
smult.c: smult.c:38:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: ...
smult.c: smult.c:44:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t4 = _mm256_add_epi64(t4,_mm256_srli_epi64(t3,25)); t3 &= mask25;
smult.c: ^
smult.c: smult.c:45:10: error: always_inline function '_mm256_add_epi64' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t2 = _mm256_add_epi64(t2,_mm256_srli_epi64(t1,25)); t1 &= mask25;
smult.c: ^
smult.c: smult.c:45:30: error: always_inline function '_mm256_srli_epi64' requires target feature 'sse4.2', but would be inlined into function 'crypto_scalarmult_kummer_avx2int_gfe4x_mulconst' that is compiled without support for 'sse4.2'
smult.c: t2 = _mm256_add_epi64(t2,_mm256_srli_epi64(t1,25)); t1 &= mask25;
smult.c: ^
smult.c: 15 errors generated.

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

Compiler output

Implementation: avx2int
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
smult.c: smult.c: In function ‘crypto_scalarmult_kummer_avx2int_gfe4x_mulconst’:
smult.c: smult.c:36:6: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
smult.c: t0 = _mm256_mul_epi32(a->v[0],*b);
smult.c: ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
smult.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:43:0,
smult.c: from gfe4x.h:5,
smult.c: from smult.c:3:
smult.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avx2intrin.h:126:1: error: inlining failed in call to always_inline ‘_mm256_add_epi64’: target specific option mismatch
smult.c: _mm256_add_epi64 (__m256i __A, __m256i __B)
smult.c: ^~~~~~~~~~~~~~~~
smult.c: ...
smult.c: ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
smult.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:43:0,
smult.c: from gfe4x.h:5,
smult.c: from smult.c:3:
smult.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avx2intrin.h:524:1: error: inlining failed in call to always_inline ‘_mm256_mul_epi32’: target specific option mismatch
smult.c: _mm256_mul_epi32 (__m256i __X, __m256i __Y)
smult.c: ^~~~~~~~~~~~~~~~
smult.c: smult.c:36:6: note: called from here
smult.c: t0 = _mm256_mul_epi32(a->v[0],*b);
smult.c: ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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