Implementation notes: amd64, hydra8, crypto_kem/kyber90s512

Computer: hydra8
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_kem
Primitive: kyber90s512
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
58020468964 0 087856 868 1728refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010720240107
58106161149 0 081384 868 1728refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010720240107
60914658495 0 076709 812 1760refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010720240107
61197156008 0 074328 868 1728refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010720240107
62960143285 0 059546 860 1728refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010720240107
66653844664 0 061328 868 1728refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010720240107
66872943000 0 060181 812 1760refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010720240107
71672642800 0 059621 812 1760refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010720240107
94375341094 0 056757 804 1728refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010720240107

Compiler output

Implementation: avx2
Security model: constbranchindex
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
cbd.c: cbd.c:86:10: error: '__builtin_ia32_permdi256' needs target feature avx2
cbd.c: f0 = _mm256_permute4x64_epi64(f0,0x94);
cbd.c: ^
cbd.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:818:13: note: expanded from macro '_mm256_permute4x64_epi64'
cbd.c: ((__m256i)__builtin_ia32_permdi256((__v4di)(__m256i)(V), (int)(M)))
cbd.c: ^
cbd.c: cbd.c:87:10: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f0 = _mm256_shuffle_epi8(f0,shufbidx);
cbd.c: ^
cbd.c: cbd.c:89:10: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f1 = _mm256_srli_epi32(f0,1);
cbd.c: ^
cbd.c: cbd.c:90:10: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f2 = _mm256_srli_epi32(f0,2);
cbd.c: ^
cbd.c: cbd.c:91:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f0 = _mm256_and_si256(mask249,f0);
cbd.c: ^
cbd.c: cbd.c:92:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f1 = _mm256_and_si256(mask249,f1);
cbd.c: ^
cbd.c: cbd.c:93:10: error: always_inline function '_mm256_and_si256' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: f2 = _mm256_and_si256(mask249,f2);
cbd.c: ^
cbd.c: cbd.c:94:10: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'cbd3' that is compiled without support for 'avx2'
cbd.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2

Compiler output

Implementation: avx2
Security model: constbranchindex
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
aes256ctr.c: aes256ctr.c:90:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c: BLOCK1(0x01);
aes256ctr.c: ^
aes256ctr.c: aes256ctr.c:71: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.0/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:91:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c: BLOCK2(0x01);
aes256ctr.c: ^
aes256ctr.c: aes256ctr.c:81: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.0/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:93:3: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes256ctr.c: BLOCK1(0x02);
aes256ctr.c: ^
aes256ctr.c: aes256ctr.c:71: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.0/include/__wmmintrin_aes.h:136:13: note: expanded from macro '_mm_aeskeygenassist_si128'
aes256ctr.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx2

Compiler output

Implementation: avx2
Security model: constbranchindex
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
cbd.c: from cbd.c:2:
cbd.c: cbd.c: In function 'cbd2':
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:440:1: error: inlining failed in call to 'always_inline' '_mm256_cvtepi8_epi16': target specific option mismatch
cbd.c: 440 | _mm256_cvtepi8_epi16 (__m128i __X)
cbd.c: | ^~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:51:10: note: called from here
cbd.c: 51 | f3 = _mm256_cvtepi8_epi16(_mm256_extracti128_si256(f3,1));
cbd.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
cbd.c: from cbd.c:2:
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:1096:1: error: inlining failed in call to 'always_inline' '_mm256_extracti128_si256': target specific option mismatch
cbd.c: 1096 | _mm256_extracti128_si256 (__m256i __X, const int __M)
cbd.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:51:10: note: called from here
cbd.c: 51 | f3 = _mm256_cvtepi8_epi16(_mm256_extracti128_si256(f3,1));
cbd.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
cbd.c: from cbd.c:2:
cbd.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:440:1: error: inlining failed in call to 'always_inline' '_mm256_cvtepi8_epi16': target specific option mismatch
cbd.c: 440 | _mm256_cvtepi8_epi16 (__m128i __X)
cbd.c: | ^~~~~~~~~~~~~~~~~~~~
cbd.c: cbd.c:50:10: note: called from here
cbd.c: 50 | f2 = _mm256_cvtepi8_epi16(_mm256_castsi256_si128(f3));
cbd.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbd.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2