Implementation notes: aarch64, gcc185, crypto_hash/blake2s

Computer: gcc185
Microarchitecture: aarch64; Skylark (503f0002)
Architecture: aarch64
CPU ID: 503f0002
SUPERCOP version: 20240107
Operation: crypto_hash
Primitive: blake2s
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1462510460 0 022786 800 736T:regsclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
1462510264 0 021589 808 744T:regsgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1462510264 0 022782 816 760T:regsgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1470010444 0 024570 800 744T:regsclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
1470010460 0 021170 800 736T:regsclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
1470010444 0 024570 800 744T:regsclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
174007616 0 020182 816 760T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
176256668 0 018134 816 744T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1777510504 0 020964 792 736T:regsclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121320231212
195006588 0 016998 800 736T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
1950010832 0 021125 792 736T:regsgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
678007912 0 019182 816 744T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212
11970013624 0 024781 808 744T:regsgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121320231212

Compiler output

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

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

Compiler output

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s-ref.c: In file included from blake2s-ref.c:19:
blake2s-ref.c: ./blake2.h:101:23: error: size of array element of type 'blake2s_state' (aka 'struct __blake2s_state') (185 bytes) isn't a multiple of its alignment (64 bytes)
blake2s-ref.c: 101 | blake2s_state S[8][1];
blake2s-ref.c: | ^
blake2s-ref.c: ./blake2.h:102:20: error: size of array element of type 'blake2s_state' (aka 'struct __blake2s_state') (185 bytes) isn't a multiple of its alignment (64 bytes)
blake2s-ref.c: 102 | blake2s_state R[1];
blake2s-ref.c: | ^
blake2s-ref.c: ./blake2.h:109:23: error: size of array element of type 'blake2b_state' (aka 'struct __blake2b_state') (361 bytes) isn't a multiple of its alignment (64 bytes)
blake2s-ref.c: 109 | blake2b_state S[4][1];
blake2s-ref.c: | ^
blake2s-ref.c: ./blake2.h:110:20: error: size of array element of type 'blake2b_state' (aka 'struct __blake2b_state') (361 bytes) isn't a multiple of its alignment (64 bytes)
blake2s-ref.c: 110 | blake2b_state R[1];
blake2s-ref.c: | ^
blake2s-ref.c: blake2s-ref.c:331:18: error: size of array element of type 'blake2s_state' (aka 'struct __blake2s_state') (185 bytes) isn't a multiple of its alignment (64 bytes)
blake2s-ref.c: 331 | blake2s_state S[1];
blake2s-ref.c: | ^
blake2s-ref.c: 5 errors generated.

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

Compiler output

Implementation: T:regs
Security model: timingleaks
Compiler: clang -march=native -O2 -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: 796 | v14 = ~0x1F83D9ABUL;
blake2s.c: | ~ ^~~~~~~~~~~~~
blake2s.c: 1 warning generated.

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

Compiler output

Implementation: T:regs
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
blake2s.c: blake2s.c: In function 'crypto_hash_blake2s_regs_timingleaks':
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: 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 T:regs
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:regs
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:regs
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:regs

Compiler output

Implementation: T:xmm
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
blake2s.c: In file included from blake2s.c:19:
blake2s.c: ./blake2.h:101:23: error: size of array element of type 'blake2s_state' (aka 'struct __blake2s_state') (185 bytes) isn't a multiple of its alignment (64 bytes)
blake2s.c: 101 | blake2s_state S[8][1];
blake2s.c: | ^
blake2s.c: ./blake2.h:102:20: error: size of array element of type 'blake2s_state' (aka 'struct __blake2s_state') (185 bytes) isn't a multiple of its alignment (64 bytes)
blake2s.c: 102 | blake2s_state R[1];
blake2s.c: | ^
blake2s.c: ./blake2.h:109:23: error: size of array element of type 'blake2b_state' (aka 'struct __blake2b_state') (361 bytes) isn't a multiple of its alignment (64 bytes)
blake2s.c: 109 | blake2b_state S[4][1];
blake2s.c: | ^
blake2s.c: ./blake2.h:110:20: error: size of array element of type 'blake2b_state' (aka 'struct __blake2b_state') (361 bytes) isn't a multiple of its alignment (64 bytes)
blake2s.c: 110 | blake2b_state R[1];
blake2s.c: | ^
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: 68 | #error "This code requires at least SSE2."
blake2s.c: | ^
blake2s.c: In file included from blake2s.c:24:
blake2s.c: /usr/bin/../lib/clang/17/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
blake2s.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
blake2s.c: | ^
blake2s.c: In file included from blake2s.c:24:
blake2s.c: In file included from /usr/bin/../lib/clang/17/include/emmintrin.h:17:
blake2s.c: /usr/bin/../lib/clang/17/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
blake2s.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
blake2s.c: ...

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

Compiler output

Implementation: T:xmm
Security model: timingleaks
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: #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: #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 T:xmm
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:xmm
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:xmm
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:xmm