Implementation notes: amd64, hydra5, crypto_aead/aezv5

Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: aezv5
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
50887151571 0 075516 828 1088T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
53080536386 0 059024 876 1024T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
53105736418 0 059056 876 1024T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
53125734850 0 056616 876 1024T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
87665223414 0 042898 868 1024T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
117549825058 0 045256 876 1024T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
121702428713 0 051292 828 1088T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
132419127054 0 048580 828 1088T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
136689124640 0 044343 804 1056T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625

Compiler output


encrypt.c: encrypt.c:187:2: error: - This implementation requires __AES__ or __ARM_FEATURE_CRYPTO
encrypt.c: #error - This implementation requires __AES__ or __ARM_FEATURE_CRYPTO
encrypt.c:  ^
encrypt.c: encrypt.c:216:8: error: unknown type name 'block'
encrypt.c: static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c:        ^
encrypt.c: encrypt.c:216:23: error: unknown type name 'block'
encrypt.c: static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c:                       ^
encrypt.c: encrypt.c:217:12: warning: implicit declaration of function 'vand' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c:     return vand(x, loadu(pad + zero_bytes));
encrypt.c:            ^
encrypt.c: encrypt.c:217:20: warning: implicit declaration of function 'loadu' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c:     return vand(x, loadu(pad + zero_bytes));
encrypt.c:                    ^
encrypt.c: encrypt.c:220:8: error: unknown type name 'block'
encrypt.c: static block one_zero_pad(block x, unsigned one_zero_bytes) {
encrypt.c:        ^
encrypt.c: encrypt.c:220:27: error: unknown type name 'block'
encrypt.c: static block one_zero_pad(block x, unsigned one_zero_bytes) {
encrypt.c:                           ^
encrypt.c: encrypt.c:221:5: error: use of undeclared identifier 'block'
encrypt.c:     block *p = (block*)(pad + one_zero_bytes);
encrypt.c:     ^
encrypt.c: encrypt.c:221:12: error: use of undeclared identifier 'p'
encrypt.c: ...

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

Compiler output


encrypt.c: encrypt.c:187:2: error: #error - This implementation requires __AES__ or __ARM_FEATURE_CRYPTO
encrypt.c:   187 | #error - This implementation requires __AES__ or __ARM_FEATURE_CRYPTO
encrypt.c:       |  ^~~~~
encrypt.c: encrypt.c:216:8: error: unknown type name 'block'
encrypt.c:   216 | static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c:       |        ^~~~~
encrypt.c: encrypt.c:216:23: error: unknown type name 'block'
encrypt.c:   216 | static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c:       |                       ^~~~~
encrypt.c: encrypt.c:220:8: error: unknown type name 'block'
encrypt.c:   220 | static block one_zero_pad(block x, unsigned one_zero_bytes) {
encrypt.c:       |        ^~~~~
encrypt.c: encrypt.c:220:27: error: unknown type name 'block'
encrypt.c:   220 | static block one_zero_pad(block x, unsigned one_zero_bytes) {
encrypt.c:       |                           ^~~~~
encrypt.c: encrypt.c:225:8: error: unknown type name 'block'
encrypt.c:   225 | static block zero_set_byte(char val, unsigned idx) {
encrypt.c:       |        ^~~~~
encrypt.c: encrypt.c: In function 'zero_set_byte':
encrypt.c: encrypt.c:226:5: error: unknown type name 'block'
encrypt.c:   226 |     block tmp = zero; ((char *)&tmp)[idx] = val; return tmp;
encrypt.c:       |     ^~~~~
encrypt.c: encrypt.c:226:17: error: 'zero' undeclared (first use in this function)
encrypt.c:   226 |     block tmp = zero; ((char *)&tmp)[idx] = val; return tmp;
encrypt.c:       |                 ^~~~
encrypt.c: ...

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