Implementation notes: amd64, hertz, crypto_hash/rhash

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_hash
Primitive: rhash

Test failure


error 111
crypto_hash is nondeterministic

Number of similar (implementation,compiler) pairs: 6, namely:
ImplementationCompiler
T:refclang++ -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang++ -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang++ -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refg++ -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refg++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refg++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


Hash.cpp: In file included from Hash.cpp:9:
Hash.cpp: ./Hash.h:6:37: warning: '&' within '^' [-Wbitwise-op-parentheses]
Hash.cpp:     6 |         ulong out = ulong (num ^ (num>>32) & 0xffffffff);
Hash.cpp:       |                                ~ ~~~~~~~~~~^~~~~~~~~~~~
Hash.cpp: ./Hash.h:6:37: note: place parentheses around the '&' expression to silence this warning
Hash.cpp:     6 |         ulong out = ulong (num ^ (num>>32) & 0xffffffff);
Hash.cpp:       |                                            ^
Hash.cpp:       |                                  (                     )
Hash.cpp: 1 warning generated.

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:refclang++ -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang++ -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang++ -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


Hash.cpp: In file included from Hash.cpp:9:
Hash.cpp: Hash.h: In function 'ulong CheckParity(ulong64)':
Hash.cpp: Hash.h:6:44: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
Hash.cpp:     6 |         ulong out = ulong (num ^ (num>>32) & 0xffffffff);
Hash.cpp:       |                                  ~~~~~~~~~~^~~~~~~~~~~~

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:refg++ -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refg++ -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refg++ -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)