Implementation notes: amd64, par, crypto_aead/morus1280256v2

Computer: par
Architecture: amd64
CPU ID: GenuineIntel-000406c3-bfebfbff
SUPERCOP version: 20161026
Operation: crypto_aead
Primitive: morus1280256v2
TimeImplementationCompilerBenchmark dateSUPERCOP version
23820sse2gcc -funroll-loops -march=native -mcpu=native -O32016121420161026
24480sse2gcc -funroll-loops -march=native -mcpu=native -O22016121420161026
24980ref64gcc -funroll-loops -march=native -mcpu=native -O32016121420161026
25100sse2gcc -march=native -mcpu=native -O32016121420161026
25120refgcc -funroll-loops -march=native -mcpu=native -O32016121420161026
25300sse2gcc -funroll-loops -march=native -mcpu=native -Os2016121420161026
25420ref64gcc -march=native -mcpu=native -O32016121420161026
25460refgcc -funroll-loops -march=native -mcpu=native -O22016121420161026
25920sse2gcc -march=native -mcpu=native -O22016121420161026
26040refgcc -march=native -mcpu=native -O32016121420161026
26080sse2gcc -march=native -mcpu=native -Os2016121420161026
26160refgcc -funroll-loops -march=native -mcpu=native -Os2016121420161026
26300refgcc -march=native -mcpu=native -O22016121420161026
26740refgcc -march=native -mcpu=native -Os2016121420161026
43660ref64gcc -funroll-loops -march=native -mcpu=native -O22016121420161026
44680ref64gcc -funroll-loops -march=native -mcpu=native -Os2016121420161026
44700ref64gcc -march=native -mcpu=native -O22016121420161026
45420ref64gcc -march=native -mcpu=native -Os2016121420161026

Compiler output

Implementation: crypto_aead/morus1280256v2/avx2
Compiler: gcc -funroll-loops -march=native -mcpu=native -O2
encrypt.c: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
encrypt.c: encrypt.c: In function 'morus_stateupdate':
encrypt.c: encrypt.c:65:6: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
encrypt.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
encrypt.c: ^~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:67:11: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
encrypt.c: state[0] = XOR256(state[0], state[3]);
encrypt.c: ^
encrypt.c: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/immintrin.h:43:0,
encrypt.c: from encrypt.c:2:
encrypt.c: encrypt.c: In function 'morus_enc_aut_step':
encrypt.c: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/avx2intrin.h:1068:1: error: inlining failed in call to always_inline '_mm256_permute4x64_epi64': target specific option mismatch
encrypt.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
encrypt.c: ^~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:38:27: note: called from here
encrypt.c: #define ROTL256_64(x) _mm256_permute4x64_epi64((x), _MM_SHUFFLE(2,1,0,3)) /*Rotate x by 64-bit positions to the left*/
encrypt.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:217:13: note: in expansion of macro 'ROTL256_64'
encrypt.c: state[2] = ROTL256_64(state[2]);
encrypt.c: ^~~~~~~~~~
encrypt.c: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/immintrin.h:43:0,
encrypt.c: from encrypt.c:2:
encrypt.c: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/avx2intrin.h:574:1: error: inlining failed in call to always_inline '_mm256_or_si256': target specific option mismatch
encrypt.c: _mm256_or_si256 (__m256i __A, __m256i __B)
encrypt.c: ^~~~~~~~~~~~~~~
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
gcc -funroll-loops -march=native -mcpu=native -O2 avx2
gcc -funroll-loops -march=native -mcpu=native -O3 avx2
gcc -funroll-loops -march=native -mcpu=native -Os avx2
gcc -march=native -mcpu=native -O2 avx2
gcc -march=native -mcpu=native -O3 avx2
gcc -march=native -mcpu=native -Os avx2

Compiler output

Implementation: crypto_aead/morus1280256v2/ref
Compiler: gcc -funroll-loops -march=native -mcpu=native -O2
encrypt.c: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
try.c: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
try.c: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
measure.c: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead

Number of similar (compiler,implementation) pairs: 18, namely:
CompilerImplementations
gcc -funroll-loops -march=native -mcpu=native -O2 ref ref64 sse2
gcc -funroll-loops -march=native -mcpu=native -O3 ref ref64 sse2
gcc -funroll-loops -march=native -mcpu=native -Os ref ref64 sse2
gcc -march=native -mcpu=native -O2 ref ref64 sse2
gcc -march=native -mcpu=native -O3 ref ref64 sse2
gcc -march=native -mcpu=native -Os ref ref64 sse2