Implementation notes: armeabi, berry2, crypto_stream/aes256ctr

Computer: berry2
Microarchitecture: armeabi; Cortex-A7 (410fc075)
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20240107
Operation: crypto_stream
Primitive: aes256ctr
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
98487300 0 011275 420 784T:opensslgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024012420240107
98540316 0 022778 412 792T:opensslclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024012420240107
98549300 0 011187 420 784T:opensslgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024012420240107
98610436 0 013247 420 784T:opensslgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024012420240107
98712296 0 010489 412 784T:opensslgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024012420240107

Test failure

Implementation: T:cryptopp
Security model: timingleaks
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
error 111
crypto_stream_xor does not handle m=c overlap

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

Compiler output

Implementation: T:dolbeau/armv8crypto
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/arm_neon.h:28:2: error: "NEON support not enabled"
armv8crypto.c: #error "NEON support not enabled"
armv8crypto.c: ^
armv8crypto.c: armv8crypto.c:54:16: warning: implicit declaration of function 'vaeseq_u8' is invalid in C99 [-Wimplicit-function-declaration]
armv8crypto.c: temp_lds = armv8_aese_sbox(rotl_aes_edrk);
armv8crypto.c: ^
armv8crypto.c: armv8crypto.c:31:45: note: expanded from macro 'armv8_aese_sbox'
armv8crypto.c: vgetq_lane_u32(vreinterpretq_u32_u8(vaeseq_u8(vreinterpretq_u8_u32(vdupq_n_u32(input)), vzero)),0)
armv8crypto.c: ^
armv8crypto.c: armv8crypto.c:54:16: error: passing 'int' to parameter of incompatible type 'uint8x16_t' (vector of 16 'uint8_t' values)
armv8crypto.c: temp_lds = armv8_aese_sbox(rotl_aes_edrk);
armv8crypto.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:31:45: note: expanded from macro 'armv8_aese_sbox'
armv8crypto.c: vgetq_lane_u32(vreinterpretq_u32_u8(vaeseq_u8(vreinterpretq_u8_u32(vdupq_n_u32(input)), vzero)),0)
armv8crypto.c: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/arm_neon.h:6460:21: note: expanded from macro 'vgetq_lane_u32'
armv8crypto.c: uint32x4_t __s0 = __p0; \
armv8crypto.c: ^~~~
armv8crypto.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/arm_neon.h:33791:49: note: passing argument to parameter '__p0' here
armv8crypto.c: __ai uint32x4_t vreinterpretq_u32_u8(uint8x16_t __p0) {
armv8crypto.c: ^
armv8crypto.c: armv8crypto.c:67:16: warning: implicit declaration of function 'vaeseq_u8' is invalid in C99 [-Wimplicit-function-declaration]
armv8crypto.c: temp_lds = armv8_aese_sbox(tmp11);
armv8crypto.c: ^
armv8crypto.c: ...

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

Compiler output

Implementation: T:dolbeau/armv8crypto
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: armv8crypto.c: In function 'aesni_encrypt8':
armv8crypto.c: /usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10413:1: error: inlining failed in call to always_inline 'vld1q_u32': target specific option mismatch
armv8crypto.c: vld1q_u32 (const uint32_t * __a)
armv8crypto.c: ^~~~~~~~~
armv8crypto.c: armv8crypto.c:166:23: note: called from here
armv8crypto.c: uint32x4_t nv0i = vld1q_u32((const uint32_t*)n); \
armv8crypto.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:191:1: note: in expansion of macro 'FUNC'
armv8crypto.c: FUNC(8, MAKE8)
armv8crypto.c: ^~~~
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: /usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10998:1: error: inlining failed in call to always_inline 'vst1q_u64': target specific option mismatch
armv8crypto.c: vst1q_u64 (uint64_t * __a, uint64x2_t __b)
armv8crypto.c: ^~~~~~~~~
armv8crypto.c: armv8crypto.c:173:7: note: called from here
armv8crypto.c: vst1q_u64((uint64_t*)n, vaddq_u64(vreinterpretq_u64_u32(nv0i), vsetq_pair_u64(N,1))); \
armv8crypto.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:191:1: note: in expansion of macro 'FUNC'
armv8crypto.c: FUNC(8, MAKE8)
armv8crypto.c: ^~~~
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: /usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:642:1: error: inlining failed in call to always_inline 'vaddq_u64': target specific option mismatch
armv8crypto.c: vaddq_u64 (uint64x2_t __a, uint64x2_t __b)
armv8crypto.c: ^~~~~~~~~
armv8crypto.c: ...

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