Implementation notes: amd64, h8atom, crypto_aead/aezv5

Computer: h8atom
Microarchitecture: amd64; Bonnell (30661)
Architecture: amd64
CPU ID: GenuineIntel-00030661-bfebfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: aezv5
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
84671335280 0 057748 832 856T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
85260033735 0 055020 832 856T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
85888636386 0 058596 832 856T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
104127865739 0 088685 800 928T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
152721823522 0 042758 824 856T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
201758228129 0 049733 800 928T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
208404725391 0 045444 832 856T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
238668524524 0 043752 776 896T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
257346626994 0 048053 800 928T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625

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)