Implementation notes: amd64, hertz, crypto_hash/bblake512

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

Compiler output


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:    81 |   m0 = BSWAP64(m0);
hash.c:       |        ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c:    13 |         #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:    82 |   m1 = BSWAP64(m1);
hash.c:       |        ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c:    13 |         #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:    83 |   m2 = BSWAP64(m2);
hash.c:       |        ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c:    13 |         #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:    84 |   m3 = BSWAP64(m3);
hash.c:       |        ^
hash.c: ./rounds.h:13:21: note: expanded from macro 'BSWAP64'
hash.c:    13 |         #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 (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:xopclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:xopclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:xopclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


hash.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/x86intrin.h:38,
hash.c:                  from hash.c:5:
hash.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h: In function 'blake512_compress':
hash.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h:272:1: error: inlining failed in call to 'always_inline' '_mm_roti_epi64': target specific option mismatch
hash.c:   272 | _mm_roti_epi64(__m128i __A, const int __B)
hash.c:       | ^~~~~~~~~~~~~~
hash.c: In file included from hash.c:8:
hash.c: rounds.h:1978:11: note: called from here
hash.c:  1978 |   row2h = _mm_roti_epi64(row2h, -11); \
hash.c:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
hash.c: rounds.h:2136:3: note: in expansion of macro 'G2'
hash.c:  2136 |   G2(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h,b0,b1); \
hash.c:       |   ^~
hash.c: hash.c:132:3: note: in expansion of macro 'ROUND'
hash.c:   132 |   ROUND(15);
hash.c:       |   ^~~~~
hash.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h:272:1: error: inlining failed in call to 'always_inline' '_mm_roti_epi64': target specific option mismatch
hash.c:   272 | _mm_roti_epi64(__m128i __A, const int __B)
hash.c:       | ^~~~~~~~~~~~~~
hash.c: rounds.h:1977:11: note: called from here
hash.c:  1977 |   row2l = _mm_roti_epi64(row2l, -11); \
hash.c:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
hash.c: rounds.h:2136:3: note: in expansion of macro 'G2'
hash.c:  2136 |   G2(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h,b0,b1); \
hash.c:       |   ^~
hash.c: ...

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