Implementation notes: riscv64, hifiveunleashedriscv, crypto_aead/scream10v3

Computer: hifiveunleashedriscv
Architecture: riscv64
CPU ID: unknown CPU ID
SUPERCOP version: 20191221
Operation: crypto_aead
Primitive: scream10v3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
153022210942 0 023775 792 856refgcc_-march=rv64gc_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123120191221
22716335694 0 017097 792 856refgcc_-march=rv64gc_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123120191221
24146165220 0 015279 776 856refgcc_-march=rv64gc_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123120191221
27030825638 0 016399 792 856refgcc_-march=rv64gc_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019123120191221

Compiler output

Implementation: sse
Security model: unknown
Compiler: gcc -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
scream.c: scream.c: In function 'LBox16P':
scream.c: scream.c:16:32: warning: implicit declaration of function '__builtin_ia32_psrldi128'; did you mean '__builtin_fabsd128'? [-Wimplicit-function-declaration]
scream.c: 16 | #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
scream.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:199:10: note: in expansion of macro 'shift_right'
scream.c: 199 | t0 = shift_right(in[0]) & V(0xf);
scream.c: | ^~~~~~~~~~~
scream.c: scream.c:199:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
scream.c: 199 | t0 = shift_right(in[0]) & V(0xf);
scream.c: | ^~
scream.c: scream.c:200:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
scream.c: 200 | t1 = shift_right(in[2]) & V(0xf);
scream.c: | ^~
scream.c: scream.c:202:10: warning: implicit declaration of function '__builtin_ia32_pshufb128'; did you mean '__builtin_fabsf128'? [-Wimplicit-function-declaration]
scream.c: 202 | A = __builtin_ia32_pshufb128(table, t0);
scream.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: | __builtin_fabsf128
scream.c: scream.c:202:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c: scream.c:203:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c: 203 | C = __builtin_ia32_pshufb128(table, t1);
scream.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:207:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c: 207 | B = __builtin_ia32_pshufb128(table, t0);
scream.c: | ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:208:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c: ...

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

Namespace violations

Implementation: ref
Security model: unknown
Compiler: gcc -march=rv64gc -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
scream_cipher.o LS_decrypt T
scream_cipher.o LS_encrypt T
scream_cipher.o __a C
scream_cipher.o __b C
scream_cipher.o __c C
scream_cipher.o __d C

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