Implementation notes: x86, thoth, crypto_aead/aesjambuv2

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: aesjambuv2

Test failure

Implementation: crypto_aead/aesjambuv2/ref
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
error 111
crypto_aead_decrypt returns nonzero

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

Compiler output

Implementation: crypto_aead/aesjambuv2/aesni
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt_aesni.c: encrypt_aesni.c:25:8: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:25:27: error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include/emmintrin.h:840:45: note: expanded from macro '_mm_slli_si128'
encrypt_aesni.c: (__m128i)__builtin_shufflevector((__v16qi)_mm_setzero_si128(), \
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:26:8: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:26:27: error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include/emmintrin.h:840:45: note: expanded from macro '_mm_slli_si128'
encrypt_aesni.c: (__m128i)__builtin_shufflevector((__v16qi)_mm_setzero_si128(), \
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:27:8: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: encrypt_aesni.c:27:27: error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'aes128_keyexpand' that is compiled without support for 'sse2'
encrypt_aesni.c: key = _mm_xor_si128(key, _mm_slli_si128(key, 4));
encrypt_aesni.c: ^
encrypt_aesni.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include/emmintrin.h:840:45: note: expanded from macro '_mm_slli_si128'
encrypt_aesni.c: ...

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

Compiler output

Implementation: crypto_aead/aesjambuv2/aesni
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt_aesni.c: encrypt_aesni.c: In function 'aes128_keyexpand':
encrypt_aesni.c: encrypt_aesni.c:24:1: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
encrypt_aesni.c: {
encrypt_aesni.c: ^
encrypt_aesni.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/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/i686-linux-gnu/5/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: error: 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/i686-linux-gnu/5/include/immintrin.h:39:0,
encrypt_aesni.c: from encrypt_aesni.c:3:
encrypt_aesni.c: /usr/lib/gcc/i686-linux-gnu/5/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: error: 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/i686-linux-gnu/5/include/immintrin.h:39:0,
encrypt_aesni.c: from encrypt_aesni.c:3:
encrypt_aesni.c: /usr/lib/gcc/i686-linux-gnu/5/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: ...

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