Implementation notes: amd64, comet, crypto_aead/aescopav1

Computer: comet
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: aescopav1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
60192811638 0 026180 796 1088T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
68012139316 0 056145 868 1056T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
69461039704 0 056825 868 1088T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
69840246548 0 063057 868 1024T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
70117310825 0 025847 860 1088T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
73591015434 0 029641 868 1024T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
7467649813 0 023939 788 1088T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
10242328771 0 021671 772 1056T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625

Compiler output


encrypt.c: encrypt.c:24:13: warning: unused function 'printblock' [-Wunused-function]
encrypt.c: static void printblock(const char* caption, const block_t buf)
encrypt.c:             ^
encrypt.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)

Compiler output


encrypt.c: encrypt.c:24:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt.c:    24 | static void printblock(const char* caption, const block_t buf)
encrypt.c:       |             ^~~~~~~~~~
encrypt.c: In function 'rol',
encrypt.c:     inlined from 'mix' at encrypt.c:282:2:
encrypt.c: encrypt.c:264:36: warning: 'ab' may be used uninitialized [-Wmaybe-uninitialized]
encrypt.c:   264 |         unsigned char firstbit = in[0] >> 7;
encrypt.c:       |                                  ~~^~~
encrypt.c: encrypt.c: In function 'mix':
encrypt.c: encrypt.c:276:23: note: 'ab' declared here
encrypt.c:   276 |         unsigned char ab[16];
encrypt.c:       |                       ^~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)

Compiler output


encrypt.c: encrypt.c:24:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt.c:    24 | static void printblock(const char* caption, const block_t buf)
encrypt.c:       |             ^~~~~~~~~~
encrypt.c: In function 'rol',
encrypt.c:     inlined from 'mix' at encrypt.c:282:2:
encrypt.c: encrypt.c:268:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
encrypt.c:   268 |                 *out++ = (*in++ << 1) | bit;
encrypt.c:       |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'mix':
encrypt.c: encrypt.c:276:23: note: at offset 4294967280 into destination object 'ab' of size 16
encrypt.c:   276 |         unsigned char ab[16];
encrypt.c:       |                       ^~
encrypt.c: encrypt.c:276:23: note: at offset 16 into destination object 'ab' of size 16
encrypt.c: encrypt.c:276:23: note: at offset 4294967280 into destination object 'ab' of size 16
encrypt.c: encrypt.c:276:23: note: at offset 16 into destination object 'ab' of size 16
encrypt.c: In function 'rol',
encrypt.c:     inlined from 'mix' at encrypt.c:282:2:
encrypt.c: encrypt.c:268:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
encrypt.c:   268 |                 *out++ = (*in++ << 1) | bit;
encrypt.c:       |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'mix':
encrypt.c: encrypt.c:276:23: note: at offset 4294967281 into destination object 'ab' of size 16
encrypt.c:   276 |         unsigned char ab[16];
encrypt.c:       |                       ^~
encrypt.c: encrypt.c:276:23: note: at offset 17 into destination object 'ab' of size 16
encrypt.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)

Compiler output


encrypt.c: encrypt.c:24:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt.c:    24 | static void printblock(const char* caption, const block_t buf)
encrypt.c:       |             ^~~~~~~~~~
encrypt.c: encrypt.c: In function 'mix':
encrypt.c: encrypt.c:282:9: warning: 'ab' may be used uninitialized [-Wmaybe-uninitialized]
encrypt.c:   282 |         rol(ab, ab, s);
encrypt.c:       |         ^~~~~~~~~~~~~~
encrypt.c: encrypt.c:262:6: note: by argument 2 of type 'const unsigned char *' to 'rol' declared here
encrypt.c:   262 | void rol(unsigned char* out, const unsigned char* in, unsigned int s)
encrypt.c:       |      ^~~
encrypt.c: encrypt.c:276:23: note: 'ab' declared here
encrypt.c:   276 |         unsigned char ab[16];
encrypt.c:       |                       ^~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)

Compiler output


encrypt.c: encrypt.c:24:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt.c:    24 | static void printblock(const char* caption, const block_t buf)
encrypt.c:       |             ^~~~~~~~~~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (12.2.0)