Implementation notes: aarch64, gcc185, crypto_aead/aeadaes256ocbtaglen128v1

Computer: gcc185
Microarchitecture: aarch64; Skylark (503f0002)
Architecture: aarch64
CPU ID: 503f0002
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: aeadaes256ocbtaglen128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
361507904 0 028054 840 880T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
371255192 0 024141 832 864T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
373505128 0 024093 832 864T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
388509460 21 029774 877 880T:optgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
397504524 0 022613 816 856T:dolbeau/armv8cryptogcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
427506488 21 025710 877 864T:optgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
465756304 21 025494 877 864T:optgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
480755516 21 023846 861 856T:optgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
493505334 18 026783 898 856T:optclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
494254894 18 024505 890 856T:optclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
494255622 18 027695 898 872T:optclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
495005622 18 027695 898 872T:optclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
495005178 18 024879 898 856T:optclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2131503440 0 024368 832 856T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2134503484 0 025024 832 872T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2139753484 0 025024 832 872T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2490006064 0 026572 872 880T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
2514001792 0 020874 824 856T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2952752440 0 021616 832 856T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121420231212
2995502092 0 021411 864 864T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
3013502872 0 022187 864 864T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121420231212
3090751796 0 020235 848 856T:refgcc_-march=native_-mtune=native_-Os_-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 'aes256ni_setkey_e2d' that is compiled without support for 'aes'
encrypt.c: 81 | dkeys[i] = vaesimcq_u8(ekeys[14-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 'aes256armv8_encrypt1_neon' that is compiled without support for 'aes'
encrypt.c: 118 | temp = vaeseq_u8(temp, vld1q_u8((rkeys+208)));
encrypt.c: | ^
encrypt.c: encrypt.c:281:1: error: always_inline function 'vaeseq_u8' requires target feature 'aes', but would be inlined into function 'aes256armv8_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 'aes256armv8_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 'aes256armv8_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 'aes256armv8_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 'aes256armv8_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