Implementation notes: x86, thoth, crypto_aead/aegis128l

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: aegis128l
TimeImplementationCompilerBenchmark dateSUPERCOP version
126631refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
127766refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
129153refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
132015refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724

Compiler output

Implementation: crypto_aead/aegis128l/aesnia
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.c: encrypt.c:19:27: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i keytmp = _mm_load_si128((__m128i*)key);
encrypt.c: ^
encrypt.c: encrypt.c:20:27: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: __m128i ivtmp = _mm_load_si128((__m128i*)iv);
encrypt.c: ^
encrypt.c: encrypt.c:22:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: state[0] = _mm_xor_si128(keytmp, ivtmp);
encrypt.c: ^
encrypt.c: encrypt.c:23:20: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128L_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:24:20: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128L_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:25:20: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: state[3] = _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:26:20: error: always_inline function '_mm_xor_si128' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: state[4] = _mm_xor_si128(keytmp, ivtmp);
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 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: state[5] = _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:42: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'aegis128L_initialization' that is compiled without support for 'sse2'
encrypt.c: ...

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

Compiler output

Implementation: crypto_aead/aegis128l/ref
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.c: crypto_aead_aegis128l.a(ecrypt.o): In function `crypto_aead_aegis128l_ref_encrypt':
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_enc_aut_step'
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_enc_aut_step'
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_enc_aut_step'
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_enc_aut_step'
try.c: crypto_aead_aegis128l.a(ecrypt.o): In function `crypto_aead_aegis128l_ref_decrypt':
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_enc_aut_step'
try.c: crypto_aead_aegis128l.a(ecrypt.o):ecrypt.c:(.text+0x...): more undefined references to `aegis128L_enc_aut_step' follow
try.c: crypto_aead_aegis128l.a(ecrypt.o): In function `crypto_aead_aegis128l_ref_decrypt':
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_dec_aut_step'
try.c: ecrypt.c:(.text+0x...): undefined reference to `aegis128L_dec_aut_step'
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/aegis128l/aesnib
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'aegis128L_initialization':
encrypt.c: encrypt.c:19: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: /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:29:20: error: called from here
encrypt.c: state[7] = _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: 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: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:611:1: error: inlining failed in call to always_inline '_mm_set_epi8': target specific option mismatch
encrypt.c: _mm_set_epi8 (char __q15, char __q14, char __q13, char __q12,
encrypt.c: ^
encrypt.c: encrypt.c:29:20: error: called from here
encrypt.c: state[7] = _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: 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: ...

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

Compiler output

Implementation: crypto_aead/aegis128l/aesnia
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'aegis128L_initialization':
encrypt.c: encrypt.c:19: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 'aegis128L_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:129:20: error: called from here
encrypt.c: state[4] = _mm_xor_si128(state[4],msg1);
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: /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:128:20: error: called from here
encrypt.c: state[0] = _mm_xor_si128(state[0],msg0);
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: ...

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