Implementation notes: amd64, alder2,1f626960,3300000, crypto_dh/ed521gs

Computer: alder2,1f626960,3300000
Microarchitecture: amd64; Gracemont (906a4-20)
Architecture: amd64
CPU ID: GenuineIntel-000906a4-20-bfebfbff
SUPERCOP version: 20240808
Operation: crypto_dh
Primitive: ed521gs
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
533966610939 0 029602 788 1752T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
731014229623 0 051376 820 1752T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
731610040087 0 061720 820 1720T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
735016930279 0 052176 820 1752T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
750086312241 0 031878 812 1720T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
755658814527 0 033670 812 1720T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
765662620878 0 043698 796 1784T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
782168617096 0 037890 796 1784T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
935756016477 0 036736 788 1784T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716

Compiler output


dh.c: dh.c:740:27: warning: unused variable 'S' [-Wunused-variable]
dh.c:         ECp W[1+(1<<(WINDOW-1))],S[2],Q;
dh.c:                                  ^
dh.c: dh.c:741:8: warning: unused variable 'j' [-Wunused-variable]
dh.c:         int i,j,m;
dh.c:               ^
dh.c: dh.c:741:10: warning: unused variable 'm' [-Wunused-variable]
dh.c:         int i,j,m;
dh.c:                 ^
dh.c: dh.c:763:8: warning: unused variable 'x' [-Wunused-variable]
dh.c:         int i,x,w[PANES];
dh.c:               ^
dh.c: dh.c:814:8: warning: unused variable 'x' [-Wunused-variable]
dh.c:         int i,x,w[PANES];
dh.c:               ^
dh.c: dh.c:815:14: warning: unused variable 'sh' [-Wunused-variable]
dh.c:         signed char sh;
dh.c:                     ^
dh.c: dh.c:23:21: warning: unused variable 'bot52bits' [-Wunused-const-variable]
dh.c: static const type64 bot52bits = 0xfffffffffffff;
dh.c:                     ^
dh.c: 7 warnings generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


dh.c: dh.c: In function 'mul':
dh.c: dh.c:741:10: warning: unused variable 'm' [-Wunused-variable]
dh.c:   741 |  int i,j,m;
dh.c:       |          ^
dh.c: dh.c:741:8: warning: unused variable 'j' [-Wunused-variable]
dh.c:   741 |  int i,j,m;
dh.c:       |        ^
dh.c: dh.c:740:27: warning: unused variable 'S' [-Wunused-variable]
dh.c:   740 |  ECp W[1+(1<<(WINDOW-1))],S[2],Q;
dh.c:       |                           ^
dh.c: dh.c: In function 'crypto_dh_ed521gs_ref_timingleaks_keypair':
dh.c: dh.c:763:8: warning: unused variable 'x' [-Wunused-variable]
dh.c:   763 |  int i,x,w[PANES];
dh.c:       |        ^
dh.c: dh.c: In function 'crypto_dh_ed521gs_ref_timingleaks':
dh.c: dh.c:815:14: warning: unused variable 'sh' [-Wunused-variable]
dh.c:   815 |  signed char sh;
dh.c:       |              ^~
dh.c: dh.c:814:8: warning: unused variable 'x' [-Wunused-variable]
dh.c:   814 |  int i,x,w[PANES];
dh.c:       |        ^
dh.c: At top level:
dh.c: dh.c:23:21: warning: 'bot52bits' defined but not used [-Wunused-const-variable=]
dh.c:    23 | static const type64 bot52bits = 0xfffffffffffff;
dh.c:       |                     ^~~~~~~~~

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Namespace violations


dh.o add_1 T
dh.o add_2 T
dh.o copy T
dh.o double_1 T
dh.o double_2 T
dh.o double_3 T
dh.o fe_cmov T
dh.o gadd T
dh.o gcopy T
dh.o gdec T
dh.o ginv T
dh.o gmul T
dh.o gmul2 T
dh.o gmuli T
dh.o gsb2 T
dh.o gsqr T
dh.o gsqr2 T
dh.o gsub T
dh.o inf T
dh.o init T
dh.o mul T
dh.o neg T
dh.o norm T
dh.o precomp T
dh.o scr T
dh.o window T

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)