Implementation notes: amd64, panther, crypto_hash/cheetah512

Computer: panther
Microarchitecture: amd64; Tiger Lake (806c1)
Architecture: amd64
CPU ID: GenuineIntel-000806c1-00-bfebfbff
SUPERCOP version: 20240716
Operation: crypto_hash
Primitive: cheetah512

Compiler output


Cheetah.c: Cheetah.c:192:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:         int i,j;
Cheetah.c:               ^
Cheetah.c: Cheetah.c:220:4: warning: implicit declaration of function 'Cheetah25664' is invalid in C99 [-Wimplicit-function-declaration]
Cheetah.c:                         Cheetah25664(&Te0,&T640,&state->core, data, totLength);
Cheetah.c:                         ^
Cheetah.c: Cheetah.c:232:4: warning: implicit declaration of function 'Cheetah51264' is invalid in C99 [-Wimplicit-function-declaration]
Cheetah.c:                         Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
Cheetah.c:                         ^
Cheetah.c: Cheetah.c:255:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:         int i,j;
Cheetah.c:               ^
Cheetah.c: 4 warnings generated.
hash.c: In file included from hash.c:2:
hash.c: ./Cheetah.c:192:8: warning: unused variable 'j' [-Wunused-variable]
hash.c:         int i,j;
hash.c:               ^
hash.c: ./Cheetah.c:220:4: warning: implicit declaration of function 'Cheetah25664' is invalid in C99 [-Wimplicit-function-declaration]
hash.c:                         Cheetah25664(&Te0,&T640,&state->core, data, totLength);
hash.c:                         ^
hash.c: ./Cheetah.c:232:4: warning: implicit declaration of function 'Cheetah51264' is invalid in C99 [-Wimplicit-function-declaration]
hash.c:                         Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
hash.c:                         ^
hash.c: ./Cheetah.c:255:8: warning: unused variable 'j' [-Wunused-variable]
hash.c:         int i,j;
hash.c:               ^
hash.c: 4 warnings generated.
Cheetah512-64.s: Cheetah512-64.s:4992:11: error: invalid hexadecimal number in '.quad' directive
Cheetah512-64.s:     .quad 0x
Cheetah512-64.s:           ^

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

Compiler output


Cheetah.c: Cheetah.c: In function 'Init':
Cheetah.c: Cheetah.c:192:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   192 |  int i,j;
Cheetah.c:       |        ^
Cheetah.c: Cheetah.c: In function 'Update':
Cheetah.c: Cheetah.c:220:4: warning: implicit declaration of function 'Cheetah25664' [-Wimplicit-function-declaration]
Cheetah.c:   220 |    Cheetah25664(&Te0,&T640,&state->core, data, totLength);
Cheetah.c:       |    ^~~~~~~~~~~~
Cheetah.c: Cheetah.c:232:4: warning: implicit declaration of function 'Cheetah51264' [-Wimplicit-function-declaration]
Cheetah.c:   232 |    Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
Cheetah.c:       |    ^~~~~~~~~~~~
Cheetah.c: Cheetah.c: In function 'Final':
Cheetah.c: Cheetah.c:255:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   255 |  int i,j;
Cheetah.c:       |        ^
hash.c: In file included from hash.c:2:
hash.c: Cheetah.c: In function 'Init':
hash.c: Cheetah.c:192:8: warning: unused variable 'j' [-Wunused-variable]
hash.c:   192 |  int i,j;
hash.c:       |        ^
hash.c: Cheetah.c: In function 'Update':
hash.c: Cheetah.c:220:4: warning: implicit declaration of function 'Cheetah25664' [-Wimplicit-function-declaration]
hash.c:   220 |    Cheetah25664(&Te0,&T640,&state->core, data, totLength);
hash.c:       |    ^~~~~~~~~~~~
hash.c: Cheetah.c:232:4: warning: implicit declaration of function 'Cheetah51264' [-Wimplicit-function-declaration]
hash.c:   232 |    Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
hash.c:       |    ^~~~~~~~~~~~
hash.c: Cheetah.c: In function 'Final':
hash.c: Cheetah.c:255:8: warning: unused variable 'j' [-Wunused-variable]
hash.c:   255 |  int i,j;
hash.c:       |        ^
Cheetah512-64.s: Cheetah512-64.s: Assembler messages:
Cheetah512-64.s: Cheetah512-64.s:4992: Warning: zero assumed for missing expression
try.c: /usr/bin/ld: libcrypto_hash_cheetah512.a(Cheetah256-64.o): relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: libcrypto_hash_cheetah512.a(Cheetah512-64.o): relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIE
try.c: collect2: error: ld returned 1 exit status

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