Implementation notes: amd64, genji262, crypto_encrypt/4hfe

Computer: genji262
Architecture: amd64
CPU ID: AuthenticAMD-00800f12-178bfbff
SUPERCOP version: 20180818
Operation: crypto_encrypt
Primitive: 4hfe
TimeImplementationCompilerBenchmark dateSUPERCOP version
1119360refg++ -O2 -fomit-frame-pointer2018082120180818
1137400refg++ -O -fomit-frame-pointer2018082120180818
1143802refg++ -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer2018082120180818
1149016refg++ -m64 -march=k8 -O2 -fomit-frame-pointer2018082120180818

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++
error 111
crypto_encrypt_open is nondeterministic

Number of similar (compiler,implementation) pairs: 12, namely:
CompilerImplementations
g++ ref
g++ -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer ref
g++ -m64 -O -fomit-frame-pointer ref
g++ -m64 -march=core-avx-i -O3 -fomit-frame-pointer ref
g++ -m64 -march=core2 -O -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer ref
g++ -m64 -march=native -mtune=native -O2 -fomit-frame-pointer ref
g++ -m64 -march=native -mtune=native -O -fomit-frame-pointer ref
g++ -march=barcelona -O2 -fomit-frame-pointer ref
g++ -march=k8 -O2 -fomit-frame-pointer ref
g++ -march=k8 -O3 -fomit-frame-pointer ref
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -O3 -fomit-frame-pointer
error 111
crypto_encrypt_open does not match m

Number of similar (compiler,implementation) pairs: 24, namely:
CompilerImplementations
g++ -O3 -fomit-frame-pointer ref
g++ -fno-schedule-insns -O2 -fomit-frame-pointer ref
g++ -fno-schedule-insns -O3 -fomit-frame-pointer ref
g++ -fno-schedule-insns -O -fomit-frame-pointer ref
g++ -m64 -O2 -fomit-frame-pointer ref
g++ -m64 -march=core-avx-i -O -fomit-frame-pointer ref
g++ -m64 -march=core-avx2 -O2 -fomit-frame-pointer ref
g++ -m64 -march=core2 -O3 -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer ref
g++ -m64 -march=corei7-avx -O2 -fomit-frame-pointer ref
g++ -m64 -march=corei7-avx -O3 -fomit-frame-pointer ref
g++ -m64 -march=corei7 -O -fomit-frame-pointer ref
g++ -m64 -march=k8 -O3 -fomit-frame-pointer ref
g++ -m64 -march=native -mtune=native -O3 -fomit-frame-pointer ref
g++ -march=barcelona -O3 -fomit-frame-pointer ref
g++ -march=barcelona -O -fomit-frame-pointer ref
g++ -march=k8 -O -fomit-frame-pointer ref
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ref
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv ref
g++ -march=nocona -O2 -fomit-frame-pointer ref
g++ -march=nocona -O3 -fomit-frame-pointer ref
g++ -march=nocona -O -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -Os -fomit-frame-pointer
error 111
crypto_encrypt_open returns nonzero

Number of similar (compiler,implementation) pairs: 20, namely:
CompilerImplementations
g++ -Os -fomit-frame-pointer ref
g++ -fno-schedule-insns -Os -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer ref
g++ -m64 -O3 -fomit-frame-pointer ref
g++ -m64 -march=core-avx-i -Os -fomit-frame-pointer ref
g++ -m64 -march=core-avx2 -Os -fomit-frame-pointer ref
g++ -m64 -march=core2 -O2 -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4 -Os -fomit-frame-pointer ref
g++ -m64 -march=corei7-avx -O -fomit-frame-pointer ref
g++ -m64 -march=corei7-avx -Os -fomit-frame-pointer ref
g++ -m64 -march=corei7 -O3 -fomit-frame-pointer ref
g++ -m64 -march=corei7 -Os -fomit-frame-pointer ref
g++ -m64 -march=k8 -Os -fomit-frame-pointer ref
g++ -m64 -march=native -mtune=native -Os -fomit-frame-pointer ref
g++ -m64 -march=nocona -O3 -fomit-frame-pointer ref
g++ -m64 -march=nocona -O -fomit-frame-pointer ref
g++ -march=barcelona -Os -fomit-frame-pointer ref
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv ref
g++ -march=nocona -Os -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer
error 111
crypto_encrypt_open does not handle c=t overlap

Number of similar (compiler,implementation) pairs: 7, namely:
CompilerImplementations
g++ -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer ref
g++ -m64 -march=core-avx-i -O2 -fomit-frame-pointer ref
g++ -m64 -march=core-avx2 -O3 -fomit-frame-pointer ref
g++ -m64 -march=core-avx2 -O -fomit-frame-pointer ref
g++ -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer ref
g++ -m64 -march=corei7 -O2 -fomit-frame-pointer ref
g++ -m64 -march=k8 -O -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -Os -fomit-frame-pointer
error 142
sh: line 1: 30695 Alarm clock killafter 3600 ./try

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -m64 -Os -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=barcelona -O2 -fomit-frame-pointer
error 111
crypto_encrypt_open is nondeterministic
error 111
crypto_encrypt_open is nondeterministic

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
g++ -m64 -march=barcelona -O2 -fomit-frame-pointer ref
g++ -m64 -march=barcelona -O -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=barcelona -O3 -fomit-frame-pointer
error 111
crypto_encrypt_open does not match m
error 111
crypto_encrypt_open does not match m

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -m64 -march=barcelona -O3 -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=barcelona -Os -fomit-frame-pointer
error 111
crypto_encrypt_open returns nonzero
error 111
crypto_encrypt_open returns nonzero

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -m64 -march=barcelona -Os -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=core2 -Os -fomit-frame-pointer
error 142
sh: line 1: 33850 Alarm clock killafter 3600 ./try

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -m64 -march=core2 -Os -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=core2 -msse4 -O -fomit-frame-pointer
error 111
crypto_encrypt_open does not handle s=t overlap

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
g++ -m64 -march=core2 -msse4 -O -fomit-frame-pointer ref
g++ -m64 -march=nocona -O2 -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -m64 -march=nocona -Os -fomit-frame-pointer
error 142
sh: line 1: 38076 Alarm clock killafter 3600 ./try

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -m64 -march=nocona -Os -fomit-frame-pointer ref

Test failure

Implementation: crypto_encrypt/4hfe/ref
Compiler: g++ -march=k8 -Os -fomit-frame-pointer
error 142
sh: line 1: 40244 Alarm clock killafter 3600 ./try

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=k8 -Os -fomit-frame-pointer ref