Implementation notes: amd64, waldorf, crypto_aead/morus1280128v1

Computer: waldorf
Architecture: amd64
CPU ID: GenuineIntel-000106e5-bfebfbff
SUPERCOP version: 20160715
Operation: crypto_aead
Primitive: morus1280128v1
TimeImplementationCompilerBenchmark dateSUPERCOP version
20888sse2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016071820160715
22136sse2gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
23480sse2gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
24264sse2gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
28216refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
30176refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
31224refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
31336ref64gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
33236sse2gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
37156refclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016071820160715
41856ref64clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016071820160715
42180ref64gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
42740ref64gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
43736refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
43984ref64gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715

Compiler output

Implementation: crypto_aead/morus1280128v1/avx2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
morus1280128v1avx2.c: morus1280128v1avx2.c:50:24: error: unknown type name '__m256i'
morus1280128v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:50:40: error: unknown type name '__m256i'
morus1280128v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:52:13: warning: implicit declaration of function '_mm256_xor_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280128v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:22:27: note: expanded from macro 'XOR256'
morus1280128v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:53:30: warning: implicit declaration of function '_mm256_and_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280128v1avx2.c: state[0] = XOR256(state[0], AND256(state[1], state[2]));
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:23:27: note: expanded from macro 'AND256'
morus1280128v1avx2.c: #define AND256(x,y) _mm256_and_si256((x),(y)) /*AND(x,y) = x & y, where x and y are two 256-bit word*/
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:22:49: note: expanded from macro 'XOR256'
morus1280128v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:54:13: warning: implicit declaration of function '_mm256_or_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280128v1avx2.c: state[0] = ROTL256(state[0], n1);
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:36:27: note: expanded from macro 'ROTL256'
morus1280128v1avx2.c: ...

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

Compiler output

Implementation: crypto_aead/morus1280128v1/avx2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
morus1280128v1avx2.c: morus1280128v1avx2.c: In function 'morus_stateupdate':
morus1280128v1avx2.c: morus1280128v1avx2.c:50:6: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
morus1280128v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:52:11: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
morus1280128v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:43:0,
morus1280128v1avx2.c: from morus1280128v1avx2.c:2:
morus1280128v1avx2.c: /usr/lib/gcc/x86_64-linux-gnu/4.9/include/avx2intrin.h:898:1: error: inlining failed in call to always_inline '_mm256_xor_si256': target specific option mismatch
morus1280128v1avx2.c: _mm256_xor_si256 (__m256i __A, __m256i __B)
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:22:27: error: called from here
morus1280128v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:52:13: note: in expansion of macro 'XOR256'
morus1280128v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:43:0,
morus1280128v1avx2.c: from morus1280128v1avx2.c:2:
morus1280128v1avx2.c: /usr/lib/gcc/x86_64-linux-gnu/4.9/include/avx2intrin.h:179:1: error: inlining failed in call to always_inline '_mm256_and_si256': target specific option mismatch
morus1280128v1avx2.c: _mm256_and_si256 (__m256i __A, __m256i __B)
morus1280128v1avx2.c: ^
morus1280128v1avx2.c: morus1280128v1avx2.c:22:27: error: called from here
morus1280128v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280128v1avx2.c: ...

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