Implementation notes: amd64, icelake, crypto_dh/curve2251

Computer: icelake
Architecture: amd64
CPU ID: GenuineIntel-000706e5-bfebfbff
SUPERCOP version: 20200826
Operation: crypto_dh
Primitive: curve2251
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
241848011764 8 053248 4096 0T:mpfqopt-local-bin-gcc_-march=icelake-client_-mtune=icelake-client_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020082620200826
273204918552 8 061440 4096 0T:mpfqopt-local-bin-gcc_-march=icelake-client_-mtune=icelake-client_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020082620200826
287519927863 8 069632 4096 0T:mpfqopt-local-bin-gcc_-march=icelake-client_-mtune=icelake-client_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020082620200826

Compiler output

Implementation: T:mpfq
Security model: timingleaks
Compiler: clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
curve2_251.c: In file included from curve2_251.c:8:
curve2_251.c: In file included from ./field.h:1:
curve2_251.c: In file included from ./mpfq_2_251.h:5:
curve2_251.c: ./x86_64/mpfq_2_251.h:900:14: error: use of unknown builtin '__builtin_ia32_pslldqi128' [-Wimplicit-function-declaration]
curve2_251.c: r.s = t0 ^ SHLD(t1, 64);
curve2_251.c: ^
curve2_251.c: ./x86_64/mpfq_2_251.h:748:25: note: expanded from macro 'SHLD'
curve2_251.c: #define SHLD(x,r) (v2di)__builtin_ia32_pslldqi128 ((gcc43bugfix) (x),(r))
curve2_251.c: ^
curve2_251.c: ./x86_64/mpfq_2_251.h:900:14: error: invalid conversion between vector type 'v2di' (vector of 2 'uint64_t' values) and integer type 'int' of different size
curve2_251.c: r.s = t0 ^ SHLD(t1, 64);
curve2_251.c: ^~~~~~~~~~~~
curve2_251.c: ./x86_64/mpfq_2_251.h:748:19: note: expanded from macro 'SHLD'
curve2_251.c: #define SHLD(x,r) (v2di)__builtin_ia32_pslldqi128 ((gcc43bugfix) (x),(r))
curve2_251.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
curve2_251.c: ./x86_64/mpfq_2_251.h:907:14: error: use of unknown builtin '__builtin_ia32_psrldqi128' [-Wimplicit-function-declaration]
curve2_251.c: r.s = t2 ^ SHRD(t1, 64);
curve2_251.c: ^
curve2_251.c: ./x86_64/mpfq_2_251.h:749:25: note: expanded from macro 'SHRD'
curve2_251.c: #define SHRD(x,r) (v2di)__builtin_ia32_psrldqi128 ((gcc43bugfix) (x),(r))
curve2_251.c: ^
curve2_251.c: ./x86_64/mpfq_2_251.h:907:14: error: invalid conversion between vector type 'v2di' (vector of 2 'uint64_t' values) and integer type 'int' of different size
curve2_251.c: r.s = t2 ^ SHRD(t1, 64);
curve2_251.c: ^~~~~~~~~~~~
curve2_251.c: ./x86_64/mpfq_2_251.h:749:19: note: expanded from macro 'SHRD'
curve2_251.c: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:mpfq
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:mpfq
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:mpfq

Compiler output

Implementation: T:relic/amd64-avx
Security model: timingleaks
Compiler: clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
relic.c: In file included from relic.c:4:
relic.c: ./src/relic_rand.c:117:8: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
relic.c: srand(time(NULL));
relic.c: ^
relic.c: 1 warning generated.
relic_low.S: ./src/low/relic_fb_add_low.s:33:2: error: unknown directive
relic_low.S: .type fb_add1_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:34:2: error: unknown directive
relic_low.S: .size fb_add1_low,.-fb_add1_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:57:2: error: unknown directive
relic_low.S: .type fb_addn_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:58:2: error: unknown directive
relic_low.S: .size fb_addn_low,.-fb_addn_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:85:2: error: unknown directive
relic_low.S: .type fb_addd_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:86:2: error: unknown directive
relic_low.S: .size fb_addd_low,.-fb_addd_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:203:2: error: unknown directive
relic_low.S: .type fb_add2_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:204:2: error: unknown directive
relic_low.S: .size fb_add2_low,.-fb_add2_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:208:20: error: unexpected token in '.section' directive
relic_low.S: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-avx
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-avx
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-avx

