Implementation notes: amd64, gemini, crypto_kem/frodokem976aes

Computer: gemini
Microarchitecture: amd64; Goldmont Plus (706a8)
Architecture: amd64
CPU ID: GenuineIntel-000706a8-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_kem
Primitive: frodokem976aes
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1271893025416 24 044302 908 1720T:optimizedclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010220231212
1336403822255 24 042134 908 1720T:optimizedclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010220231212
1356739320263 24 041470 908 1720T:optimizedclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010220231212
1392539740810 38 060123 908 1752T:optimizedgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010220231212
210398309566 24 026644 900 1720T:optimizedclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010220231212
6576227310611 38 028875 908 1752T:optimizedgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010220231212
682312468674 38 025347 900 1720T:optimizedgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010220231212
1094627379851 24 027492 900 1720T:optimizedclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010220231212
1430095159665 38 027491 908 1752T:optimizedgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010220231212

Compiler output

Implementation: T:x64
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
frodo976.c: In file included from frodo976.c:32:
frodo976.c: ./frodo_macrify.inc:105:26: error: always_inline function '_mm256_setzero_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: acc[0] = _mm256_setzero_si256();
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:105:26: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ./frodo_macrify.inc:106:26: error: always_inline function '_mm256_setzero_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: acc[1] = _mm256_setzero_si256();
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:106:26: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ./frodo_macrify.inc:107:26: error: always_inline function '_mm256_setzero_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: acc[2] = _mm256_setzero_si256();
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:107:26: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ./frodo_macrify.inc:108:26: error: always_inline function '_mm256_setzero_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: acc[3] = _mm256_setzero_si256();
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:108:26: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ./frodo_macrify.inc:110:25: error: always_inline function '_mm256_load_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: b = _mm256_load_si256((__m256i*)&s[i*PARAMS_N + j]);
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:110:25: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ./frodo_macrify.inc:111:28: error: always_inline function '_mm256_load_si256' requires target feature 'avx', but would be inlined into function 'frodo_mul_add_sa_plus_e' that is compiled without support for 'avx'
frodo976.c: a[0] = _mm256_load_si256((__m256i*)&a_cols_t[(k+0)*PARAMS_N + j]);
frodo976.c: ^
frodo976.c: ./frodo_macrify.inc:111:28: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
frodo976.c: ...

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

Compiler output

Implementation: T:x64
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
aes_ni.c: aes_ni.c:35:16: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes_ni.c: schedule[1] = key_exp(schedule[0], 0x01);
aes_ni.c: ^
aes_ni.c: aes_ni.c:28:40: note: expanded from macro 'key_exp'
aes_ni.c: #define key_exp(k, rcon) key_expand(k, _mm_aeskeygenassist_si128(k, rcon))
aes_ni.c: ^
aes_ni.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes_ni.c: (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
aes_ni.c: ^
aes_ni.c: aes_ni.c:36:16: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes_ni.c: schedule[2] = key_exp(schedule[1], 0x02);
aes_ni.c: ^
aes_ni.c: aes_ni.c:28:40: note: expanded from macro 'key_exp'
aes_ni.c: #define key_exp(k, rcon) key_expand(k, _mm_aeskeygenassist_si128(k, rcon))
aes_ni.c: ^
aes_ni.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes_ni.c: (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
aes_ni.c: ^
aes_ni.c: aes_ni.c:37:16: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
aes_ni.c: schedule[3] = key_exp(schedule[2], 0x04);
aes_ni.c: ^
aes_ni.c: aes_ni.c:28:40: note: expanded from macro 'key_exp'
aes_ni.c: #define key_exp(k, rcon) key_expand(k, _mm_aeskeygenassist_si128(k, rcon))
aes_ni.c: ^
aes_ni.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/__wmmintrin_aes.h:136:12: note: expanded from macro '_mm_aeskeygenassist_si128'
aes_ni.c: ...

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

Compiler output

Implementation: T:x64
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
frodo976.c: In file included from frodo976.c:32:
frodo976.c: frodo_macrify.inc: In function 'frodo_mul_add_sa_plus_e':
frodo976.c: frodo_macrify.inc:105:24: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
frodo976.c: 105 | acc[0] = _mm256_setzero_si256();
frodo976.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
frodo976.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:51,
frodo976.c: from frodo_macrify.inc:8,
frodo976.c: from frodo976.c:32:
frodo976.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:1235:1: error: inlining failed in call to 'always_inline' '_mm256_setzero_si256': target specific option mismatch
frodo976.c: 1235 | _mm256_setzero_si256 (void)
frodo976.c: | ^~~~~~~~~~~~~~~~~~~~
frodo976.c: In file included from frodo976.c:32:
frodo976.c: frodo_macrify.inc:108:26: note: called from here
frodo976.c: 108 | acc[3] = _mm256_setzero_si256();
frodo976.c: | ^~~~~~~~~~~~~~~~~~~~~~
frodo976.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:51,
frodo976.c: from frodo_macrify.inc:8,
frodo976.c: from frodo976.c:32:
frodo976.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:1235:1: error: inlining failed in call to 'always_inline' '_mm256_setzero_si256': target specific option mismatch
frodo976.c: 1235 | _mm256_setzero_si256 (void)
frodo976.c: | ^~~~~~~~~~~~~~~~~~~~
frodo976.c: In file included from frodo976.c:32:
frodo976.c: frodo_macrify.inc:107:26: note: called from here
frodo976.c: 107 | acc[2] = _mm256_setzero_si256();
frodo976.c: | ^~~~~~~~~~~~~~~~~~~~~~
frodo976.c: ...

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