Implementation notes: amd64, genji346, crypto_sign/pflash1

Computer: genji346
Architecture: amd64
CPU ID: AuthenticAMD-00830f10-178bfbff
SUPERCOP version: 20191017
Operation: crypto_sign
Primitive: pflash1

Compiler output

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SignScheme.c: SignScheme.c:211:19: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c: SignScheme_sign( sk , h , mlen , sm );
SignScheme.c: ^~
SignScheme.c: SignScheme.c:95:29: note: passing argument to parameter 'pri' here
SignScheme.c: int SignScheme_sign( byte * pri , byte * Y , int Ylen , byte * outX )
SignScheme.c: ^
SignScheme.c: SignScheme.c:227:19: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c: SignScheme_GMap( pk , sm , h );
SignScheme.c: ^~
SignScheme.c: SignScheme.c:152:29: note: passing argument to parameter 'pub' here
SignScheme.c: int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c: ^
SignScheme.c: SignScheme.c:227:24: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c: SignScheme_GMap( pk , sm , h );
SignScheme.c: ^~
SignScheme.c: SignScheme.c:152:42: note: passing argument to parameter 'X' here
SignScheme.c: int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c: ^
SignScheme.c: 3 warnings generated.
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: crypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: crypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /software/compilers/gcc/gcc-9.2.0-full+isl+binutils/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
PFLASH.c: PFLASH.c:152:16: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 152 | memcpy( outZ ,_Z,37);
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:149:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 149 | _Z[i-(37- 0)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:148:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 148 | _Z[i-(37- 2)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:147:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 147 | _Z[i-(37-10)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:146:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 146 | _Z[i-(37-12)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:143:10: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 143 | temp = _Z[i];
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:136:15: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 136 | if( logY ) _Z[i+j] ^= alogtab[logX+logY];
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:128:11: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 128 | memset(_Z,0,73);
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:122:16: warning: '_Z' is static but used in inline function 'polySqu' which is not static
PFLASH.c: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
BLAS.c: BLAS.c: In function 'BLAS_affineGF16':
BLAS.c: BLAS.c:284:2: warning: 'memset' specified size between 18446744072635809792 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
BLAS.c: 284 | memset(b, 0, sizeof(byte)*dim_div_2);
BLAS.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFLASH.c: PFLASH.c:152:16: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 152 | memcpy( outZ ,_Z,37);
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:149:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 149 | _Z[i-(37- 0)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:148:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 148 | _Z[i-(37- 2)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:147:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 147 | _Z[i-(37-10)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:146:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 146 | _Z[i-(37-12)] ^= temp;
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:143:10: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 143 | temp = _Z[i];
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:136:15: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 136 | if( logY ) _Z[i+j] ^= alogtab[logX+logY];
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:128:11: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c: 128 | memset(_Z,0,73);
PFLASH.c: | ^~
PFLASH.c: PFLASH.c:122:16: warning: '_Z' is static but used in inline function 'polySqu' which is not static
PFLASH.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer
PFLASH.c: PFLASH.c(152): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: memcpy( outZ ,_Z,37);
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(149): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: _Z[i-(37- 0)] ^= temp;
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(148): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: _Z[i-(37- 2)] ^= temp;
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(147): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: _Z[i-(37-10)] ^= temp;
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(146): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: _Z[i-(37-12)] ^= temp;
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(143): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: temp = _Z[i];
PFLASH.c: ^
PFLASH.c:
PFLASH.c: PFLASH.c(136): warning #1173: an entity with internal linkage cannot be referenced within an inline function with external linkage
PFLASH.c: ...

Number of similar (compiler,implementation) pairs: 24, namely:
CompilerImplementations
icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer ref
icc -march=broadwell -mtune=broadwell -O3 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O2 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O3 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O2 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O3 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O2 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O3 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O2 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O3 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O2 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O3 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O2 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O3 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O2 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O3 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O2 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O3 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O2 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O3 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O2 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O3 -fomit-frame-pointer ref