Implementation notes: amd64, saber214, crypto_hash/bblake512

Computer: saber214
Microarchitecture: amd64; Bulldozer (600f20)
Architecture: amd64
CPU ID: AuthenticAMD-00600f20-1789c3f5
SUPERCOP version: 20240107
Operation: crypto_hash
Primitive: bblake512
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1348331254 0 042462 776 800T:xopgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1357133529 0 046222 776 800T:xopgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1505830865 0 040681 752 768T:xopgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212

Compiler output

Implementation: T:xop
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `crypto_hash_old':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `blake512_final':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o):hash.c:(.text+0x...): more undefined references to `blake512_compress' follow
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `crypto_hash_bblake512_xop_timingleaks':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress2'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o):hash.c:(.text+0x...): more undefined references to `blake512_compress' follow
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: T:xop
Security model: timingleaks
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `blake512_update':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `crypto_hash_bblake512_xop_timingleaks':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress2'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:xop

Compiler output

Implementation: T:xop
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
hash.c: hash.c:81:8: error: always_inline function '_mm_perm_epi8' requires target feature 'xop', but would be inlined into function 'blake512_compress' that is compiled without support for 'xop'
hash.c: m0 = BSWAP64(m0);
hash.c: ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c: #define BSWAP64(x) _mm_perm_epi8((x),(x),u8to64)
hash.c: ^
hash.c: hash.c:82:8: error: always_inline function '_mm_perm_epi8' requires target feature 'xop', but would be inlined into function 'blake512_compress' that is compiled without support for 'xop'
hash.c: m1 = BSWAP64(m1);
hash.c: ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c: #define BSWAP64(x) _mm_perm_epi8((x),(x),u8to64)
hash.c: ^
hash.c: hash.c:83:8: error: always_inline function '_mm_perm_epi8' requires target feature 'xop', but would be inlined into function 'blake512_compress' that is compiled without support for 'xop'
hash.c: m2 = BSWAP64(m2);
hash.c: ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c: #define BSWAP64(x) _mm_perm_epi8((x),(x),u8to64)
hash.c: ^
hash.c: hash.c:84:8: error: always_inline function '_mm_perm_epi8' requires target feature 'xop', but would be inlined into function 'blake512_compress' that is compiled without support for 'xop'
hash.c: m3 = BSWAP64(m3);
hash.c: ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c: #define BSWAP64(x) _mm_perm_epi8((x),(x),u8to64)
hash.c: ^
hash.c: hash.c:85:8: error: always_inline function '_mm_perm_epi8' requires target feature 'xop', but would be inlined into function 'blake512_compress' that is compiled without support for 'xop'
hash.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:xop

Compiler output

Implementation: T:xop
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `blake512_update':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: hash.c:(.text+0x...): undefined reference to `blake512_compress'
try.c: /usr/bin/ld: libcrypto_hash_bblake512.a(hash.o): in function `crypto_hash_bblake512_xop_timingleaks':
try.c: hash.c:(.text+0x...): undefined reference to `blake512_compress2'
try.c: collect2: error: ld returned 1 exit status

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