Implementation notes: aarch64, rpi4ubuntu64, crypto_hash/blake2s

Computer: rpi4ubuntu64
Architecture: aarch64
CPU ID: 410fd083
SUPERCOP version: 20191221
Operation: crypto_hash
Primitive: blake2s
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1397410260 0 019607 840 728regsgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
1397610264 0 020856 848 744regsgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
1413810052 0 018583 824 720regsgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
152467596 0 018248 848 744refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
1533010416 0 020956 784 736regsclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020011020191221
166876828 0 016304 848 728refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
1692310376 0 019703 840 728regsgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
170596672 0 015320 832 720refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221
177637904 0 018444 784 736refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020011020191221
206727108 0 016560 848 728refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020011020191221

Compiler output

Implementation: avxicc
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s.s: blake2s.s:13:19: error: unknown token in expression
blake2s.s: xorl %r11d, %r11d
blake2s.s: ^
blake2s.s: blake2s.s:13:19: error: invalid operand
blake2s.s: xorl %r11d, %r11d
blake2s.s: ^
blake2s.s: blake2s.s:14:19: error: unknown token in expression
blake2s.s: xorl %ecx, %ecx
blake2s.s: ^
blake2s.s: blake2s.s:14:19: error: invalid operand
blake2s.s: xorl %ecx, %ecx
blake2s.s: ^
blake2s.s: blake2s.s:15:19: error: unknown token in expression
blake2s.s: movq %rsi, %r9
blake2s.s: ^
blake2s.s: blake2s.s:15:19: error: invalid operand
blake2s.s: movq %rsi, %r9
blake2s.s: ^
blake2s.s: blake2s.s:16:40: error: unexpected token in argument list
blake2s.s: vmovdqu .L_2il0floatpacket.10(%rip), %xmm4
blake2s.s: ^
blake2s.s: blake2s.s:17:19: error: unknown token in expression
blake2s.s: xorl %eax, %eax
blake2s.s: ^
blake2s.s: blake2s.s:17:19: error: invalid operand
blake2s.s: ...

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

Compiler output

Implementation: avxicc
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
blake2s.s: blake2s.s: Assembler messages:
blake2s.s: blake2s.s:13: Error: unknown mnemonic `xorl' -- `xorl %r11d,%r11d'
blake2s.s: blake2s.s:14: Error: unknown mnemonic `xorl' -- `xorl %ecx,%ecx'
blake2s.s: blake2s.s:15: Error: unknown mnemonic `movq' -- `movq %rsi,%r9'
blake2s.s: blake2s.s:16: Error: unknown mnemonic `vmovdqu' -- `vmovdqu .L_2il0floatpacket.10(%rip),%xmm4'
blake2s.s: blake2s.s:17: Error: unknown mnemonic `xorl' -- `xorl %eax,%eax'
blake2s.s: blake2s.s:18: Error: unknown mnemonic `vmovdqu' -- `vmovdqu .L_2il0floatpacket.7(%rip),%xmm0'
blake2s.s: blake2s.s:19: Error: unknown mnemonic `vmovdqa' -- `vmovdqa %xmm4,%xmm2'
blake2s.s: blake2s.s:20: Error: unknown mnemonic `vmovdqu' -- `vmovdqu .L_2il0floatpacket.8(%rip),%xmm1'
blake2s.s: blake2s.s:21: Error: unknown mnemonic `movq' -- `movq %rdx,%r8'
blake2s.s: blake2s.s:22: Error: unknown mnemonic `vmovdqu' -- `vmovdqu .L_2il0floatpacket.9(%rip),%xmm3'
blake2s.s: blake2s.s:23: Error: unknown mnemonic `xorl' -- `xorl %r10d,%r10d'
blake2s.s: blake2s.s:24: Error: unknown mnemonic `vmovdqu' -- `vmovdqu .L_2il0floatpacket.11(%rip),%xmm5'
blake2s.s: blake2s.s:25: Error: unknown mnemonic `cmpq' -- `cmpq $64,%rdx'
blake2s.s: blake2s.s:26: Error: unknown mnemonic `jbe' -- `jbe ..B1.5'
blake2s.s: blake2s.s:28: Error: unknown mnemonic `movq' -- `movq %rbp,-104(%rsp)'
blake2s.s: blake2s.s:29: Error: unknown mnemonic `lea' -- `lea -1(%rdx),%rsi'
blake2s.s: blake2s.s:30: Error: unknown mnemonic `sarq' -- `sarq $5,%rsi'
blake2s.s: blake2s.s:32: Error: unknown mnemonic `movq' -- `movq %rcx,%rbp'
blake2s.s: blake2s.s:33: Error: unknown mnemonic `shrq' -- `shrq $58,%rsi'
blake2s.s: blake2s.s:34: Error: unknown mnemonic `movq' -- `movq %rax,%rcx'
blake2s.s: blake2s.s:35: Error: unknown mnemonic `lea' -- `lea -1(%rsi,%rdx),%rdx'
blake2s.s: blake2s.s:36: Error: unknown mnemonic `sarq' -- `sarq $6,%rdx'
blake2s.s: blake2s.s:37: Error: unknown mnemonic `movq' -- `movq %rdx,%rax'
blake2s.s: blake2s.s:39: Error: unknown mnemonic `vmovdqu' -- `vmovdqu (%rcx,%r9),%xmm9'
blake2s.s: ...

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

