Implementation notes: amd64, jasper2, crypto_hash/bblake512

Computer: jasper2
Microarchitecture: amd64; Tremont (906c0)
Architecture: amd64
CPU ID: GenuineIntel-000906c0-20-bfebfbff
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 (Debian_Clang_11.0.1)
T:xopclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:xopclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:xopclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:xopclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


hash.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/x86intrin.h:38,
hash.c:                  from hash.c:5:
hash.c: hash.c: In function 'blake512_compress':
hash.c: /usr/lib/gcc/x86_64-linux-gnu/10/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: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/x86intrin.h:38,
hash.c:                  from hash.c:5:
hash.c: /usr/lib/gcc/x86_64-linux-gnu/10/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:1977:11: note: called from here
hash.c:  1977 |   row2l = _mm_roti_epi64(row2l, -11); \
hash.c:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
hash.c: ...

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