Implementation notes: amd64, ygritte, crypto_stream/lexv2

Computer: ygritte
Architecture: amd64
CPU ID: GenuineIntel-00050657-bfebfbff
SUPERCOP version: 20200525
Operation: crypto_stream
Primitive: lexv2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
51409416 0 123259 784 808e/v2/schwabe/amd64-1clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
518818802 0 433108 800 864e/v2/refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020052720200525
53148975 0 122811 784 808e/v2/schwabe/amd64-2clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
552413778 0 424079 776 832e/v2/refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020052720200525
557214654 0 426155 792 864e/v2/refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020052720200525
575814186 0 425587 792 864e/v2/refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020052720200525
59449413 0 120241 776 808e/v2/schwabe/amd64-1clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
59529416 0 123483 784 840e/v2/schwabe/amd64-1clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
59569416 0 123483 784 840e/v2/schwabe/amd64-1clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
59729416 0 123803 784 840e/v2/schwabe/amd64-1clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
62008975 0 123035 784 840e/v2/schwabe/amd64-2clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
62008972 0 119793 776 808e/v2/schwabe/amd64-2clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
62068975 0 123035 784 840e/v2/schwabe/amd64-2clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
62428975 0 123355 784 840e/v2/schwabe/amd64-2clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
669616579 0 130427 784 808e/v2/refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
769616611 0 131003 784 840e/v2/refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
771215875 0 129931 784 840e/v2/refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
773215875 0 129931 784 840e/v2/refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525
778415178 0 126049 776 808e/v2/refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020052720200525

Compiler output

Implementation: e/v2/ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:685:9: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[10] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:692:6: warning: array index 11 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[11] = ((s0 & 0xFF00FF)<<8) ^ (s2 & 0xFF00FF); /* Leak for even rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:698:13: warning: array index 12 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[12] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: 3 warnings generated.

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref

Compiler output

Implementation: e/v2/schwabe/amd64-1
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_stream_lexv2.a(ECRYPT_process_bytes.o): relocation R_X86_64_32S against symbol `aes_constants' can not be used when making a PIE object; recompile with -fPIC
try.c: /usr/bin/ld: final link failed: nonrepresentable section on output
try.c: collect2: error: ld returned 1 exit status

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

Compiler output

Implementation: e/v2/schwabe/amd64-2
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_stream_lexv2.a(lex.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
try.c: /usr/bin/ld: final link failed: nonrepresentable section on output
try.c: collect2: error: ld returned 1 exit status

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

Namespace violations

Implementation: e/v2/ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
lex.o LEX_ivsetup T
lex.o rijndaelEncrypt T
lex.o rijndaelKeySetupEnc T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE e/v2/ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE e/v2/ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE e/v2/ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE e/v2/ref

Namespace violations

Implementation: e/v2/schwabe/amd64-1
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
table.o aes_constants R
table.o aes_table0 R
table.o aes_table1 R
table.o aes_table2 R
table.o aes_table3 R
table.o aes_tablex R

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/schwabe/amd64-1
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/schwabe/amd64-1
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/schwabe/amd64-1
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/schwabe/amd64-1
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE e/v2/schwabe/amd64-1