Implementation notes: amd64, sliver, crypto_stream/simon6496ctr

Computer: sliver
Architecture: amd64
CPU ID: GenuineIntel-00040651-bfebfbff
SUPERCOP version: 20160731
Operation: crypto_stream
Primitive: simon6496ctr
TimeImplementationCompilerBenchmark dateSUPERCOP version
9912avx2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072420160718

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/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.
try.c: /tmp/try-anything-c3c530.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

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: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,320);
stream.c: ^
stream.c: stream.c:209:5: warning: implicit declaration of function 'Encrypt_Xor' is invalid in C99 [-Wimplicit-function-declaration]
stream.c: Encrypt_Xor(out,in,nonce,rk,key,320);
stream.c: ^
stream.c: 3 warnings generated.
try.c: /tmp/try-anything-1c28fb.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp/try-anything-055003.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

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/avx2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
stream.c: In file included from Simon6496AVX2.h:17,
stream.c: from stream.c:20:
stream.c: Intrinsics_AVX2_64block.h:5:23: error: x86intrin.h: No such file or directory
stream.c: stream.c: In function 'crypto_stream_simon6496ctr_avx2':
stream.c: stream.c:33: error: '__m256i' undeclared (first use in this function)
stream.c: stream.c:33: error: (Each undeclared identifier is reported only once
stream.c: stream.c:33: error: for each function it appears in.)
stream.c: stream.c:33: error: expected ';' before 'rk'
stream.c: stream.c:42: error: 'rk' undeclared (first use in this function)
stream.c: stream.c: At top level:
stream.c: stream.c:103: error: expected declaration specifiers or '...' before '__m256i'
stream.c: stream.c: In function 'Encrypt':
stream.c: stream.c:106: error: '__m256i' undeclared (first use in this function)
stream.c: stream.c:106: error: expected ';' before 'X'
stream.c: stream.c:141: error: 'X' undeclared (first use in this function)
stream.c: stream.c:142: error: 'Y' undeclared (first use in this function)
stream.c: stream.c:144: error: 'rk' undeclared (first use in this function)
stream.c: stream.c:166: error: expected expression before ')' token
stream.c: stream.c:167: error: expected expression before ')' token
stream.c: stream.c:167: error: expected expression before ')' token
stream.c: stream.c:168: error: expected expression before ')' token
stream.c: stream.c:168: error: expected expression before ')' token
stream.c: stream.c:169: error: expected expression before ')' token
stream.c: stream.c:169: error: expected expression before ')' token
stream.c: stream.c:170: error: expected expression before ')' token
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

Compiler output

Implementation: crypto_stream/simon6496ctr/sse4
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
stream.c: In file included from Simon6496SSE4.h:17,
stream.c: from stream.c:20:
stream.c: Intrinsics_SSE4_64block.h:5:23: error: x86intrin.h: No such file or directory
stream.c: stream.c: In function 'crypto_stream_simon6496ctr_sse4':
stream.c: stream.c:33: error: '__m128i' undeclared (first use in this function)
stream.c: stream.c:33: error: (Each undeclared identifier is reported only once
stream.c: stream.c:33: error: for each function it appears in.)
stream.c: stream.c:33: error: expected ';' before 'rk'
stream.c: stream.c:42: error: 'rk' undeclared (first use in this function)
stream.c: stream.c: At top level:
stream.c: stream.c:93: error: expected declaration specifiers or '...' before '__m128i'
stream.c: stream.c: In function 'Encrypt':
stream.c: stream.c:96: error: '__m128i' undeclared (first use in this function)
stream.c: stream.c:96: error: expected ';' before 'X'
stream.c: stream.c:117: error: 'X' undeclared (first use in this function)
stream.c: stream.c:118: error: 'Y' undeclared (first use in this function)
stream.c: stream.c:120: error: 'rk' undeclared (first use in this function)
stream.c: stream.c:137: error: expected expression before ')' token
stream.c: stream.c:138: error: expected expression before ')' token
stream.c: stream.c:138: error: expected expression before ')' token
stream.c: stream.c:139: error: expected expression before ')' token
stream.c: stream.c:139: error: expected expression before ')' token
stream.c: stream.c:140: error: expected expression before ')' token
stream.c: stream.c:140: error: expected expression before ')' token
stream.c: stream.c: In function 'crypto_stream_simon6496ctr_sse4_xor':
stream.c: ...

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