Implementation notes: amd64, waldorf, crypto_aead/morus1280256v1

Computer: waldorf
Architecture: amd64
CPU ID: GenuineIntel-000106e5-bfebfbff
SUPERCOP version: 20160715
Operation: crypto_aead
Primitive: morus1280256v1
TimeImplementationCompilerBenchmark dateSUPERCOP version
21008sse2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016071820160715
24900sse2gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
25956sse2gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
26352sse2gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
26696refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
30768ref64gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
31884refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
32312refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
33592sse2gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
38200ref64clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016071820160715
43264ref64gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
43436refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715
44176ref64gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
44540ref64gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715

Compiler output

Implementation: crypto_aead/morus1280256v1/avx2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
morus1280256v1avx2.c: morus1280256v1avx2.c:65:24: error: unknown type name '__m256i'
morus1280256v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:65:40: error: unknown type name '__m256i'
morus1280256v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:67:13: warning: implicit declaration of function '_mm256_xor_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280256v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:22:27: note: expanded from macro 'XOR256'
morus1280256v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:68:30: warning: implicit declaration of function '_mm256_and_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280256v1avx2.c: state[0] = XOR256(state[0], AND256(state[1], state[2]));
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:23:27: note: expanded from macro 'AND256'
morus1280256v1avx2.c: #define AND256(x,y) _mm256_and_si256((x),(y)) /*AND(x,y) = x & y, where x and y are two 256-bit word*/
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:22:49: note: expanded from macro 'XOR256'
morus1280256v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:69:13: warning: implicit declaration of function '_mm256_or_si256' is invalid in C99 [-Wimplicit-function-declaration]
morus1280256v1avx2.c: state[0] = ROTL256(state[0], n1);
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:36:27: note: expanded from macro 'ROTL256'
morus1280256v1avx2.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/morus1280256v1/ref
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
try.c: crypto_aead_morus1280256v1.a(encrypt.o): In function `morus_initialization':
try.c: encrypt.c:(.text+0x...): undefined reference to `morus_stateupdate'
try.c: encrypt.c:(.text+0x...): undefined reference to `morus_stateupdate'
try.c: encrypt.c:(.text+0x...): undefined reference to `morus_stateupdate'
try.c: encrypt.c:(.text+0x...): undefined reference to `morus_stateupdate'
try.c: encrypt.c:(.text+0x...): undefined reference to `morus_stateupdate'
try.c: crypto_aead_morus1280256v1.a(encrypt.o):encrypt.c:(.text+0x...): more undefined references to `morus_stateupdate' follow
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/morus1280256v1/avx2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
morus1280256v1avx2.c: morus1280256v1avx2.c: In function 'morus_stateupdate':
morus1280256v1avx2.c: morus1280256v1avx2.c:65:6: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
morus1280256v1avx2.c: void morus_stateupdate(__m256i msgblk, __m256i *state)
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:67:11: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
morus1280256v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:43:0,
morus1280256v1avx2.c: from morus1280256v1avx2.c:2:
morus1280256v1avx2.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
morus1280256v1avx2.c: _mm256_xor_si256 (__m256i __A, __m256i __B)
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:22:27: error: called from here
morus1280256v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:67:13: note: in expansion of macro 'XOR256'
morus1280256v1avx2.c: state[0] = XOR256(state[0], state[3]);
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:43:0,
morus1280256v1avx2.c: from morus1280256v1avx2.c:2:
morus1280256v1avx2.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
morus1280256v1avx2.c: _mm256_and_si256 (__m256i __A, __m256i __B)
morus1280256v1avx2.c: ^
morus1280256v1avx2.c: morus1280256v1avx2.c:22:27: error: called from here
morus1280256v1avx2.c: #define XOR256(x,y) _mm256_xor_si256((x),(y)) /*XOR256(x,y) = x ^ y, where x and y are two 256-bit word*/
morus1280256v1avx2.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