Implementation notes: amd64, comet, crypto_sign/haetae5

Computer: comet
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240716
Operation: crypto_sign
Primitive: haetae5
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
4714622135521 64 0157849 932 1792avx2clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
4814138127685 64 0149697 932 1760avx2clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
5206690124157 64 0145372 860 1792avx2gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
532880280645 64 0100343 924 1792avx2clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
559240689056 912 0108700 1724 1792avx2gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
572913587772 64 0106841 932 1728avx2clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
625705880511 912 099756 1724 1792avx2gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
965987777850 1168 095924 1972 1760avx2gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
12472193178337 0 0201961 860 1792refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1298733473353 0 095748 788 1792refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
13051675131077 0 0154385 860 1760refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1368394635688 0 056351 852 1792refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1416089241976 848 062468 1644 1792refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
15986999198654 0 0221025 860 1728refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1626193440073 0 060121 860 1728refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1826369335481 848 055572 1644 1792refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1908831133237 1104 052148 1892 1760refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716

Compiler output


sampler.c: sampler.c:227:43: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
sampler.c:     size_t bytecnt = buflen, coefcnt = 0, cnt = 0;
sampler.c:                                           ^
sampler.c: 1 warning generated.
try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
measure.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
measure.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avx2clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)

Compiler output


aes256ctr.c: aes256ctr.c:91:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK1(0x01);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:72:11: note: expanded from macro 'BLOCK1'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp2, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-14/lib/clang/14.0.6/include/__wmmintrin_aes.h:136:13: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c:   ((__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R)))
aes256ctr.c:             ^
aes256ctr.c: aes256ctr.c:92:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK2(0x01);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:82:11: note: expanded from macro 'BLOCK2'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp0, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-14/lib/clang/14.0.6/include/__wmmintrin_aes.h:136:13: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c:   ((__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R)))
aes256ctr.c:             ^
aes256ctr.c: aes256ctr.c:94:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c:   BLOCK1(0x02);
aes256ctr.c:   ^
aes256ctr.c: aes256ctr.c:72:11: note: expanded from macro 'BLOCK1'
aes256ctr.c:   temp1 = _mm_aeskeygenassist_si128(temp2, IMM);                        \
aes256ctr.c:           ^
aes256ctr.c: /usr/lib/llvm-14/lib/clang/14.0.6/include/__wmmintrin_aes.h:136:13: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
avx2clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)

Compiler output


try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
measure.c: /usr/bin/ld: warning: f1600x4.o: missing .note.GNU-stack section implies executable stack
measure.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

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

Compiler output


sampler.c: sampler.c:227:43: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
sampler.c:     size_t bytecnt = buflen, coefcnt = 0, cnt = 0;
sampler.c:                                           ^
sampler.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)

Namespace violations


