Implementation notes: amd64, comet, crypto_sign/haetae3

Computer: comet
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240716
Operation: crypto_sign
Primitive: haetae3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
780376128790 64 0150689 932 1760avx2clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
782371137426 64 0159609 932 1792avx2clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
812791119212 64 0140468 860 1792avx2gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
83598280682 64 0100359 924 1792avx2clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
84707785606 624 0105244 1436 1792avx2gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
87252987903 64 0106969 932 1728avx2clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
90658980978 624 0100220 1436 1792avx2gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
122082878481 816 096612 1620 1760avx2gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024070520240625
167895168412 0 090852 788 1792refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1684589167975 0 0191521 860 1792refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
1700778126446 0 0149745 860 1760refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
179999735727 0 056367 852 1792refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
188135738594 560 059140 1356 1792refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
2022251164335 0 0186761 860 1728refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
222732840271 0 060321 860 1728refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
229904533829 752 052764 1540 1760refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072320240716
231155335954 560 056044 1356 1792refgcc_-march=native_-mtune=native_-O_-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_haetae3_decompose_hint T
decompose.o cryptolab_haetae3_decompose_vk T
decompose.o cryptolab_haetae3_decompose_z1 T
encoding.o cryptolab_haetae3_decode_h T
encoding.o cryptolab_haetae3_decode_hb_z1 T
encoding.o cryptolab_haetae3_encode_h T
encoding.o cryptolab_haetae3_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_haetae3_fixpoint_add T
fixpoint.o cryptolab_haetae3_fixpoint_mul_rnd13 T
fixpoint.o cryptolab_haetae3_fixpoint_newton_invsqrt T
fixpoint.o cryptolab_haetae3_fixpoint_square T
fixpoint.o start_cube R
fixpoint.o start_times_threehalves R
ntt.o cryptolab_haetae3_invntt_tomont T
ntt.o cryptolab_haetae3_ntt T
packing.o cryptolab_haetae3_pack_pk T
packing.o cryptolab_haetae3_pack_sig T
packing.o cryptolab_haetae3_pack_sk T
packing.o cryptolab_haetae3_unpack_pk T
packing.o cryptolab_haetae3_unpack_sig T
packing.o cryptolab_haetae3_unpack_sk T
poly.o cryptolab_haetae3_poly2eta_pack T
poly.o cryptolab_haetae3_poly2eta_unpack T
poly.o cryptolab_haetae3_poly_add T
poly.o cryptolab_haetae3_poly_challenge T
poly.o cryptolab_haetae3_poly_compose T
poly.o cryptolab_haetae3_poly_decomposed_pack T
poly.o cryptolab_haetae3_poly_decomposed_unpack T
poly.o cryptolab_haetae3_poly_freeze T
poly.o cryptolab_haetae3_poly_freeze2q T
poly.o cryptolab_haetae3_poly_fromcrt T
poly.o cryptolab_haetae3_poly_fromcrt0 T
poly.o cryptolab_haetae3_poly_highbits T
poly.o cryptolab_haetae3_poly_invntt_tomont T
poly.o cryptolab_haetae3_poly_lowbits T
poly.o cryptolab_haetae3_poly_lsb T
poly.o cryptolab_haetae3_poly_ntt T
poly.o cryptolab_haetae3_poly_pack_highbits T
poly.o cryptolab_haetae3_poly_pack_lsb T
poly.o cryptolab_haetae3_poly_pointwise_montgomery T
poly.o cryptolab_haetae3_poly_reduce2q T
poly.o cryptolab_haetae3_poly_sub T
poly.o cryptolab_haetae3_poly_uniform T
poly.o cryptolab_haetae3_poly_uniform_eta T
poly.o cryptolab_haetae3_polyeta_pack T
poly.o cryptolab_haetae3_polyeta_unpack T
poly.o cryptolab_haetae3_polyq_pack T
poly.o cryptolab_haetae3_polyq_unpack T
poly.o hammingWeight_8 T
polyfix.o cryptolab_haetae3_polyfix_add T
polyfix.o cryptolab_haetae3_polyfix_round T
polyfix.o cryptolab_haetae3_polyfixfixveck_sub T
polyfix.o cryptolab_haetae3_polyfixfixvecl_sub T
polyfix.o cryptolab_haetae3_polyfixveck_add T
polyfix.o cryptolab_haetae3_polyfixveck_double T
polyfix.o cryptolab_haetae3_polyfixveck_round T
polyfix.o cryptolab_haetae3_polyfixvecl_add T
polyfix.o cryptolab_haetae3_polyfixvecl_double T
polyfix.o cryptolab_haetae3_polyfixvecl_round T
polyfix.o cryptolab_haetae3_polyfixveclk_sample_hyperball T
polyfix.o cryptolab_haetae3_polyfixveclk_sqnorm2 T
polyfix.o fix_round T
polyfix.o polyfixfix_sub T
polymat.o cryptolab_haetae3_polymatkl_double T
polymat.o cryptolab_haetae3_polymatkl_expand T
polymat.o cryptolab_haetae3_polymatkl_pointwise_montgomery T
polymat.o cryptolab_haetae3_polymatkm_expand T
polymat.o cryptolab_haetae3_polymatkm_pointwise_montgomery T
polyvec.o cryptolab_haetae3_polyveck_add T
polyvec.o cryptolab_haetae3_polyveck_caddDQ2ALPHA T
polyvec.o cryptolab_haetae3_polyveck_caddq T
polyvec.o cryptolab_haetae3_polyveck_cneg T
polyvec.o cryptolab_haetae3_polyveck_csubDQ2ALPHA T
polyvec.o cryptolab_haetae3_polyveck_decompose_vk T
polyvec.o cryptolab_haetae3_polyveck_div2 T
polyvec.o cryptolab_haetae3_polyveck_double T
polyvec.o cryptolab_haetae3_polyveck_double_negate T
polyvec.o cryptolab_haetae3_polyveck_expand T
polyvec.o cryptolab_haetae3_polyveck_freeze T
polyvec.o cryptolab_haetae3_polyveck_freeze2q T
polyvec.o cryptolab_haetae3_polyveck_frommont T
polyvec.o cryptolab_haetae3_polyveck_highbits_hint T
polyvec.o cryptolab_haetae3_polyveck_invntt_tomont T
polyvec.o cryptolab_haetae3_polyveck_mul_alpha T
polyvec.o cryptolab_haetae3_polyveck_ntt T
polyvec.o cryptolab_haetae3_polyveck_pack_highbits T
polyvec.o cryptolab_haetae3_polyveck_poly_fromcrt T
polyvec.o cryptolab_haetae3_polyveck_poly_pointwise_montgomery T
polyvec.o cryptolab_haetae3_polyveck_reduce2q T
polyvec.o cryptolab_haetae3_polyveck_sqnorm2 T
polyvec.o cryptolab_haetae3_polyveck_sub T
polyvec.o cryptolab_haetae3_polyvecl_cneg T
polyvec.o cryptolab_haetae3_polyvecl_highbits T
polyvec.o cryptolab_haetae3_polyvecl_lowbits T
polyvec.o cryptolab_haetae3_polyvecl_ntt T
polyvec.o cryptolab_haetae3_polyvecl_pointwise_acc_montgomery T
polyvec.o cryptolab_haetae3_polyvecl_sqnorm2 T
polyvec.o cryptolab_haetae3_polyvecm_ntt T
polyvec.o cryptolab_haetae3_polyvecm_pointwise_acc_montgomery T
polyvec.o cryptolab_haetae3_polyvecmk_sqsing_value T
polyvec.o cryptolab_haetae3_polyvecmk_uniform_eta T
reduce.o cryptolab_haetae3_caddq T
reduce.o cryptolab_haetae3_freeze T
reduce.o cryptolab_haetae3_freeze2q T
reduce.o cryptolab_haetae3_montgomery_reduce T
reduce.o cryptolab_haetae3_reduce32_2q T
sampler.o cryptolab_haetae3_rej_eta T
sampler.o cryptolab_haetae3_rej_uniform T
sampler.o cryptolab_haetae3_sample_gauss_N T
sampler.o sample_gauss T
sign.o cryptolab_haetae3_signature T
sign.o cryptolab_haetae3_verify T
symmetric-shake.o cryptolab_haetae3_haetae_shake128_stream_init T
symmetric-shake.o cryptolab_haetae3_haetae_shake256_absorb_twice T
symmetric-shake.o cryptolab_haetae3_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)