Implementation notes: amd64, bitvise, crypto_stream/speck128192ctr

Computer: bitvise
Architecture: amd64
CPU ID: GenuineIntel-000906ea-bfebfbff
SUPERCOP version: 20190910
Operation: crypto_stream
Primitive: speck128192ctr

Compiler output

Implementation: avx512
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:334:3: error: always_inline function '_mm512_set_epi64' requires target feature 'avx512f', but would be inlined into function 'ExpandKey' that is compiled without support for 'avx512f'
stream.c: EK(A,B,C,rk,key);
stream.c: ^
stream.c: ./Speck128192AVX512.h:62:26: note: expanded from macro 'EK'
stream.c: #define EK(A,B,C,k,key) (RK(B,A,k,key,0), RK(C,A,k,key,1), RK(B,A,k,key,2), RK(C,A,k,key,3), RK(B,A,k,key,4), RK(C,A,k,key,5), RK(B,A,k,key,6), \
stream.c: ^
stream.c: ./Speck128192AVX512.h:60:26: note: expanded from macro 'RK'
stream.c: #define RK(X,Y,k,key,i) (SET1(k[i],Y), key[i]=Y, X=RCS(X,8), X+=Y, X^=i, Y=LCS(Y,3), Y^=X)
stream.c: ^
stream.c: ./Intrinsics_AVX512_128block.h:25:22: note: expanded from macro 'SET1'
stream.c: #define SET1(X,c) (X=SET(c,c,c,c,c,c,c,c))
stream.c: ^
stream.c: ./Intrinsics_AVX512_128block.h:16:13: note: expanded from macro 'SET'
stream.c: #define SET _mm512_set_epi64
stream.c: ^
stream.c: stream.c:334:3: error: always_inline function '_mm512_set_epi64' requires target feature 'avx512f', but would be inlined into function 'ExpandKey' that is compiled without support for 'avx512f'
stream.c: ./Speck128192AVX512.h:62:44: note: expanded from macro 'EK'
stream.c: #define EK(A,B,C,k,key) (RK(B,A,k,key,0), RK(C,A,k,key,1), RK(B,A,k,key,2), RK(C,A,k,key,3), RK(B,A,k,key,4), RK(C,A,k,key,5), RK(B,A,k,key,6), \
stream.c: ^
stream.c: ./Speck128192AVX512.h:60:26: note: expanded from macro 'RK'
stream.c: #define RK(X,Y,k,key,i) (SET1(k[i],Y), key[i]=Y, X=RCS(X,8), X+=Y, X^=i, Y=LCS(Y,3), Y^=X)
stream.c: ^
stream.c: ./Intrinsics_AVX512_128block.h:25:22: note: expanded from macro 'SET1'
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
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx512
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx512
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx512
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE avx512

Compiler output

Implementation: avx512
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: In file included from Speck128192AVX512.h:17:0,
stream.c: from stream.c:21:
stream.c: stream.c: In function 'Encrypt':
stream.c: Intrinsics_AVX512_128block.h:25:21: warning: AVX512F vector return without AVX512F 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:137:5: note: in expansion of macro 'SET1'
stream.c: SET1(X[0],nonce[1]); SET8(Y[0],nonce[0]);
stream.c: ^~~~
stream.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:45:0,
stream.c: from Intrinsics_AVX512_128block.h:5,
stream.c: from Speck128192AVX512.h:17,
stream.c: from stream.c:21:
stream.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx512fintrin.h:5831:1: error: inlining failed in call to always_inline '_mm512_storeu_si512': target specific option mismatch
stream.c: _mm512_storeu_si512 (void *__P, __m512i __A)
stream.c: ^~~~~~~~~~~~~~~~~~~
stream.c: In file included from Speck128192AVX512.h:17:0,
stream.c: from stream.c:21:
stream.c: Intrinsics_AVX512_128block.h:32:18: note: called from here
stream.c: #define ST(ip,X) _mm512_storeu_si512((void *)(ip),X)
stream.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stream.c: Intrinsics_AVX512_128block.h:33:43: note: in expansion of macro 'ST'
stream.c: #define STORE(out,X,Y) (ST(out,LOW(Y,X)), ST(out+64,HIGH(Y,X)))
stream.c: ^~
stream.c: stream.c:140:5: note: in expansion of macro 'STORE'
stream.c: ...

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

Compiler output

Implementation: sse4
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:257:12: error: static declaration of 'ExpandKey' follows non-static declaration
stream.c: static int ExpandKey(u64 K[], u128 rk[], u64 key[])
stream.c: ^
stream.c: stream.c:27:5: note: previous declaration is here
stream.c: int ExpandKey(u64 K[], u128 rk[], u64 key[]);
stream.c: ^
stream.c: 1 error generated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4

Compiler output

Implementation: sse4
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: stream.c:257:12: error: static declaration of 'ExpandKey' follows non-static declaration
stream.c: static int ExpandKey(u64 K[], u128 rk[], u64 key[])
stream.c: ^~~~~~~~~
stream.c: stream.c:27:5: note: previous declaration of 'ExpandKey' was here
stream.c: int ExpandKey(u64 K[], u128 rk[], u64 key[]);
stream.c: ^~~~~~~~~

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