Implementation notes: amd64, hydra8, crypto_kem/hqcrmrs192

Computer: hydra8
Microarchitecture: amd64; Ivy Bridge+AES (306a9)
Architecture: amd64
CPU ID: GenuineIntel-000306a9-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_kem
Primitive: hqcrmrs192

Compiler output


gf2x.c: gf2x.c:354:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_64' that is compiled without support for 'avx2'
gf2x.c:                 __m256i middle = _mm256_xor_si256(D0[is], D2[i]);
gf2x.c:                                  ^
gf2x.c: gf2x.c:316:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_32' that is compiled without support for 'avx2'
gf2x.c:                 __m256i middle = _mm256_xor_si256(D0[is], D2[i]);
gf2x.c:                                  ^
gf2x.c: gf2x.c:277:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_16' that is compiled without support for 'avx2'
gf2x.c:                 __m256i middle = _mm256_xor_si256(D0[is], D2[i]);
gf2x.c:                                  ^
gf2x.c: gf2x.c:238:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_8' that is compiled without support for 'avx2'
gf2x.c:                 __m256i middle = _mm256_xor_si256(D0[is], D2[i]);
gf2x.c:                                  ^
gf2x.c: gf2x.c:195:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_4' that is compiled without support for 'avx2'
gf2x.c:         __m256i middle0 = _mm256_xor_si256(D0[2], D2[0]);
gf2x.c:                           ^
gf2x.c: gf2x.c:196:20: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_4' that is compiled without support for 'avx2'
gf2x.c:         __m256i middle1 = _mm256_xor_si256(D0[3], D2[1]);
gf2x.c:                           ^
gf2x.c: gf2x.c:163:19: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'karat_mult_2' that is compiled without support for 'avx2'
gf2x.c:         __m256i middle = _mm256_xor_si256(D0[1], D2[0]);
gf2x.c:                          ^
gf2x.c: gf2x.c:57:10: error: always_inline function '_mm256_srli_epi64' requires target feature 'avx2', but would be inlined into function 'reduce' that is compiled without support for 'avx2'
gf2x.c:                 r256 = _mm256_srli_epi64(r256, dec64);
gf2x.c:                        ^
gf2x.c: gf2x.c:59:14: error: always_inline function '_mm256_slli_epi64' requires target feature 'avx2', but would be inlined into function 'reduce' that is compiled without support for 'avx2'
gf2x.c: ...

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

Compiler output


gf.c: gf.c:116:16: error: '__builtin_ia32_pclmulqdq128' needs target feature pclmul
gf.c:         __m128i vab = _mm_clmulepi64_si128(va, vb, 0);
gf.c:                       ^
gf.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/__wmmintrin_pclmul.h:45:13: note: expanded from macro '_mm_clmulepi64_si128'
gf.c:   ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(X), \
gf.c:             ^
gf.c: 1 error generated.

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:avxclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


gf2x.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
gf2x.c:                  from gf2x.c:11:
gf2x.c: gf2x.c: In function 'reduce':
gf2x.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:696:1: error: inlining failed in call to 'always_inline' '_mm256_slli_epi64': target specific option mismatch
gf2x.c:   696 | _mm256_slli_epi64 (__m256i __A, int __B)
gf2x.c:       | ^~~~~~~~~~~~~~~~~
gf2x.c: gf2x.c:59:28: note: called from here
gf2x.c:    59 |                 carry256 = _mm256_slli_epi64(carry256, d0);
gf2x.c:       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gf2x.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
gf2x.c:                  from gf2x.c:11:
gf2x.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:787:1: error: inlining failed in call to 'always_inline' '_mm256_srli_epi64': target specific option mismatch
gf2x.c:   787 | _mm256_srli_epi64 (__m256i __A, int __B)
gf2x.c:       | ^~~~~~~~~~~~~~~~~
gf2x.c: gf2x.c:57:24: note: called from here
gf2x.c:    57 |                 r256 = _mm256_srli_epi64(r256, dec64);
gf2x.c:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gf2x.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
gf2x.c:                  from gf2x.c:11:
gf2x.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:787:1: error: inlining failed in call to 'always_inline' '_mm256_srli_epi64': target specific option mismatch
gf2x.c:   787 | _mm256_srli_epi64 (__m256i __A, int __B)
gf2x.c:       | ^~~~~~~~~~~~~~~~~
gf2x.c: gf2x.c:57:24: note: called from here
gf2x.c:    57 |                 r256 = _mm256_srli_epi64(r256, dec64);
gf2x.c:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gf2x.c: ...

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