Implementation notes: x86, thoth, crypto_aead/aegis256

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: aegis256
TimeImplementationCompilerBenchmark dateSUPERCOP version
179365refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
179975refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
182697refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
184983refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724

Compiler output

Implementation: crypto_aead/aegis256/aesni
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.c: encrypt.c:19:28: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i keytmp1 = _mm_load_si128((__m128i*)key);
encrypt.c: ^
encrypt.c: encrypt.c:20:28: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i keytmp2 = _mm_load_si128((__m128i*)(key+16));
encrypt.c: ^
encrypt.c: encrypt.c:21:28: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i ivtmp1 = _mm_load_si128((__m128i*)iv);
encrypt.c: ^
encrypt.c: encrypt.c:22:28: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i ivtmp2 = _mm_load_si128((__m128i*)(iv+16));
encrypt.c: ^
encrypt.c: encrypt.c:27:13: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: state[2] = _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_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: state[3] = _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:29:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: state[4] = _mm_xor_si128(keytmp1, _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:29:43: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis256_initialization' that is compiled without support for 'sse2'
encrypt.c: state[4] = _mm_xor_si128(keytmp1, _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:30:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis256_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/aegis256/ref
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.c: crypto_aead_aegis256.a(encrypt.o): In function `crypto_aead_aegis256_ref_encrypt':
try.c: encrypt.c:(.text+0x...): undefined reference to `aegis256_initialization'
try.c: crypto_aead_aegis256.a(encrypt.o): In function `crypto_aead_aegis256_ref_decrypt':
try.c: encrypt.c:(.text+0x...): undefined reference to `aegis256_initialization'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: crypto_aead/aegis256/aesni
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'aegis256_initialization':
encrypt.c: encrypt.c:19:18: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
encrypt.c: __m128i keytmp1 = _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 'aegis256_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:135: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:132: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