Implementation notes: amd64, h9trinity, crypto_stream/simon64128ctr

Computer: h9trinity
Architecture: amd64
CPU ID: AuthenticAMD-00610f01-178bfbff
SUPERCOP version: 20200618
Operation: crypto_stream
Primitive: simon64128ctr
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
816591358 0 0105358 776 856sse4gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
856170467 0 083153 776 800sse4clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
858070467 0 084721 776 800sse4clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
858970467 0 083153 776 800sse4clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
1201790464 0 0102077 768 856sse4gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
1270590841 0 0102485 768 856sse4gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
1345775736 0 085903 768 800sse4clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
1497992199 0 0102841 752 824sse4gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:147:24: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'Encrypt' that is compiled without support for 'avx2'
stream.c: SET1(X[0],nonce[1]); SET8(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:25:46: note: expanded from macro 'SET8'
stream.c: #define SET8(X,c) (X=SET(c,c,c,c,c,c,c,c), X=ADD(X,_q))
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:16:13: note: expanded from macro 'ADD'
stream.c: #define ADD _mm256_add_epi32
stream.c: ^
stream.c: stream.c:149:21: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'Encrypt' that is compiled without support for 'avx2'
stream.c: if (numbytes==64) Enc(X,Y,rk,8);
stream.c: ^
stream.c: ./Simon64128AVX2.h:43:24: note: expanded from macro 'Enc'
stream.c: #define Enc(X,Y,rk,n) (R2x##n(X,Y,rk,0,1), R2x##n(X,Y,rk,2,3), R2x##n(X,Y,rk,4,5), R2x##n(X,Y,rk,6,7), R2x##n(X,Y,rk,8,9), \
stream.c: ^
stream.c: <scratch space>:8:1: note: expanded from here
stream.c: R2x8
stream.c: ^
stream.c: ./Simon64128AVX2.h:30:28: note: expanded from macro 'R2x8'
stream.c: #define R2x8(X,Y,rk,r,s) (Sx8(X,Y,rk[r][0]), Sx8(Y,X,rk[s][0]))
stream.c: ^
stream.c: ./Simon64128AVX2.h:25:22: note: expanded from macro 'Sx8'
stream.c: #define Sx8(U,V,k) (RD(U[0],V[0],k))
stream.c: ^
stream.c: ./Simon64128AVX2.h:23:22: note: expanded from macro 'RD'
stream.c: ...

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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:147:24: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'Encrypt' that is compiled without support for 'avx2'
stream.c: SET1(X[0],nonce[1]); SET8(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:25:46: note: expanded from macro 'SET8'
stream.c: #define SET8(X,c) (X=SET(c,c,c,c,c,c,c,c), X=ADD(X,_q))
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:16:13: note: expanded from macro 'ADD'
stream.c: #define ADD _mm256_add_epi32
stream.c: ^
stream.c: stream.c:149:21: error: always_inline function '_mm256_xor_si256' requires target feature 'avx2', but would be inlined into function 'Encrypt' that is compiled without support for 'avx2'
stream.c: if (numbytes==64) Enc(X,Y,rk,8);
stream.c: ^
stream.c: ./Simon64128AVX2.h:43:24: note: expanded from macro 'Enc'
stream.c: #define Enc(X,Y,rk,n) (R2x##n(X,Y,rk,0,1), R2x##n(X,Y,rk,2,3), R2x##n(X,Y,rk,4,5), R2x##n(X,Y,rk,6,7), R2x##n(X,Y,rk,8,9), \
stream.c: ^
stream.c: <scratch space>:430:1: note: expanded from here
stream.c: R2x8
stream.c: ^
stream.c: ./Simon64128AVX2.h:30:28: note: expanded from macro 'R2x8'
stream.c: #define R2x8(X,Y,rk,r,s) (Sx8(X,Y,rk[r][0]), Sx8(Y,X,rk[s][0]))
stream.c: ^
stream.c: ./Simon64128AVX2.h:25:22: note: expanded from macro 'Sx8'
stream.c: #define Sx8(U,V,k) (RD(U[0],V[0],k))
stream.c: ^
stream.c: ./Simon64128AVX2.h:23:22: note: expanded from macro 'RD'
stream.c: ...

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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:147:3: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function 'Encrypt' that is compiled without support for 'sse4.2'
stream.c: SET1(X[0],nonce[1]); SET8(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:24: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_AVX2_64block.h:23:13: note: expanded from macro 'SET'
stream.c: #define SET _mm256_set_epi32
stream.c: ^
stream.c: stream.c:147:24: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function 'Encrypt' that is compiled without support for 'sse4.2'
stream.c: SET1(X[0],nonce[1]); SET8(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:25:22: note: expanded from macro 'SET8'
stream.c: #define SET8(X,c) (X=SET(c,c,c,c,c,c,c,c), X=ADD(X,_q))
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:23:13: note: expanded from macro 'SET'
stream.c: #define SET _mm256_set_epi32
stream.c: ^
stream.c: stream.c:147:24: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'Encrypt' that is compiled without support for 'avx2'
stream.c: ./Intrinsics_AVX2_64block.h:25:46: note: expanded from macro 'SET8'
stream.c: #define SET8(X,c) (X=SET(c,c,c,c,c,c,c,c), X=ADD(X,_q))
stream.c: ^
stream.c: ./Intrinsics_AVX2_64block.h:16:13: note: expanded from macro 'ADD'
stream.c: #define ADD _mm256_add_epi32
stream.c: ^
stream.c: ...

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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
stream.c: from Intrinsics_AVX2_64block.h:5,
stream.c: from Simon64128AVX2.h:17,
stream.c: from stream.c:20:
stream.c: stream.c: In function 'Transpose':
stream.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:913:1: error: inlining failed in call to always_inline '_mm256_xor_si256': target specific option mismatch
stream.c: _mm256_xor_si256 (__m256i __A, __m256i __B)
stream.c: ^~~~~~~~~~~~~~~~
stream.c: In file included from Simon64128AVX2.h:17:0,
stream.c: from stream.c:20:
stream.c: Intrinsics_AVX2_64block.h:14:13: note: called from here
stream.c: #define XOR _mm256_xor_si256
stream.c: stream.c:460:10: note: in expansion of macro 'XOR'
stream.c: M[6] = XOR(M[6], W[3]);
stream.c: ^~~
stream.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
stream.c: from Intrinsics_AVX2_64block.h:5,
stream.c: from Simon64128AVX2.h:17,
stream.c: from stream.c:20:
stream.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:682:1: error: inlining failed in call to always_inline '_mm256_slli_epi32': target specific option mismatch
stream.c: _mm256_slli_epi32 (__m256i __A, int __B)
stream.c: ^~~~~~~~~~~~~~~~~
stream.c: In file included from Simon64128AVX2.h:17:0,
stream.c: from stream.c:20:
stream.c: Intrinsics_AVX2_64block.h:17:13: note: called from here
stream.c: ...

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

Compiler output

Implementation: sse4
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:340:3: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExpandKeyBS' that is compiled without support for 'ssse3'
stream.c: EKBS(rk);
stream.c: ^
stream.c: ./Simon64128SSE4.h:64:19: note: expanded from macro 'EKBS'
stream.c: #define EKBS(rk) (RKBS(rk,4,_D), RKBS(rk,5,_D), RKBS(rk,6,_C), RKBS(rk,7,_D), RKBS(rk,8,_D), RKBS(rk,9,_C), RKBS(rk,10,_D), RKBS(rk,11,_D), \
stream.c: ^
stream.c: ./Simon64128SSE4.h:53:52: note: expanded from macro 'RKBS'
stream.c: #define RKBS(rk,r,_V) (rk[r][7]= _D ^ rk[r-4][7] ^ ROR8(rk[r-1][2]) ^ rk[r-3][7] ^ ROR8(rk[r-1][3]) ^ ROR8(rk[r-3][0]), \
stream.c: ^
stream.c: ./Intrinsics_SSE4_64block.h:39:19: note: expanded from macro 'ROR8'
stream.c: #define ROR8(X) (SHFL(X,R8))
stream.c: ^
stream.c: ./Intrinsics_SSE4_64block.h:34:14: note: expanded from macro 'SHFL'
stream.c: #define SHFL _mm_shuffle_epi8
stream.c: ^
stream.c: stream.c:340:3: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExpandKeyBS' that is compiled without support for 'ssse3'
stream.c: ./Simon64128SSE4.h:64:19: note: expanded from macro 'EKBS'
stream.c: #define EKBS(rk) (RKBS(rk,4,_D), RKBS(rk,5,_D), RKBS(rk,6,_C), RKBS(rk,7,_D), RKBS(rk,8,_D), RKBS(rk,9,_C), RKBS(rk,10,_D), RKBS(rk,11,_D), \
stream.c: ^
stream.c: ./Simon64128SSE4.h:53:85: note: expanded from macro 'RKBS'
stream.c: #define RKBS(rk,r,_V) (rk[r][7]= _D ^ rk[r-4][7] ^ ROR8(rk[r-1][2]) ^ rk[r-3][7] ^ ROR8(rk[r-1][3]) ^ ROR8(rk[r-3][0]), \
stream.c: ^
stream.c: ./Intrinsics_SSE4_64block.h:39:19: note: expanded from macro 'ROR8'
stream.c: #define ROR8(X) (SHFL(X,R8))
stream.c: ^
stream.c: ...

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

Namespace violations

Implementation: sse4
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.o ExpandKeyBS T
stream.o ExpandKeyNBS T

Number of similar (compiler,implementation) pairs: 8, 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
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