decompose.o cryptolab_haetae5_decompose_hint T
decompose.o cryptolab_haetae5_decompose_vk T
decompose.o cryptolab_haetae5_decompose_z1 T
encoding.o cryptolab_haetae5_decode_h T
encoding.o cryptolab_haetae5_decode_hb_z1 T
encoding.o cryptolab_haetae5_encode_h T
encoding.o cryptolab_haetae5_encode_hb_z1 T
fft.o brv9 R
fft.o complex_fp_sqabs T
fft.o fft T
fft.o fft_bitrev T
fips202.o haetae_fips202_KeccakF_RoundConstants R
fips202.o haetae_fips202_sha3_256 T
fips202.o haetae_fips202_sha3_512 T
fips202.o haetae_fips202_shake128 T
fips202.o haetae_fips202_shake128_absorb T
fips202.o haetae_fips202_shake128_absorb_once T
fips202.o haetae_fips202_shake128_finalize T
fips202.o haetae_fips202_shake128_init T
fips202.o haetae_fips202_shake128_squeeze T
fips202.o haetae_fips202_shake128_squeezeblocks T
fips202.o haetae_fips202_shake256 T
fips202.o haetae_fips202_shake256_absorb T
fips202.o haetae_fips202_shake256_absorb_once T
fips202.o haetae_fips202_shake256_finalize T
fips202.o haetae_fips202_shake256_init T
fips202.o haetae_fips202_shake256_squeeze T
fips202.o haetae_fips202_shake256_squeezeblocks T
fixpoint.o cryptolab_haetae5_fixpoint_add T
fixpoint.o cryptolab_haetae5_fixpoint_mul_rnd13 T
fixpoint.o cryptolab_haetae5_fixpoint_newton_invsqrt T
fixpoint.o cryptolab_haetae5_fixpoint_square T
fixpoint.o start_cube R
fixpoint.o start_times_threehalves R
ntt.o cryptolab_haetae5_invntt_tomont T
ntt.o cryptolab_haetae5_ntt T
packing.o cryptolab_haetae5_pack_pk T
packing.o cryptolab_haetae5_pack_sig T
packing.o cryptolab_haetae5_pack_sk T
packing.o cryptolab_haetae5_unpack_pk T
packing.o cryptolab_haetae5_unpack_sig T
packing.o cryptolab_haetae5_unpack_sk T
poly.o cryptolab_haetae5_poly2eta_pack T
poly.o cryptolab_haetae5_poly2eta_unpack T
poly.o cryptolab_haetae5_poly_add T
poly.o cryptolab_haetae5_poly_challenge T
poly.o cryptolab_haetae5_poly_compose T
poly.o cryptolab_haetae5_poly_decomposed_pack T
poly.o cryptolab_haetae5_poly_decomposed_unpack T
poly.o cryptolab_haetae5_poly_freeze T
poly.o cryptolab_haetae5_poly_freeze2q T
poly.o cryptolab_haetae5_poly_fromcrt T
poly.o cryptolab_haetae5_poly_fromcrt0 T
poly.o cryptolab_haetae5_poly_highbits T
poly.o cryptolab_haetae5_poly_invntt_tomont T
poly.o cryptolab_haetae5_poly_lowbits T
poly.o cryptolab_haetae5_poly_lsb T
poly.o cryptolab_haetae5_poly_ntt T
poly.o cryptolab_haetae5_poly_pack_highbits T
poly.o cryptolab_haetae5_poly_pack_lsb T
poly.o cryptolab_haetae5_poly_pointwise_montgomery T
poly.o cryptolab_haetae5_poly_reduce2q T
poly.o cryptolab_haetae5_poly_sub T
poly.o cryptolab_haetae5_poly_uniform T
poly.o cryptolab_haetae5_poly_uniform_eta T
poly.o cryptolab_haetae5_polyeta_pack T
poly.o cryptolab_haetae5_polyeta_unpack T
poly.o cryptolab_haetae5_polyq_pack T
poly.o cryptolab_haetae5_polyq_unpack T
poly.o hammingWeight_8 T
polyfix.o cryptolab_haetae5_polyfix_add T
polyfix.o cryptolab_haetae5_polyfix_round T
polyfix.o cryptolab_haetae5_polyfixfixveck_sub T
polyfix.o cryptolab_haetae5_polyfixfixvecl_sub T
polyfix.o cryptolab_haetae5_polyfixveck_add T
polyfix.o cryptolab_haetae5_polyfixveck_double T
polyfix.o cryptolab_haetae5_polyfixveck_round T
polyfix.o cryptolab_haetae5_polyfixvecl_add T
polyfix.o cryptolab_haetae5_polyfixvecl_double T
polyfix.o cryptolab_haetae5_polyfixvecl_round T
polyfix.o cryptolab_haetae5_polyfixveclk_sample_hyperball T
polyfix.o cryptolab_haetae5_polyfixveclk_sqnorm2 T
polyfix.o fix_round T
polyfix.o polyfixfix_sub T
polymat.o cryptolab_haetae5_polymatkl_double T
polymat.o cryptolab_haetae5_polymatkl_expand T
polymat.o cryptolab_haetae5_polymatkl_pointwise_montgomery T
polymat.o cryptolab_haetae5_polymatkm_expand T
polymat.o cryptolab_haetae5_polymatkm_pointwise_montgomery T
polyvec.o cryptolab_haetae5_polyveck_add T
polyvec.o cryptolab_haetae5_polyveck_caddDQ2ALPHA T
polyvec.o cryptolab_haetae5_polyveck_caddq T
polyvec.o cryptolab_haetae5_polyveck_cneg T
polyvec.o cryptolab_haetae5_polyveck_csubDQ2ALPHA T
polyvec.o cryptolab_haetae5_polyveck_decompose_vk T
polyvec.o cryptolab_haetae5_polyveck_div2 T
polyvec.o cryptolab_haetae5_polyveck_double T
polyvec.o cryptolab_haetae5_polyveck_double_negate T
polyvec.o cryptolab_haetae5_polyveck_expand T
polyvec.o cryptolab_haetae5_polyveck_freeze T
polyvec.o cryptolab_haetae5_polyveck_freeze2q T
polyvec.o cryptolab_haetae5_polyveck_frommont T
polyvec.o cryptolab_haetae5_polyveck_highbits_hint T
polyvec.o cryptolab_haetae5_polyveck_invntt_tomont T
polyvec.o cryptolab_haetae5_polyveck_mul_alpha T
polyvec.o cryptolab_haetae5_polyveck_ntt T
polyvec.o cryptolab_haetae5_polyveck_pack_highbits T
polyvec.o cryptolab_haetae5_polyveck_poly_fromcrt T
polyvec.o cryptolab_haetae5_polyveck_poly_pointwise_montgomery T
polyvec.o cryptolab_haetae5_polyveck_reduce2q T
polyvec.o cryptolab_haetae5_polyveck_sqnorm2 T
polyvec.o cryptolab_haetae5_polyveck_sub T
polyvec.o cryptolab_haetae5_polyvecl_cneg T
polyvec.o cryptolab_haetae5_polyvecl_highbits T
polyvec.o cryptolab_haetae5_polyvecl_lowbits T
polyvec.o cryptolab_haetae5_polyvecl_ntt T
polyvec.o cryptolab_haetae5_polyvecl_pointwise_acc_montgomery T
polyvec.o cryptolab_haetae5_polyvecl_sqnorm2 T
polyvec.o cryptolab_haetae5_polyvecm_ntt T
polyvec.o cryptolab_haetae5_polyvecm_pointwise_acc_montgomery T
polyvec.o cryptolab_haetae5_polyvecmk_sqsing_value T
polyvec.o cryptolab_haetae5_polyvecmk_uniform_eta T
reduce.o cryptolab_haetae5_caddq T
reduce.o cryptolab_haetae5_freeze T
reduce.o cryptolab_haetae5_freeze2q T
reduce.o cryptolab_haetae5_montgomery_reduce T
reduce.o cryptolab_haetae5_reduce32_2q T
sampler.o cryptolab_haetae5_rej_eta T
sampler.o cryptolab_haetae5_rej_uniform T
sampler.o cryptolab_haetae5_sample_gauss_N T
sampler.o sample_gauss T
sign.o cryptolab_haetae5_signature T
sign.o cryptolab_haetae5_verify T
symmetric-shake.o cryptolab_haetae5_haetae_shake128_stream_init T
symmetric-shake.o cryptolab_haetae5_haetae_shake256_absorb_twice T
symmetric-shake.o cryptolab_haetae5_haetae_shake256_stream_init T

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)

Passed TIMECOP


TIMECOP iterations: 10

Number of similar (implementation,compiler) pairs: 17, namely:
ImplementationCompiler
avx2clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
avx2gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
avx2gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
avx2gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
avx2gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)