Implementation notes: amd64, hertz, crypto_hash/keccakc512treed2

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_hash
Primitive: keccakc512treed2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
5727101494 0 0115365 804 1032T:sseu24gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
5734101070 0 0112877 804 968T:sseu24gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
576019954 0 037623 828 968T:sseu4clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
576419954 0 037735 828 968T:sseu4clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
583720990 0 032797 804 968T:sseu4gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
584021414 0 035285 804 1032T:sseu4gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
587320091 0 030328 780 936T:sseu4gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
589319677 0 031256 820 968T:sseu4clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
599898204 0 0108472 780 936T:sseu24gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Test failure


error 111

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:sseu24clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:sseu24clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:sseu24clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


DoublePermutation.c: DoublePermutation.c:507:5: error: '__builtin_ia32_vprotqi' needs target feature xop
DoublePermutation.c:   507 |     rounds
DoublePermutation.c:       |     ^
DoublePermutation.c: ./KeccakF-1600-unrolling.macros:17:5: note: expanded from macro 'rounds'
DoublePermutation.c:    17 |     thetaRhoPiChiIotaPrepareTheta( 0, A, E) \
DoublePermutation.c:       |     ^
DoublePermutation.c: DoublePermutation.c:78:21: note: expanded from macro 'thetaRhoPiChiIotaPrepareTheta'
DoublePermutation.c:    78 |     Da = XOR128(Cu, ROL64in128(Ce, 1)); \
DoublePermutation.c:       |                     ^
DoublePermutation.c: DoublePermutation.c:33:37: note: expanded from macro 'ROL64in128'
DoublePermutation.c:    33 |         #define ROL64in128(a, o)    _mm_roti_epi64(a, o)
DoublePermutation.c:       |                                     ^
DoublePermutation.c: /usr/lib/llvm-18/lib/clang/18/include/xopintrin.h:237:13: note: expanded from macro '_mm_roti_epi64'
DoublePermutation.c:   237 |   ((__m128i)__builtin_ia32_vprotqi((__v2di)(__m128i)(A), (N)))
DoublePermutation.c:       |             ^
DoublePermutation.c: DoublePermutation.c:507:5: error: '__builtin_ia32_vprotqi' needs target feature xop
DoublePermutation.c: ./KeccakF-1600-unrolling.macros:17:5: note: expanded from macro 'rounds'
DoublePermutation.c:    17 |     thetaRhoPiChiIotaPrepareTheta( 0, A, E) \
DoublePermutation.c:       |     ^
DoublePermutation.c: DoublePermutation.c:79:21: note: expanded from macro 'thetaRhoPiChiIotaPrepareTheta'
DoublePermutation.c:    79 |     De = XOR128(Ca, ROL64in128(Ci, 1)); \
DoublePermutation.c:       |                     ^
DoublePermutation.c: DoublePermutation.c:33:37: note: expanded from macro 'ROL64in128'
DoublePermutation.c:    33 |         #define ROL64in128(a, o)    _mm_roti_epi64(a, o)
DoublePermutation.c:       |                                     ^
DoublePermutation.c: ...

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:xopu24clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:xopu24clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:xopu24clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


DoublePermutation.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/x86intrin.h:38,
DoublePermutation.c:                  from DoublePermutation.c:17:
DoublePermutation.c: /usr/lib/gcc/x86_64-linux-gnu/13/include/xopintrin.h: In function 'KeccakDoublePermutationOnWords':
DoublePermutation.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
DoublePermutation.c:   272 | _mm_roti_epi64(__m128i __A, const int __B)
DoublePermutation.c:       | ^~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:33:37: note: called from here
DoublePermutation.c:    33 |         #define ROL64in128(a, o)    _mm_roti_epi64(a, o)
DoublePermutation.c:       |                                     ^~~~~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:276:11: note: in expansion of macro 'ROL64in128'
DoublePermutation.c:   276 |     Bsu = ROL64in128(A##se, 2); \
DoublePermutation.c:       |           ^~~~~~~~~~
DoublePermutation.c: KeccakF-1600-unrolling.macros:40:5: note: in expansion of macro 'thetaRhoPiChiIota'
DoublePermutation.c:    40 |     thetaRhoPiChiIota(23, E, A) \
DoublePermutation.c:       |     ^~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:507:5: note: in expansion of macro 'rounds'
DoublePermutation.c:   507 |     rounds
DoublePermutation.c:       |     ^~~~~~
DoublePermutation.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
DoublePermutation.c:   272 | _mm_roti_epi64(__m128i __A, const int __B)
DoublePermutation.c:       | ^~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:33:37: note: called from here
DoublePermutation.c:    33 |         #define ROL64in128(a, o)    _mm_roti_epi64(a, o)
DoublePermutation.c:       |                                     ^~~~~~~~~~~~~~~~~~~~
DoublePermutation.c: DoublePermutation.c:273:11: note: in expansion of macro 'ROL64in128'
DoublePermutation.c: ...

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

Namespace violations


DoublePermutation.o KeccakDoublePermutationOnWords T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1024bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1088bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x1344bits T
DoublePermutation.o KeccakDoublePermutationOnWordsAfterXoring2x512bits T
DoublePermutation.o KeccakF1600DoubleRoundConstants R
DoublePermutation.o KeccakInitializeDoubleState T
DoublePermutation.o rho56 R
DoublePermutation.o rho8 R

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
T:sseu24gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:sseu24gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:sseu24gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:sseu4clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:sseu4clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:sseu4clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:sseu4gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:sseu4gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:sseu4gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)