Implementation notes: amd64, cezanne, crypto_hash/fugue384

Computer: cezanne
Microarchitecture: amd64; Zen 3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20240625
Operation: crypto_hash
Primitive: fugue384
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
3314832061 0 043992 812 920T:ccalik/aesniclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3315431517 0 043336 812 920T:ccalik/aesniclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3324433030 0 045840 780 952T:ccalik/aesnigcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3327832505 0 043584 780 952T:ccalik/aesnigcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3332230817 0 039998 804 888T:ccalik/aesniclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3484427310 0 036995 756 920T:ccalik/aesnigcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3507931511 0 041022 804 888T:ccalik/aesniclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3629429763 0 040488 780 952T:ccalik/aesnigcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3698439789 0 051016 812 920T:ccalik/vpermclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3701840333 0 051672 812 920T:ccalik/vpermclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3755439381 0 047902 804 888T:ccalik/vpermclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3984443808 0 056616 780 952T:ccalik/vpermgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3992742440 0 053512 780 952T:ccalik/vpermgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3998539687 0 048606 804 888T:ccalik/vpermclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
4121135963 0 045651 756 920T:ccalik/vpermgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
4184538610 0 049336 780 952T:ccalik/vpermgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output

Implementation: T:ccalik/aesni
Security model: timingleaks
Compiler: clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
hash.c: hash.c:540:43: warning: unused variable 'uBlockCount' [-Wunused-variable]
hash.c:         unsigned int i, col[30], block[4], base, uBlockCount = 5;
hash.c:                                                  ^
hash.c: hash.c:541:10: warning: unused variable 't1' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                 ^
hash.c: hash.c:541:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:746:10: warning: unused variable 't1' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                 ^
hash.c: hash.c:746:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:915:10: warning: unused variable 't1' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                 ^
hash.c: hash.c:915:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:1053:10: warning: unused variable 't1' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                 ^
hash.c: hash.c:1053:14: warning: unused variable 't2' [-Wunused-variable]
hash.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:ccalik/aesniclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/aesniclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/aesniclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/aesniclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output

Implementation: T:ccalik/aesni
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
hash.c: hash.c:449:4: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Compress256' that is compiled without support for 'ssse3'
hash.c:                         SUBROUND256_2(ctx->state[8], ctx->state[9], ctx->state[7], ctx->state[2], ctx->state[7], ctx->state[8], ctx->state[6], ctx->state[1]);
hash.c:                         ^
hash.c: hash.c:340:2: note: expanded from macro 'SUBROUND256_2'
hash.c:         SUBSTITUTE(r0, _t1, _t2, _t3, _t0);\
hash.c:         ^
hash.c: hash.c:249:10: note: expanded from macro 'SUBSTITUTE'
hash.c:                         _t2 = _mm_shuffle_epi8(r0, M128(_inv_shift_rows));\
hash.c:                               ^
hash.c: hash.c:449:4: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'Compress256' that is compiled without support for 'aes'
hash.c: hash.c:340:2: note: expanded from macro 'SUBROUND256_2'
hash.c:         SUBSTITUTE(r0, _t1, _t2, _t3, _t0);\
hash.c:         ^
hash.c: hash.c:250:10: note: expanded from macro 'SUBSTITUTE'
hash.c:                         _t2 = _mm_aesenclast_si128(_t2, M128(_zero))
hash.c:                               ^
hash.c: hash.c:449:4: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Compress256' that is compiled without support for 'ssse3'
hash.c: hash.c:341:2: note: expanded from macro 'SUBROUND256_2'
hash.c:         SUPERMIX(_t2, _t3, _t0, _t1, r0);\
hash.c:         ^
hash.c: hash.c:253:2: note: expanded from macro 'SUPERMIX'
hash.c:         PRESUPERMIX(t0, t1, t2, t3, t4);\
hash.c:         ^
hash.c: hash.c:245:25: note: expanded from macro 'PRESUPERMIX'
hash.c:         s2 = _mm_xor_si128(s2, _mm_shuffle_epi8(M128(_mul2mask), t1));\
hash.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:ccalik/aesniclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output

Implementation: T:ccalik/aesni
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
hash.c: In file included from hash.c:21:
hash.c: vperm.h:57:2: warning: multi-line comment [-Wcomment]
hash.c:    57 |  //t2 = _mm_shuffle_epi8(table[0], x);\
hash.c:       |  ^
hash.c: hash.c:123:1: warning: multi-line comment [-Wcomment]
hash.c:   123 | //#define PACK_S0(s0, s1, t1)\
hash.c:       | ^
hash.c: hash.c:132:1: warning: multi-line comment [-Wcomment]
hash.c:   132 | //#define UNPACK_S0(s0, s1, t1)\
hash.c:       | ^
hash.c: hash.c:141:1: warning: multi-line comment [-Wcomment]
hash.c:   141 | //#define CMIX(s1, s2, r1, r2, t1, t2)\
hash.c:       | ^
hash.c: hash.c:330:1: warning: multi-line comment [-Wcomment]
hash.c:   330 | //#define SUBROUND256(r1, r2, r0, r5)\
hash.c:       | ^
hash.c: hash.c: In function 'Final256':
hash.c: hash.c:541:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:   541 |  __m128i t1, t2;
hash.c:       |              ^~
hash.c: hash.c:541:10: warning: unused variable 't1' [-Wunused-variable]
hash.c:   541 |  __m128i t1, t2;
hash.c:       |          ^~
hash.c: hash.c:540:43: warning: unused variable 'uBlockCount' [-Wunused-variable]
hash.c:   540 |  unsigned int i, col[30], block[4], base, uBlockCount = 5;
hash.c: ...

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

