Implementation notes: amd64, gcc14, crypto_aead/aesjambuv2

Computer: gcc14
Architecture: amd64
CPU ID: GenuineIntel-00010676-bfebfbff
SUPERCOP version: 20220506
Operation: crypto_aead
Primitive: aesjambuv2

Test failure

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_aead_decrypt returns nonzero

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

Compiler output

Implementation: T:aesni
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt_aesni.c: encrypt_aesni.c:280:9: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
encrypt_aesni.c: K[1] = KEYEXP(K[0], 0x01);
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:19:42: note: expanded from macro 'KEYEXP'
encrypt_aesni.c: #define KEYEXP(K, I) aes128_keyexpand(K, _mm_aeskeygenassist_si128(K, I))
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/__wmmintrin_aes.h:62:12: note: expanded from macro '_mm_aeskeygenassist_si128'
encrypt_aesni.c: (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:281:9: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
encrypt_aesni.c: K[2] = KEYEXP(K[1], 0x02);
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:19:42: note: expanded from macro 'KEYEXP'
encrypt_aesni.c: #define KEYEXP(K, I) aes128_keyexpand(K, _mm_aeskeygenassist_si128(K, I))
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/__wmmintrin_aes.h:62:12: note: expanded from macro '_mm_aeskeygenassist_si128'
encrypt_aesni.c: (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)(__m128i)(C), (int)(R))
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:282:9: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
encrypt_aesni.c: K[3] = KEYEXP(K[2], 0x04);
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:19:42: note: expanded from macro 'KEYEXP'
encrypt_aesni.c: #define KEYEXP(K, I) aes128_keyexpand(K, _mm_aeskeygenassist_si128(K, I))
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/__wmmintrin_aes.h:62:12: note: expanded from macro '_mm_aeskeygenassist_si128'
encrypt_aesni.c: ...

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

Compiler output

Implementation: T:aesni
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt_aesni.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:39:0,
encrypt_aesni.c: from encrypt_aesni.c:3:
encrypt_aesni.c: encrypt_aesni.c: In function 'aes_enc_128':
encrypt_aesni.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/wmmintrin.h:69:1: error: inlining failed in call to always_inline '_mm_aesenclast_si128': target specific option mismatch
encrypt_aesni.c: _mm_aesenclast_si128 (__m128i __X, __m128i __Y)
encrypt_aesni.c: ^~~~~~~~~~~~~~~~~~~~
encrypt_aesni.c: encrypt_aesni.c:57:11: note: called from here
encrypt_aesni.c: *state = _mm_aesenclast_si128(*state, key[10]);
encrypt_aesni.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt_aesni.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:39:0,
encrypt_aesni.c: from encrypt_aesni.c:3:
encrypt_aesni.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '_mm_aesenc_si128': target specific option mismatch
encrypt_aesni.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt_aesni.c: ^~~~~~~~~~~~~~~~
encrypt_aesni.c: encrypt_aesni.c:55:11: note: called from here
encrypt_aesni.c: *state = _mm_aesenc_si128(*state, key[9]);
encrypt_aesni.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt_aesni.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:39:0,
encrypt_aesni.c: from encrypt_aesni.c:3:
encrypt_aesni.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '_mm_aesenc_si128': target specific option mismatch
encrypt_aesni.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt_aesni.c: ^~~~~~~~~~~~~~~~
encrypt_aesni.c: encrypt_aesni.c:53:11: note: called from here
encrypt_aesni.c: *state = _mm_aesenc_si128(*state, key[8]);
encrypt_aesni.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt_aesni.c: ...

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