Implementation notes: aarch64, lionheart30, crypto_aead/aezv4

Computer: lionheart30
Architecture: aarch64
CPU ID: unknown CPU ID
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: aezv4
TimeImplementationCompilerBenchmark dateSUPERCOP version
579462refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016082020160806
1268512refclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016082020160806
1325500refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016082020160806
1363042refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016082020160806
1446523refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016082020160806

Compiler output

Implementation: crypto_aead/aezv4/aesni
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.c: encrypt.c:181: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:210:8: error: unknown type name 'block'
encrypt.c: static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c: ^
encrypt.c: encrypt.c:210:23: error: unknown type name 'block'
encrypt.c: static block zero_pad(block x, unsigned zero_bytes) {
encrypt.c: ^
encrypt.c: encrypt.c:211: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:214: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:214: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:215:5: error: use of undeclared identifier 'block'
encrypt.c: block *p = (block*)(pad + one_zero_bytes);
encrypt.c: ^
encrypt.c: encrypt.c:215:12: error: use of undeclared identifier 'p'
encrypt.c: block *p = (block*)(pad + one_zero_bytes);
encrypt.c: ^
encrypt.c: encrypt.c:215:17: error: use of undeclared identifier 'block'
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments aesni

Compiler output

Implementation: crypto_aead/aezv4/aesni
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'srl4':
encrypt.c: encrypt.c:130:5: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
encrypt.c: uint8x16_t tmp = vandq_u8(vshrq_n_s8(vextq_u8(x, x, 1),4),mask);
encrypt.c: ^~~~~~~~~~
encrypt.c: encrypt.c:130:42: error: incompatible type for argument 1 of 'vshrq_n_s8'
encrypt.c: uint8x16_t tmp = vandq_u8(vshrq_n_s8(vextq_u8(x, x, 1),4),mask);
encrypt.c: ^~~~~~~~
encrypt.c: In file included from encrypt.c:113:0:
encrypt.c: /usr/local/gcc-6.1.0/lib/gcc/aarch64-unknown-linux-gnu/6.1.0/include/arm_neon.h:22247:1: note: expected 'int8x16_t' but argument is of type 'uint8x16_t'
encrypt.c: vshrq_n_s8 (int8x16_t __a, const int __b)
encrypt.c: ^~~~~~~~~~
encrypt.c: encrypt.c: In function 'sll4':
encrypt.c: encrypt.c:136:33: error: incompatible type for argument 1 of 'vshlq_n_s8'
encrypt.c: uint8x16_t tmp = vshlq_n_s8(vandq_u8(vextq_u8(x, x, 15),mask),4);
encrypt.c: ^~~~~~~~
encrypt.c: In file included from encrypt.c:113:0:
encrypt.c: /usr/local/gcc-6.1.0/lib/gcc/aarch64-unknown-linux-gnu/6.1.0/include/arm_neon.h:21957:1: note: expected 'int8x16_t' but argument is of type 'uint8x16_t'
encrypt.c: vshlq_n_s8 (int8x16_t __a, const int __b)
encrypt.c: ^~~~~~~~~~
encrypt.c: encrypt.c: In function 'double_block':
encrypt.c: encrypt.c:144:17: error: incompatible types when initializing type 'uint8x16_t' using type 'int8x16_t'
encrypt.c: block tmp = vshrq_n_s8((int8x16_t)b,7);
encrypt.c: ^~~~~~~~~~
encrypt.c: encrypt.c: At top level:
encrypt.c: encrypt.c:234:31: error: unknown type name 'size_t'
encrypt.c: ...

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