Implementation notes: amd64, luft, crypto_stream/simon128192ctr

Computer: luft
Architecture: amd64
CPU ID: GenuineIntel-000306d4-bfebfbff
SUPERCOP version: 20200702
Operation: crypto_stream
Primitive: simon128192ctr

Checksum failure

Implementation: sse4
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
4f357420b1a7037053b3afccc696bd4ddb0eb05091e25716177467054c34c371
Number of similar (compiler,implementation) pairs: 9, 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
clang -mcpu=native -O3 -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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:139:28: warning: implicit declaration of function 'R2x16' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: if (numbytes==256) Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Simon128192AVX2.h:47: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>:187:1: note: expanded from here
stream.c: R2x16
stream.c: ^
stream.c: ./Simon128192AVX2.h:34:28: note: expanded from macro 'R2x16'
stream.c: #define R2x16(X,Y,rk,r,s) (R2x16(X,Y,rk,r), R1x16(Y,X,rk,s))
stream.c: ^
stream.c: stream.c:291:28: warning: implicit declaration of function 'R2x16' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: if (numbytes==256) Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Simon128192AVX2.h:47: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>:397:1: note: expanded from here
stream.c: R2x16
stream.c: ^
stream.c: ./Simon128192AVX2.h:34:28: note: expanded from macro 'R2x16'
stream.c: #define R2x16(X,Y,rk,r,s) (R2x16(X,Y,rk,r), R1x16(Y,X,rk,s))
stream.c: ^
stream.c: 2 warnings generated.
try.c: Undefined symbols for architecture x86_64:
try.c: "_R2x16", referenced from:
try.c: _Encrypt in crypto_stream_simon128192ctr.a(stream.o)
try.c: _Encrypt_Xor in crypto_stream_simon128192ctr.a(stream.o)
try.c: ld: symbol(s) not found for architecture x86_64
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 4, 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
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:139:28: warning: implicit declaration of function 'R2x16' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: if (numbytes==256) Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Simon128192AVX2.h:47: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>:187:1: note: expanded from here
stream.c: R2x16
stream.c: ^
stream.c: ./Simon128192AVX2.h:34:28: note: expanded from macro 'R2x16'
stream.c: #define R2x16(X,Y,rk,r,s) (R2x16(X,Y,rk,r), R1x16(Y,X,rk,s))
stream.c: ^
stream.c: stream.c:128:3: error: always_inline function '_mm256_set_epi64x' requires target feature 'avx', but would be inlined into function 'Encrypt' that is compiled without support for 'avx'
stream.c: SET1(X[0],nonce[1]); SET4(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_128block.h:25:22: note: expanded from macro 'SET1'
stream.c: #define SET1(X,c) (X=SET(c,c,c,c))
stream.c: ^
stream.c: ./Intrinsics_AVX2_128block.h:24:13: note: expanded from macro 'SET'
stream.c: #define SET _mm256_set_epi64x
stream.c: ^
stream.c: stream.c:128:24: error: always_inline function '_mm256_set_epi64x' requires target feature 'avx', but would be inlined into function 'Encrypt' that is compiled without support for 'avx'
stream.c: SET1(X[0],nonce[1]); SET4(Y[0],nonce[0]);
stream.c: ^
stream.c: ./Intrinsics_AVX2_128block.h:26:22: note: expanded from macro 'SET4'
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 stream.c:20:
stream.c: stream.c: In function 'Encrypt':
stream.c: Simon128192AVX2.h:34:28: warning: implicit declaration of function 'R2x16' [-Wimplicit-function-declaration]
stream.c: 34 | #define R2x16(X,Y,rk,r,s) (R2x16(X,Y,rk,r), R1x16(Y,X,rk,s))
stream.c: | ^~~~~
stream.c: Simon128192AVX2.h:47:24: note: in expansion of macro 'R2x16'
stream.c: 47 | #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: stream.c:139:28: note: in expansion of macro 'Enc'
stream.c: 139 | if (numbytes==256) Enc(X,Y,rk,16);
stream.c: | ^~~
try.c: Undefined symbols for architecture x86_64:
try.c: "_R2x16", referenced from:
try.c: _Encrypt in crypto_stream_simon128192ctr.a(stream.o)
try.c: _Encrypt_Xor in crypto_stream_simon128192ctr.a(stream.o)
try.c: ld: symbol(s) not found for architecture x86_64
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 3, 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 -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE avx2

Compiler output

Implementation: avx2
Security model: unknown
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: In file included from stream.c:20:
stream.c: stream.c: In function 'Encrypt':
stream.c: Simon128192AVX2.h:34:28: warning: implicit declaration of function 'R2x16' [-Wimplicit-function-declaration]
stream.c: 34 | #define R2x16(X,Y,rk,r,s) (R2x16(X,Y,rk,r), R1x16(Y,X,rk,s))
stream.c: | ^~~~~
stream.c: Simon128192AVX2.h:47:24: note: in expansion of macro 'R2x16'
stream.c: 47 | #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: stream.c:139:28: note: in expansion of macro 'Enc'
stream.c: 139 | if (numbytes==256) Enc(X,Y,rk,16);
stream.c: | ^~~
try.c: Undefined symbols for architecture x86_64:
try.c: "_R2x16", referenced from:
try.c: _Encrypt in crypto_stream_simon128192ctr.a(stream.o)
try.c: _Encrypt_Xor in crypto_stream_simon128192ctr.a(stream.o)
try.c: "_Transpose", referenced from:
try.c: _Encrypt in crypto_stream_simon128192ctr.a(stream.o)
try.c: _Encrypt_Xor in crypto_stream_simon128192ctr.a(stream.o)
try.c: _ExpandKeyBS in crypto_stream_simon128192ctr.a(stream.o)
try.c: ld: symbol(s) not found for architecture x86_64
try.c: collect2: error: ld returned 1 exit status

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