Implementation notes: riscv64, hifiveunleashedriscv, crypto_hash/blake2s

Computer: hifiveunleashedriscv
Architecture: riscv64
CPU ID: unknown CPU ID
SUPERCOP version: 20191221
Operation: crypto_hash
Primitive: blake2s
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
7316418100 0 024247 728 728regsgcc_-march=rv64gc_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
8996510002 0 015862 720 728refgcc_-march=rv64gc_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
9301611868 0 019496 736 728refgcc_-march=rv64gc_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
9845810544 0 016684 736 728refgcc_-march=rv64gc_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
10614612050 0 018292 736 728refgcc_-march=rv64gc_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
11422124778 0 031029 728 728regsgcc_-march=rv64gc_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
11437824778 0 032502 736 728regsgcc_-march=rv64gc_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221
15462420946 0 026888 720 728regsgcc_-march=rv64gc_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123020191221

Compiler output

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

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

Compiler output

Implementation: regs
Security model: unknown
Compiler: gcc -march=rv64gc -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=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE regs
gcc -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE regs
gcc -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE regs
gcc -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE regs

Compiler output

Implementation: xmm
Security model: unknown
Compiler: gcc -march=rv64gc -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=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE xmm
gcc -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE xmm
gcc -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE xmm
gcc -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE xmm

Namespace violations

Implementation: ref
Security model: unknown
Compiler: gcc -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -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: 4, namely:
CompilerImplementations
gcc -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=rv64gc -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=rv64gc -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=rv64gc -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref