Implementation notes: amd64, h6sandy, crypto_hash/nasha512

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_hash
Primitive: nasha512
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2872846558 0 13108857547 844 132000T:opt_v4clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2897344570 0 13108857035 844 132000T:opt_v4clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2901834348 0 13108846755 844 132000T:opt_v4clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2924332054 0 13108842875 844 132000T:opt_v4clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3000732798 0 13108843221 836 132000T:opt_v4clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3238130981 0 13110442428 796 132064T:opt_v4gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3239532369 0 13110444285 804 132064T:opt_v4gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
336919775 0 021228 796 960T:optgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3383711557 0 023469 804 960T:optgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3442538056 0 13110451253 804 132064T:opt_v4gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3469516129 0 029333 804 960T:optgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3685613524 0 027979 844 896T:optclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3689613226 0 026235 844 896T:optclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3694213148 0 025651 844 896T:optclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3781813260 0 024075 844 896T:optclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
3843728431 0 13110438824 780 132032T:opt_v4gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
395229591 0 020021 836 896T:optclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
408598706 0 019104 780 928T:optgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


Nasha.c: Nasha.c:243:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:462:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:627:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:646:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:656:30: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Nasha.c:        if (hashbitlen != 224 || hashbitlen != 256 || hashbitlen != 384 || hashbitlen!=512)
Nasha.c:            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Nasha.c: 5 warnings generated.

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

Compiler output


Nasha.c: Nasha.c: In function 'Nasha_Final1':
Nasha.c: Nasha.c:243:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   243 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Nasha_Final2':
Nasha.c: Nasha.c:462:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   462 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Update':
Nasha.c: Nasha.c:627:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   627 | }
Nasha.c:       | ^
Nasha.c: Nasha.c: In function 'Final':
Nasha.c: Nasha.c:646:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   646 | }
Nasha.c:       | ^

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

Compiler output


Nasha.c: Nasha.c:304:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:682:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:     uint_64t    pom=state->count[1];
Nasha.c:                 ^
Nasha.c: Nasha.c:815:29: warning: incompatible pointer to integer conversion assigning to 'uint_16t' (aka 'unsigned short') from 'uint_16t[256]' (aka 'unsigned short[256]') [-Wint-conversion]
Nasha.c:                 ssbox[i][j] = ssbox[i^j];
Nasha.c:                             ^ ~~~~~~~~~~
Nasha.c: Nasha.c:854:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:873:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
Nasha.c: }
Nasha.c: ^
Nasha.c: Nasha.c:883:30: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Nasha.c:        if (hashbitlen != 224 || hashbitlen != 256 || hashbitlen != 384 || hashbitlen!=512)
Nasha.c:            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Nasha.c: 6 warnings generated.

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

Compiler output


Nasha.c: Nasha.c: In function 'Nasha_Final1':
Nasha.c: Nasha.c:304:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   304 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Nasha_Final2':
Nasha.c: Nasha.c:682:17: warning: unused variable 'pom' [-Wunused-variable]
Nasha.c:   682 |     uint_64t    pom=state->count[1];
Nasha.c:       |                 ^~~
Nasha.c: Nasha.c: In function 'Init':
Nasha.c: Nasha.c:815:29: warning: assignment to 'uint_16t' {aka 'short unsigned int'} from 'uint_16t *' {aka 'short unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
Nasha.c:   815 |                 ssbox[i][j] = ssbox[i^j];
Nasha.c:       |                             ^
Nasha.c: Nasha.c: In function 'Update':
Nasha.c: Nasha.c:854:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   854 | }
Nasha.c:       | ^
Nasha.c: Nasha.c: In function 'Final':
Nasha.c: Nasha.c:873:1: warning: control reaches end of non-void function [-Wreturn-type]
Nasha.c:   873 | }
Nasha.c:       | ^

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