Implementation notes: aarch64, jetsontx1, crypto_hash/blake2s

Computer: jetsontx1
Architecture: aarch64
CPU ID: unknown CPU ID
SUPERCOP version: 20180818
Operation: crypto_hash
Primitive: blake2s
TimeImplementationCompilerBenchmark dateSUPERCOP version
12879regsclang-6.0 -mcpu=cortex-a57 -Os -fomit-frame-pointer -fwrapv2018101320180818
13944regsgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2018101320180818
13944regsgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2018101320180818
14664regsclang-6.0 -mcpu=cortex-a57 -O3 -fomit-frame-pointer -fwrapv2018101320180818
14668regsclang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv2018101320180818
14930refclang-6.0 -mcpu=cortex-a57 -Os -fomit-frame-pointer -fwrapv2018101320180818
15076refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2018101320180818
15897regsgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2018101320180818
16943refclang-6.0 -mcpu=cortex-a57 -O3 -fomit-frame-pointer -fwrapv2018101320180818
17651refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2018101320180818
17839refclang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv2018101320180818
18142refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2018101320180818

Compiler output

Implementation: crypto_hash/blake2s/xmm
Compiler: clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv
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-6.0/lib/clang/6.0.0/include/emmintrin.h:27:
blake2s.c: In file included from /usr/lib/llvm-6.0/lib/clang/6.0.0/include/xmmintrin.h:27:
blake2s.c: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/mmintrin.h:64: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-6.0/lib/clang/6.0.0/include/mmintrin.h:143: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-6.0/lib/clang/6.0.0/include/mmintrin.h:173: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-6.0/lib/clang/6.0.0/include/mmintrin.h:203: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-6.0/lib/clang/6.0.0/include/mmintrin.h:230: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-6.0/lib/clang/6.0.0/include/mmintrin.h:253: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: 3, namely:
CompilerImplementations
clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv xmm
clang-6.0 -mcpu=cortex-a57 -O3 -fomit-frame-pointer -fwrapv xmm
clang-6.0 -mcpu=cortex-a57 -Os -fomit-frame-pointer -fwrapv xmm

Compiler output

Implementation: crypto_hash/blake2s/regs
Compiler: clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv
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: 3, namely:
CompilerImplementations
clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv regs
clang-6.0 -mcpu=cortex-a57 -O3 -fomit-frame-pointer -fwrapv regs
clang-6.0 -mcpu=cortex-a57 -Os -fomit-frame-pointer -fwrapv regs

Compiler output

Implementation: crypto_hash/blake2s/avxicc
Compiler: clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv
blake2s.s: clang: warning: argument unused during compilation: '-fomit-frame-pointer' [-Wunused-command-line-argument]
blake2s.s: clang: warning: argument unused during compilation: '-fwrapv' [-Wunused-command-line-argument]
blake2s.s: clang: warning: argument unused during compilation: '-D SUPERCOP' [-Wunused-command-line-argument]
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: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang-6.0 -mcpu=cortex-a57 -O2 -fomit-frame-pointer -fwrapv avxicc
clang-6.0 -mcpu=cortex-a57 -O3 -fomit-frame-pointer -fwrapv avxicc
clang-6.0 -mcpu=cortex-a57 -Os -fomit-frame-pointer -fwrapv avxicc

Compiler output

Implementation: crypto_hash/blake2s/xmm
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
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 gt;
blake2s.c: ^~~~~~~~~~~~~
blake2s.c: compilation terminated.

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

Compiler output

Implementation: crypto_hash/blake2s/regs
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
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: v14 = ~0x1F83D9ABUL;
blake2s.c: ^

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

Compiler output

Implementation: crypto_hash/blake2s/avxicc
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
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: 3, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv avxicc
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv avxicc
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv avxicc