Implementation notes: amd64, waldorf, crypto_stream/simon6496ctr

Computer: waldorf
Architecture: amd64
CPU ID: GenuineIntel-000106e5-bfebfbff
SUPERCOP version: 20160715
Operation: crypto_stream
Primitive: simon6496ctr
TimeImplementationCompilerBenchmark dateSUPERCOP version
22948sse4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016071820160715
22972sse4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016071820160715
23652sse4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016071820160715
26608sse4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016071820160715

Checksum failure

Implementation: crypto_stream/simon6496ctr/sse4
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
a707c19365c16b523d9028af09fbf8e2cb0e468bbb7eae147295c10a5622bbb0
Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments sse4

Compiler output

Implementation: crypto_stream/simon6496ctr/avx2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
stream.c: stream.c:33:3: error: use of undeclared identifier '__m256i'
stream.c: u256 rk[42];
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:10:14: note: expanded from macro 'u256'
stream.c: #define u256 __m256i
stream.c: ^
stream.c: stream.c:42:3: warning: implicit declaration of function 'ExpandKey' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: ExpandKey(K,rk,key);
stream.c: ^
stream.c: stream.c:42:15: error: use of undeclared identifier 'rk'
stream.c: ExpandKey(K,rk,key);
stream.c: ^
stream.c: stream.c:54:5: warning: implicit declaration of function 'Encrypt' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: Encrypt(out,nonce,rk,key,320);
stream.c: ^
stream.c: stream.c:54:23: error: use of undeclared identifier 'rk'
stream.c: Encrypt(out,nonce,rk,key,320);
stream.c: ^
stream.c: stream.c:59:23: error: use of undeclared identifier 'rk'
stream.c: Encrypt(out,nonce,rk,key,256);
stream.c: ^
stream.c: stream.c:64:23: error: use of undeclared identifier 'rk'
stream.c: Encrypt(out,nonce,rk,key,192);
stream.c: ^
stream.c: stream.c:69:23: error: use of undeclared identifier 'rk'
stream.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_stream/simon6496ctr/sse4
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
stream.c: stream.c:42:3: warning: implicit declaration of function 'ExpandKey' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: ExpandKey(K,rk,key);
stream.c: ^
stream.c: stream.c:54:5: warning: implicit declaration of function 'Encrypt' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: Encrypt(out,nonce,rk,key,128);
stream.c: ^
stream.c: stream.c:179:5: warning: implicit declaration of function 'Encrypt_Xor' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: Encrypt_Xor(out,in,nonce,rk,key,128);
stream.c: ^
stream.c: 3 warnings generated.

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

Compiler output

Implementation: crypto_stream/simon6496ctr/avx2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
stream.c: In file included from Simon6496AVX2.h:17:0,
stream.c: from stream.c:20:
stream.c: stream.c: In function 'Encrypt':
stream.c: Intrinsics_AVX2_64block.h:22:21: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
stream.c: #define SET1(X,c) (X=SET(c,c,c,c,c,c,c,c))
stream.c: ^
stream.c: stream.c:141:3: note: in expansion of macro 'SET1'
stream.c: SET1(X[0],nonce[1]);
stream.c: ^
stream.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:41:0,
stream.c: from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:46,
stream.c: from Intrinsics_AVX2_64block.h:5,
stream.c: from Simon6496AVX2.h:17,
stream.c: from stream.c:20:
stream.c: /usr/lib/gcc/x86_64-linux-gnu/4.9/include/avxintrin.h:1228:1: error: inlining failed in call to always_inline '_mm256_set_epi32': target specific option mismatch
stream.c: _mm256_set_epi32 (int __A, int __B, int __C, int __D,
stream.c: ^
stream.c: In file included from Simon6496AVX2.h:17:0,
stream.c: from stream.c:20:
stream.c: Intrinsics_AVX2_64block.h:21:13: error: called from here
stream.c: #define SET _mm256_set_epi32
stream.c: ^
stream.c: Intrinsics_AVX2_64block.h:22:22: note: in expansion of macro 'SET'
stream.c: #define SET1(X,c) (X=SET(c,c,c,c,c,c,c,c))
stream.c: ^
stream.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