Implementation notes: aarch64, gcc185, crypto_aead/aeadaes128ocbtaglen128v1

Computer: gcc185
Microarchitecture: aarch64; Skylark (503f0002)
Architecture: aarch64
CPU ID: 503f0002
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: aeadaes128ocbtaglen128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
273008152 0 028254 840 880T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
276005144 0 024061 832 864T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
277505096 0 024013 832 864T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
281254520 0 022581 816 856T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
2872510764 21 031030 877 880T:optgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
316507244 21 026398 877 864T:optgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
342007192 21 026350 877 864T:optgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
354006423 21 024710 861 856T:optgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
390005622 18 027695 898 872T:optclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
391505622 18 027695 898 872T:optclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
391504894 18 024505 890 856T:optclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
392255334 18 026783 898 856T:optclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
393755178 18 024879 898 856T:optclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
1653753484 0 025024 832 872T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
1654503440 0 024368 832 856T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
1654503484 0 025024 832 872T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2007756064 0 026524 872 880T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
2052001792 0 020874 824 856T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2463001796 0 020203 848 856T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
2499002440 0 021616 832 856T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2526752872 0 022139 864 864T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
2609252092 0 021379 864 864T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212

Compiler output

Implementation: T:dolbeau/armv8crypto
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:81:16: error: always_inline function 'vaesimcq_u8' requires target feature 'aes', but would be inlined into function 'aes128ni_setkey_e2d' that is compiled without support for 'aes'
encrypt.c: 81 | dkeys[i] = vaesimcq_u8(ekeys[10-i]);
encrypt.c: | ^
encrypt.c: encrypt.c:118:10: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_encrypt1_neon' that is compiled without support for 'aes'
encrypt.c: 118 | temp = vaeseq_u8(temp, vld1q_u8((rkeys+144)));
encrypt.c: | ^
encrypt.c: encrypt.c:281:1: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_encrypt4_xor_neon' that is compiled without support for 'aes'
encrypt.c: 281 | FUNC(4, MAKE4, MAKE4COMMA)
encrypt.c: | ^
encrypt.c: encrypt.c:260:11: note: expanded from macro 'FUNC'
encrypt.c: 260 | MAKEN(AESENCLASTx); \
encrypt.c: | ^
encrypt.c: encrypt.c:281:1: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_encrypt4_xor_neon' that is compiled without support for 'aes'
encrypt.c: encrypt.c:260:11: note: expanded from macro 'FUNC'
encrypt.c: 260 | MAKEN(AESENCLASTx); \
encrypt.c: | ^
encrypt.c: encrypt.c:281:1: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_encrypt4_xor_neon' that is compiled without support for 'aes'
encrypt.c: encrypt.c:260:11: note: expanded from macro 'FUNC'
encrypt.c: 260 | MAKEN(AESENCLASTx); \
encrypt.c: | ^
encrypt.c: encrypt.c:281:1: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_encrypt4_xor_neon' that is compiled without support for 'aes'
encrypt.c: encrypt.c:260:11: note: expanded from macro 'FUNC'
encrypt.c: 260 | MAKEN(AESENCLASTx); \
encrypt.c: | ^
encrypt.c: encrypt.c:284:1: error: always_inline function 'vaesdq_u8' requires target feature 'aes', but would be inlined into function 'aes128armv8_decrypt8_xor_neon' that is compiled without support for 'aes'
encrypt.c: ...

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

Compiler output

Implementation: T:vaes
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
ocb_vaes.c: In file included from ocb_vaes.c:71:
ocb_vaes.c: /usr/bin/../lib/clang/17/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
ocb_vaes.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
ocb_vaes.c: | ^
ocb_vaes.c: In file included from ocb_vaes.c:71:
ocb_vaes.c: In file included from /usr/bin/../lib/clang/17/include/immintrin.h:17:
ocb_vaes.c: In file included from /usr/bin/../lib/clang/17/include/x86gprintrin.h:15:
ocb_vaes.c: /usr/bin/../lib/clang/17/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
ocb_vaes.c: 42 | __asm__ ("hreset $0" :: "a"(__eax));
ocb_vaes.c: | ^
ocb_vaes.c: In file included from ocb_vaes.c:71:
ocb_vaes.c: In file included from /usr/bin/../lib/clang/17/include/immintrin.h:21:
ocb_vaes.c: /usr/bin/../lib/clang/17/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
ocb_vaes.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
ocb_vaes.c: | ^
ocb_vaes.c: /usr/bin/../lib/clang/17/include/mmintrin.h:54:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
ocb_vaes.c: 54 | return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
ocb_vaes.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocb_vaes.c: /usr/bin/../lib/clang/17/include/mmintrin.h:133:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
ocb_vaes.c: 133 | return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
ocb_vaes.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocb_vaes.c: /usr/bin/../lib/clang/17/include/mmintrin.h:163:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
ocb_vaes.c: 163 | return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
ocb_vaes.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocb_vaes.c: /usr/bin/../lib/clang/17/include/mmintrin.h:193:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
ocb_vaes.c: ...

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

Compiler output

Implementation: T:vaes
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
ocb_vaes.c: ocb_vaes.c:71:10: fatal error: immintrin.h: No such file or directory
ocb_vaes.c: #include <immintrin.h>
ocb_vaes.c: ^~~~~~~~~~~~~
ocb_vaes.c: compilation terminated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:vaes
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:vaes
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:vaes
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:vaes