Compiler output

Implementation: T:relic/amd64-avx
Security model: timingleaks
Compiler: opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
relic.c: In file included from relic.c:4:
relic.c: src/relic_rand.c: In function 'rand_init':
relic.c: src/relic_rand.c:117:8: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
relic.c: 117 | srand(time(NULL));
relic.c: | ^~~~
relic_low.S: src/low/relic_fb_add_low.s:33:2: error: unknown directive
relic_low.S: .type fb_add1_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:34:2: error: unknown directive
relic_low.S: .size fb_add1_low,.-fb_add1_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:57:2: error: unknown directive
relic_low.S: .type fb_addn_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:58:2: error: unknown directive
relic_low.S: .size fb_addn_low,.-fb_addn_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:85:2: error: unknown directive
relic_low.S: .type fb_addd_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:86:2: error: unknown directive
relic_low.S: .size fb_addd_low,.-fb_addd_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:203:2: error: unknown directive
relic_low.S: .type fb_add2_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:204:2: error: unknown directive
relic_low.S: .size fb_add2_low,.-fb_add2_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:208:20: error: unexpected token in '.section' directive
relic_low.S: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-avx
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-avx
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-avx

Compiler output

Implementation: T:relic/amd64-clmul
Security model: timingleaks
Compiler: clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
relic.c: In file included from relic.c:4:
relic.c: ./src/relic_rand.c:117:8: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
relic.c: srand(time(NULL));
relic.c: ^
relic.c: 1 warning generated.
relic_low.S: ./src/low/relic_fb_add_low.s:54:2: error: unknown directive
relic_low.S: .type fb_add1_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:55:2: error: unknown directive
relic_low.S: .size fb_add1_low,.-fb_add1_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:80:2: error: unknown directive
relic_low.S: .type fb_addn_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:81:2: error: unknown directive
relic_low.S: .size fb_addn_low,.-fb_addn_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:113:2: error: unknown directive
relic_low.S: .type fb_addd_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:114:2: error: unknown directive
relic_low.S: .size fb_addd_low,.-fb_addd_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:265:2: error: unknown directive
relic_low.S: .type fb_add2_low,@function
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:266:2: error: unknown directive
relic_low.S: .size fb_add2_low,.-fb_add2_low
relic_low.S: ^
relic_low.S: ./src/low/relic_fb_add_low.s:270:20: error: unexpected token in '.section' directive
relic_low.S: ...

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-clmul
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-clmul
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-clmul
clang -march=icelake-client -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-ssse3
clang -march=icelake-client -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-ssse3
clang -march=icelake-client -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:relic/amd64-ssse3

Compiler output

Implementation: T:relic/amd64-clmul
Security model: timingleaks
Compiler: opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
relic.c: In file included from relic.c:4:
relic.c: src/relic_rand.c: In function 'rand_init':
relic.c: src/relic_rand.c:117:8: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
relic.c: 117 | srand(time(NULL));
relic.c: | ^~~~
relic_low.S: src/low/relic_fb_add_low.s:54:2: error: unknown directive
relic_low.S: .type fb_add1_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:55:2: error: unknown directive
relic_low.S: .size fb_add1_low,.-fb_add1_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:80:2: error: unknown directive
relic_low.S: .type fb_addn_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:81:2: error: unknown directive
relic_low.S: .size fb_addn_low,.-fb_addn_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:113:2: error: unknown directive
relic_low.S: .type fb_addd_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:114:2: error: unknown directive
relic_low.S: .size fb_addd_low,.-fb_addd_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:265:2: error: unknown directive
relic_low.S: .type fb_add2_low,@function
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:266:2: error: unknown directive
relic_low.S: .size fb_add2_low,.-fb_add2_low
relic_low.S: ^
relic_low.S: src/low/relic_fb_add_low.s:270:20: error: unexpected token in '.section' directive
relic_low.S: ...

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-clmul
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-clmul
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-clmul
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-ssse3
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-ssse3
opt-local-bin-gcc -march=icelake-client -mtune=icelake-client -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:relic/amd64-ssse3