Implementation notes: amd64, hydra5, crypto_hash/bblake512

Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
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:   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 (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:xopclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:xopclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:xopclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:xopclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:xopclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


hash.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:37,
hash.c:                  from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86intrin.h:32,
hash.c:                  from hash.c:5:
hash.c: hash.c: In function 'blake512_compress':
hash.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/tmmintrin.h:185:1: error: inlining failed in call to 'always_inline' '_mm_alignr_epi8': target specific option mismatch
hash.c:   185 | _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)
hash.c:       | ^~~~~~~~~~~~~~~
hash.c: In file included from hash.c:8:
hash.c: rounds.h:2096:14: note: called from here
hash.c:  2096 |         t1 = _mm_alignr_epi8(row4h, row4l, 8); \
hash.c:       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hash.c: rounds.h:2137:3: note: in expansion of macro 'UNDIAGONALIZE'
hash.c:  2137 |   UNDIAGONALIZE(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h);
hash.c:       |   ^~~~~~~~~~~~~
hash.c: hash.c:132:3: note: in expansion of macro 'ROUND'
hash.c:   132 |   ROUND(15);
hash.c:       |   ^~~~~
hash.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:37,
hash.c:                  from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86intrin.h:32,
hash.c:                  from hash.c:5:
hash.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/tmmintrin.h:185:1: error: inlining failed in call to 'always_inline' '_mm_alignr_epi8': target specific option mismatch
hash.c:   185 | _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N)
hash.c:       | ^~~~~~~~~~~~~~~
hash.c: In file included from hash.c:8:
hash.c: rounds.h:2095:14: note: called from here
hash.c: ...

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