Implementation notes: x86, thoth, crypto_aead/aegis128

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: aegis128
TimeImplementationCompilerBenchmark dateSUPERCOP version
145694refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
146272refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
149997refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
150975refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
164425refclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724

Compiler output

Implementation: crypto_aead/aegis128/aesni
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.c: encrypt.c:20:27: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i keytmp = _mm_load_si128((__m128i*)key);
encrypt.c: ^
encrypt.c: encrypt.c:21:27: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i ivtmp = _mm_load_si128((__m128i*)iv);
encrypt.c: ^
encrypt.c: encrypt.c:24:20: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[1] = _mm_set_epi8(0xdd,0x28,0xb5,0x73,0x42,0x31,0x11,0x20,0xf1,0x2f,0xc2,0x6d,0x55,0x18,0x3d,0xdb);
encrypt.c: ^
encrypt.c: encrypt.c:25:20: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[2] = _mm_set_epi8(0x62,0x79,0xe9,0x90,0x59,0x37,0x22,0x15,0x0d,0x08,0x05,0x03,0x02,0x01,0x1, 0x0);
encrypt.c: ^
encrypt.c: encrypt.c:26:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[3] = _mm_xor_si128(keytmp, _mm_set_epi8(0x62,0x79,0xe9,0x90,0x59,0x37,0x22,0x15,0x0d,0x08,0x05,0x03,0x02,0x01,0x1,0x0));
encrypt.c: ^
encrypt.c: encrypt.c:26:42: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[3] = _mm_xor_si128(keytmp, _mm_set_epi8(0x62,0x79,0xe9,0x90,0x59,0x37,0x22,0x15,0x0d,0x08,0x05,0x03,0x02,0x01,0x1,0x0));
encrypt.c: ^
encrypt.c: encrypt.c:27:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[4] = _mm_xor_si128(keytmp, _mm_set_epi8(0xdd,0x28,0xb5,0x73,0x42,0x31,0x11,0x20,0xf1,0x2f,0xc2,0x6d,0x55,0x18,0x3d,0xdb));
encrypt.c: ^
encrypt.c: encrypt.c:27:42: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.c: state[4] = _mm_xor_si128(keytmp, _mm_set_epi8(0xdd,0x28,0xb5,0x73,0x42,0x31,0x11,0x20,0xf1,0x2f,0xc2,0x6d,0x55,0x18,0x3d,0xdb));
encrypt.c: ^
encrypt.c: encrypt.c:28:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis128_initialization' that is compiled without support for 'sse2'
encrypt.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/aegis128/aesni
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'aegis128_initialization':
encrypt.c: encrypt.c:20:18: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
encrypt.c: __m128i keytmp = _mm_load_si128((__m128i*)key);
encrypt.c: ^
encrypt.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
encrypt.c: from /usr/lib/gcc/i686-linux-gnu/5/include/immintrin.h:29,
encrypt.c: from encrypt.c:4:
encrypt.c: encrypt.c: In function 'aegis128_enc_aut_step':
encrypt.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:1286:1: error: inlining failed in call to always_inline '_mm_xor_si128': target specific option mismatch
encrypt.c: _mm_xor_si128 (__m128i __A, __m128i __B)
encrypt.c: ^
encrypt.c: encrypt.c:111:20: error: called from here
encrypt.c: state[0] = _mm_xor_si128(state[0],msg);
encrypt.c: ^
encrypt.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/immintrin.h:39:0,
encrypt.c: from encrypt.c:4:
encrypt.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.c: _mm_aesenc_si128 (__m128i __X, __m128i __Y)
encrypt.c: ^
encrypt.c: encrypt.c:108:20: error: called from here
encrypt.c: state[0] = _mm_aesenc_si128(tmp,state[0]);
encrypt.c: ^
encrypt.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/immintrin.h:39:0,
encrypt.c: from encrypt.c:4:
encrypt.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.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