Implementation notes: amd64, rumba7, crypto_stream/lexv2

Computer: rumba7
Microarchitecture: amd64; Zen (800f11)
Architecture: amd64
CPU ID: AuthenticAMD-00800f11-178bfbff
SUPERCOP version: 20240625
Operation: crypto_stream
Primitive: lexv2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
70699692 0 424893 804 1056T:e/v2/schwabe/amd64-1gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
70729418 0 122227 844 960T:e/v2/schwabe/amd64-1clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
70769418 0 125275 844 992T:e/v2/schwabe/amd64-1clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
70769418 0 125651 844 992T:e/v2/schwabe/amd64-1clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
70839368 0 122909 836 1024T:e/v2/schwabe/amd64-1clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
70939462 0 421584 780 1024T:e/v2/schwabe/amd64-1gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
71069632 0 422908 796 1056T:e/v2/schwabe/amd64-1gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
71099692 0 423581 804 1056T:e/v2/schwabe/amd64-1gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
71159418 0 124595 844 960T:e/v2/schwabe/amd64-1clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
75509018 0 421136 780 1024T:e/v2/schwabe/amd64-2gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
75659248 0 423133 804 1056T:e/v2/schwabe/amd64-2gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
75798924 0 122461 836 1024T:e/v2/schwabe/amd64-2clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
75928974 0 124827 844 992T:e/v2/schwabe/amd64-2clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
75969188 0 422460 796 1056T:e/v2/schwabe/amd64-2gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
76008974 0 121779 844 960T:e/v2/schwabe/amd64-2clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
76099248 0 424445 804 1056T:e/v2/schwabe/amd64-2gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
76178974 0 125203 844 992T:e/v2/schwabe/amd64-2clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
76218974 0 124147 844 960T:e/v2/schwabe/amd64-2clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
782315164 0 428868 796 1056T:e/v2/refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
783118332 0 433957 804 1056T:e/v2/refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
795015562 0 429901 804 1056T:e/v2/refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
817114383 0 426888 780 1024T:e/v2/refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
832715193 0 128757 836 1024T:e/v2/refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
897515153 0 131051 844 992T:e/v2/refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
902716649 0 132923 844 992T:e/v2/refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
921614994 0 127787 844 960T:e/v2/refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
953717194 0 132395 844 960T:e/v2/refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output


lex.c: In file included from lex.c:1:
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:53: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:1:
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:53: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:1:
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:53: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 (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:e/v2/refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:e/v2/refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:e/v2/refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:e/v2/refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:e/v2/refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


lex.c: In file included from lex.c:1:
lex.c: e/lex.c: In function 'rijndaelEncrypt':
lex.c: e/lex.c:685:16: warning: array subscript 10 is above array bounds of 'u32[10]' {aka 'unsigned int[10]'} [-Warray-bounds]
lex.c:   685 |         ctx->ks[10] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c:       |         ~~~~~~~^~~~
lex.c: In file included from e/lex.c:34,
lex.c:                  from lex.c:1:
lex.c: e/ecrypt-sync.h:53:7: note: while referencing 'ks'
lex.c:    53 |   u32 ks[NUMWORDS];                     /* Keystream words collected from leaks */
lex.c:       |       ^~
lex.c: In file included from lex.c:1:
lex.c: e/lex.c:692:20: warning: array subscript 11 is above array bounds of 'u32[10]' {aka 'unsigned int[10]'} [-Warray-bounds]
lex.c:   692 |             ctx->ks[11] = ((s0 & 0xFF00FF)<<8) ^ (s2 & 0xFF00FF);    /* Leak for even rounds */
lex.c:       |             ~~~~~~~^~~~
lex.c: In file included from e/lex.c:34,
lex.c:                  from lex.c:1:
lex.c: e/ecrypt-sync.h:53:7: note: while referencing 'ks'
lex.c:    53 |   u32 ks[NUMWORDS];                     /* Keystream words collected from leaks */
lex.c:       |       ^~
lex.c: In file included from lex.c:1:
lex.c: e/lex.c:698:20: warning: array subscript 12 is above array bounds of 'u32[10]' {aka 'unsigned int[10]'} [-Warray-bounds]
lex.c:   698 |             ctx->ks[12] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c:       |             ~~~~~~~^~~~
lex.c: In file included from e/lex.c:34,
lex.c:                  from lex.c:1:
lex.c: ...

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:e/v2/refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:e/v2/refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:e/v2/refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)