Compiler output

Implementation: T:ccalik/vperm
Security model: timingleaks
Compiler: clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
hash.c: hash.c:540:43: warning: unused variable 'uBlockCount' [-Wunused-variable]
hash.c:         unsigned int i, col[30], block[4], base, uBlockCount = 5;
hash.c:                                                  ^
hash.c: hash.c:541:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:746:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:915:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: hash.c:1053:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:         __m128i t1, t2;
hash.c:                     ^
hash.c: 5 warnings generated.

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:ccalik/vpermclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/vpermclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/vpermclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:ccalik/vpermclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output

Implementation: T:ccalik/vperm
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
hash.c: hash.c:448:4: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Compress256' that is compiled without support for 'ssse3'
hash.c:                         TIX256(pmsg, ctx->state[1], ctx->state[0], ctx->state[6], ctx->state[8], _t0, _t1, _t2);
hash.c:                         ^
hash.c: hash.c:169:2: note: expanded from macro 'TIX256'
hash.c:         TRANSFORM(t1, _k_ipt, t2, t3);\
hash.c:         ^
hash.c: ./vperm.h:52:7: note: expanded from macro 'TRANSFORM'
hash.c:         t1 = _mm_shuffle_epi8(*((__m128i*)table + 1), t1);\
hash.c:              ^
hash.c: hash.c:448:4: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Compress256' that is compiled without support for 'ssse3'
hash.c: hash.c:169:2: note: expanded from macro 'TIX256'
hash.c:         TRANSFORM(t1, _k_ipt, t2, t3);\
hash.c:         ^
hash.c: ./vperm.h:53:7: note: expanded from macro 'TRANSFORM'
hash.c:         x  = _mm_shuffle_epi8(*((__m128i*)table + 0), x);\
hash.c:              ^
hash.c: hash.c:449:4: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Compress256' that is compiled without support for 'ssse3'
hash.c:                         SUBROUND256_2(ctx->state[8], ctx->state[9], ctx->state[7], ctx->state[2], ctx->state[7], ctx->state[8], ctx->state[6], ctx->state[1]);
hash.c:                         ^
hash.c: hash.c:340:2: note: expanded from macro 'SUBROUND256_2'
hash.c:         SUBSTITUTE(r0, _t1, _t2, _t3, _t0);\
hash.c:         ^
hash.c: hash.c:265:20: note: expanded from macro 'SUBSTITUTE'
hash.c: #define SUBSTITUTE SUBSTITUTE_VPERM_CORE
hash.c:                    ^
hash.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:ccalik/vpermclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output

Implementation: T:ccalik/vperm
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
hash.c: In file included from hash.c:21:
hash.c: vperm.h:57:2: warning: multi-line comment [-Wcomment]
hash.c:    57 |  //t2 = _mm_shuffle_epi8(table[0], x);\
hash.c:       |  ^
hash.c: hash.c:123:1: warning: multi-line comment [-Wcomment]
hash.c:   123 | //#define PACK_S0(s0, s1, t1)\
hash.c:       | ^
hash.c: hash.c:132:1: warning: multi-line comment [-Wcomment]
hash.c:   132 | //#define UNPACK_S0(s0, s1, t1)\
hash.c:       | ^
hash.c: hash.c:141:1: warning: multi-line comment [-Wcomment]
hash.c:   141 | //#define CMIX(s1, s2, r1, r2, t1, t2)\
hash.c:       | ^
hash.c: hash.c:330:1: warning: multi-line comment [-Wcomment]
hash.c:   330 | //#define SUBROUND256(r1, r2, r0, r5)\
hash.c:       | ^
hash.c: hash.c: In function 'Final256':
hash.c: hash.c:541:14: warning: unused variable 't2' [-Wunused-variable]
hash.c:   541 |  __m128i t1, t2;
hash.c:       |              ^~
hash.c: hash.c:540:43: warning: unused variable 'uBlockCount' [-Wunused-variable]
hash.c:   540 |  unsigned int i, col[30], block[4], base, uBlockCount = 5;
hash.c:       |                                           ^~~~~~~~~~~
hash.c: hash.c: In function 'Final384':
hash.c: hash.c:746:14: warning: unused variable 't2' [-Wunused-variable]
hash.c: ...

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