Implementation notes: armeabi, rpi3b, crypto_aead/scream10v1

Computer: rpi3b
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20191221
Operation: crypto_aead
Primitive: scream10v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
114248311400 0 030383 432 776refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020010820191221
12994819176 0 030897 432 800refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020010820191221
21025326536 0 023035 432 776refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020010820191221
22916536396 0 023483 432 776refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020010820191221
23701516092 0 022479 424 776refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020010820191221

Compiler output

Implementation: neon
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
scream.c: In file included from scream.c:10:
scream.c: In file included from ./tae.h:7:
scream.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/arm_neon.h:28:2: error: "NEON support not enabled"
scream.c: #error "NEON support not enabled"
scream.c: ^
scream.c: scream.c:189:10: error: use of unknown builtin '__builtin_shuffle' [-Wimplicit-function-declaration]
scream.c: A = __builtin_shuffle(table, t0);
scream.c: ^
scream.c: scream.c:189:8: error: assigning to 'v16qu' (aka 'uint8x16_t') from incompatible type 'int'
scream.c: A = __builtin_shuffle(table, t0);
scream.c: ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:190:8: error: assigning to 'v16qu' (aka 'uint8x16_t') from incompatible type 'int'
scream.c: C = __builtin_shuffle(table, t1);
scream.c: ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:194:8: error: assigning to 'v16qu' (aka 'uint8x16_t') from incompatible type 'int'
scream.c: B = __builtin_shuffle(table, t0);
scream.c: ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:195:8: error: assigning to 'v16qu' (aka 'uint8x16_t') from incompatible type 'int'
scream.c: D = __builtin_shuffle(table, t1);
scream.c: ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:199:7: error: cannot convert between vector values of different size ('v16qu' (aka 'uint8x16_t') and 'int')
scream.c: A ^= __builtin_shuffle(table, in[0]);
scream.c: ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:200:7: error: cannot convert between vector values of different size ('v16qu' (aka 'uint8x16_t') and 'int')
scream.c: C ^= __builtin_shuffle(table, in[2]);
scream.c: ...

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

Compiler output

Implementation: neon
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
scream.c: In file included from tae.h:7:0,
scream.c: from scream.c:10:
scream.c: helper.h: In function 'write128':
scream.c: /usr/lib/gcc/arm-linux-gnueabihf/6/include/arm_neon.h:8519:1: error: inlining failed in call to always_inline 'vzipq_u8': target specific option mismatch
scream.c: vzipq_u8 (uint8x16_t __a, uint8x16_t __b)
scream.c: ^~~~~~~~
scream.c: In file included from scream.c:13:0:
scream.c: helper.h:10:18: note: called from here
scream.c: uint8x16x2_t c__ = vzipq_u8 (X(i), X(j)); \
scream.c: ^
scream.c: helper.h:49:3: note: in expansion of macro 'INTERLEAVE'
scream.c: INTERLEAVE(14, 15);
scream.c: ^~~~~~~~~~
scream.c: In file included from tae.h:7:0,
scream.c: from scream.c:10:
scream.c: /usr/lib/gcc/arm-linux-gnueabihf/6/include/arm_neon.h:8519:1: error: inlining failed in call to always_inline 'vzipq_u8': target specific option mismatch
scream.c: vzipq_u8 (uint8x16_t __a, uint8x16_t __b)
scream.c: ^~~~~~~~
scream.c: In file included from scream.c:13:0:
scream.c: helper.h:10:18: note: called from here
scream.c: uint8x16x2_t c__ = vzipq_u8 (X(i), X(j)); \
scream.c: ^
scream.c: helper.h:48:3: note: in expansion of macro 'INTERLEAVE'
scream.c: INTERLEAVE(12, 13);
scream.c: ^~~~~~~~~~
scream.c: ...

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

Compiler output

Implementation: sse
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
scream.c: scream.c:180:5: error: invalid output constraint '=x' in asm
scream.c: READ(tables[0], table);
scream.c: ^
scream.c: scream.c:175:18: note: expanded from macro 'READ'
scream.c: [data] "=x" (x): \
scream.c: ^
scream.c: scream.c:182:10: error: use of unknown builtin '__builtin_ia32_psrldi128' [-Wimplicit-function-declaration]
scream.c: t0 = shift_right(in[0]) & V(0xf);
scream.c: ^
scream.c: scream.c:16:32: note: expanded from macro 'shift_right'
scream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
scream.c: ^
scream.c: scream.c:182:10: error: invalid conversion between vector type 'v16qi' (vector of 16 'char' values) and integer type 'int' of different size
scream.c: t0 = shift_right(in[0]) & V(0xf);
scream.c: ^~~~~~~~~~~~~~~~~~
scream.c: scream.c:16:25: note: expanded from macro 'shift_right'
scream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
scream.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:183:10: error: invalid conversion between vector type 'v16qi' (vector of 16 'char' values) and integer type 'int' of different size
scream.c: t1 = shift_right(in[2]) & V(0xf);
scream.c: ^~~~~~~~~~~~~~~~~~
scream.c: scream.c:16:25: note: expanded from macro 'shift_right'
scream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
scream.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:185:10: error: use of unknown builtin '__builtin_ia32_pshufb128' [-Wimplicit-function-declaration]
scream.c: ...

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

Compiler output

Implementation: sse
Security model: unknown
Compiler: gcc -march=native -mtune=native -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' [-Wimplicit-function-declaration]
scream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
scream.c: ^
scream.c: scream.c:182:10: note: in expansion of macro 'shift_right'
scream.c: t0 = shift_right(in[0]) & V(0xf);
scream.c: ^~~~~~~~~~~
scream.c: scream.c:182:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
scream.c: t0 = shift_right(in[0]) & V(0xf);
scream.c: ^~
scream.c: scream.c:183:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
scream.c: t1 = shift_right(in[2]) & V(0xf);
scream.c: ^~
scream.c: scream.c:185:10: warning: implicit declaration of function '__builtin_ia32_pshufb128' [-Wimplicit-function-declaration]
scream.c: A = __builtin_ia32_pshufb128(table, t0);
scream.c: ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:185:8: error: incompatible types when assigning to type 'v16qi {aka __vector(16) char}' from type 'int'
scream.c: A = __builtin_ia32_pshufb128(table, t0);
scream.c: ^
scream.c: scream.c:186:8: error: incompatible types when assigning to type 'v16qi {aka __vector(16) char}' from type 'int'
scream.c: C = __builtin_ia32_pshufb128(table, t1);
scream.c: ^
scream.c: scream.c:190:8: error: incompatible types when assigning to type 'v16qi {aka __vector(16) char}' from type 'int'
scream.c: B = __builtin_ia32_pshufb128(table, t0);
scream.c: ^
scream.c: ...

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

Namespace violations

Implementation: ref
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
scream_cipher.o LS_decrypt T
scream_cipher.o LS_encrypt 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