Compiler output

Implementation: regs
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s.c: blake2s.c:796:11: warning: implicit conversion from 'unsigned long' to 'uint32_t' (aka 'unsigned int') changes value from 18446744073180816980 to 3766232660 [-Wconstant-conversion]
blake2s.c: v14 = ~0x1F83D9ABUL;
blake2s.c: ~ ^~~~~~~~~~~~~
blake2s.c: 1 warning generated.

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

Compiler output

Implementation: regs
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
blake2s.c: blake2s.c: In function 'crypto_hash_blake2s_regs':
blake2s.c: blake2s.c:796:11: warning: conversion from 'long unsigned int' to 'uint32_t' {aka 'unsigned int'} changes value from '18446744073180816980' to '3766232660' [-Woverflow]
blake2s.c: 796 | v14 = ~0x1F83D9ABUL;
blake2s.c: | ^

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

Compiler output

Implementation: xmm
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s.c: In file included from blake2s.c:21:
blake2s.c: ./blake2-config.h:68:2: error: "This code requires at least SSE2."
blake2s.c: #error "This code requires at least SSE2."
blake2s.c: ^
blake2s.c: In file included from blake2s.c:24:
blake2s.c: In file included from /usr/lib/llvm-9/lib/clang/9.0.0/include/emmintrin.h:13:
blake2s.c: In file included from /usr/lib/llvm-9/lib/clang/9.0.0/include/xmmintrin.h:13:
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:129:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:159:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:189:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:216:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: /usr/lib/llvm-9/lib/clang/9.0.0/include/mmintrin.h:239:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
blake2s.c: return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
blake2s.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blake2s.c: ...

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

Compiler output

Implementation: xmm
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
blake2s.c: In file included from blake2s.c:21:
blake2s.c: blake2-config.h:68:2: error: #error "This code requires at least SSE2."
blake2s.c: 68 | #error "This code requires at least SSE2."
blake2s.c: | ^~~~~
blake2s.c: blake2s.c:24:10: fatal error: emmintrin.h: No such file or directory
blake2s.c: 24 | #include <emmintrin.h>
blake2s.c: | ^~~~~~~~~~~~~
blake2s.c: compilation terminated.

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

Namespace violations

Implementation: ref
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s-ref.o blake2s T
blake2s-ref.o blake2s_final T
blake2s-ref.o blake2s_init T
blake2s-ref.o blake2s_init_key T
blake2s-ref.o blake2s_init_param T
blake2s-ref.o blake2s_update T

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