Implementation notes: armeabi, novena, crypto_stream/speck6496ctr

Computer: novena
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20220506
Operation: crypto_stream
Primitive: speck6496ctr

Compiler output

Implementation: T:neon
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: In file included from stream.c:20:
stream.c: In file included from ./Speck6496NEON.h:16:
stream.c: In file included from ./Intrinsics_NEON_64block.h:5:
stream.c: /usr/lib/llvm-11/lib/clang/11.0.1/include/arm_neon.h:32:2: error: "NEON support not enabled"
stream.c: #error "NEON support not enabled"
stream.c: ^
stream.c: stream.c:22:84: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
stream.c: inline __attribute__((always_inline)) int Encrypt(unsigned char *out, u32 nonce[], u128 rk[], u32 key[], int numbytes);
stream.c: ^~~~
stream.c: uint32_t
stream.c: ./Intrinsics_NEON_64block.h:10:14: note: expanded from macro 'u128'
stream.c: #define u128 uint32x4_t
stream.c: ^
stream.c: /usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h:26:20: note: 'uint32_t' declared here
stream.c: typedef __uint32_t uint32_t;
stream.c: ^
stream.c: stream.c:23:113: error: unknown type name 'uint32x4_t'; did you mean 'uint32_t'?
stream.c: inline __attribute__((always_inline)) int Encrypt_Xor(unsigned char *out, const unsigned char *in, u32 nonce[], u128 rk[], u32 key[], int numbytes);
stream.c: ^~~~
stream.c: uint32_t
stream.c: ./Intrinsics_NEON_64block.h:10:14: note: expanded from macro 'u128'
stream.c: #define u128 uint32x4_t
stream.c: ^
stream.c: /usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h:26:20: note: 'uint32_t' declared here
stream.c: typedef __uint32_t uint32_t;
stream.c: ...

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

Compiler output

Implementation: T:neon
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:139:13: error: too many arguments provided to function-like macro invocation
stream.c: Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Intrinsics_NEON_64block.h:36:9: note: macro 'ROR8' defined here
stream.c: #define ROR8(X) SET(vtbl1_u8((uint8x8_t)vget_low_u32(X),tableR),vtbl1_u8((uint8x8_t)vget_high_u32(X),tableR))
stream.c: ^
stream.c: stream.c:139:9: error: use of undeclared identifier 'ROR8'
stream.c: Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Speck6496NEON.h:42:23: note: expanded from macro 'Enc'
stream.c: #define Enc(X,Y,k,n) (Rx##n(X,Y,k[0]), Rx##n(X,Y,k[1]), Rx##n(X,Y,k[2]), Rx##n(X,Y,k[3]), Rx##n(X,Y,k[4]), Rx##n(X,Y,k[5]), Rx##n(X,Y,k[6]), Rx##n(X,Y,k[7]), \
stream.c: ^
stream.c: <scratch space>:189:1: note: expanded from here
stream.c: Rx16
stream.c: ^
stream.c: ./Speck6496NEON.h:27:61: note: expanded from macro 'Rx16'
stream.c: #define Rx16(X,Y,k) (X[0]=ROR8(X[0]), X[1]=ROR8(X[1]), X[2]=ROR8(X]=ROR8(X[3]), \
stream.c: ^
stream.c: stream.c:139:13: error: too many arguments provided to function-like macro invocation
stream.c: Enc(X,Y,rk,16);
stream.c: ^
stream.c: ./Intrinsics_NEON_64block.h:36:9: note: macro 'ROR8' defined here
stream.c: #define ROR8(X) SET(vtbl1_u8((uint8x8_t)vget_low_u32(X),tableR),vtbl1_u8((uint8x8_t)vget_high_u32(X),tableR))
stream.c: ^
stream.c: stream.c:139:9: error: use of undeclared identifier 'ROR8'
stream.c: ...

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

Compiler output

Implementation: T:neon
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: stream.c: In function ‘Encrypt’:
stream.c: stream.c:139:1: error: macro "ROR8" passed 29 arguments, but takes just 1
stream.c: 139 | Enc(X,Y,rk,16);
stream.c: | ^
stream.c: In file included from Speck6496NEON.h:16,
stream.c: from stream.c:20:
stream.c: Intrinsics_NEON_64block.h:36: note: macro "ROR8" defined here
stream.c: 36 | #define ROR8(X) SET(vtbl1_u8((uint8x8_t)vget_low_u32(X),tableR),vtbl1_u8((uint8x8_t)vget_high_u32(X),tableR))
stream.c: |
stream.c: In file included from stream.c:20:
stream.c: Speck6496NEON.h:27:61: error: ‘ROR8’ undeclared (first use in this function)
stream.c: 27 | #define Rx16(X,Y,k) (X[0]=ROR8(X[0]), X[1]=ROR8(X[1]), X[2]=ROR8(X]=ROR8(X[3]), \
stream.c: | ^~~~
stream.c: Speck6496NEON.h:42:23: note: in expansion of macro ‘Rx16’
stream.c: 42 | #define Enc(X,Y,k,n) (Rx##n(X,Y,k[0]), Rx##n(X,Y,k[1]), Rx##n(X,Y,k[2]), Rx##n(X,Y,k[3]), Rx##n(X,Y,k[4]), Rx##n(X,Y,k[5]), Rx##n(X,Y,k[6]), Rx##n(X,Y,k[7]), \
stream.c: | ^~
stream.c: stream.c:139:9: note: in expansion of macro ‘Enc’
stream.c: 139 | Enc(X,Y,rk,16);
stream.c: | ^~~
stream.c: Speck6496NEON.h:27:61: note: each undeclared identifier is reported only once for each function it appears in
stream.c: 27 | #define Rx16(X,Y,k) (X[0]=ROR8(X[0]), X[1]=ROR8(X[1]), X[2]=ROR8(X]=ROR8(X[3]), \
stream.c: | ^~~~
stream.c: Speck6496NEON.h:42:23: note: in expansion of macro ‘Rx16’
stream.c: 42 | #define Enc(X,Y,k,n) (Rx##n(X,Y,k[0]), Rx##n(X,Y,k[1]), Rx##n(X,Y,k[2]), Rx##n(X,Y,k[3]), Rx##n(X,Y,k[4]), Rx##n(X,Y,k[5]), Rx##n(X,Y,k[6]), Rx##n(X,Y,k[7]), \
stream.c: | ^~
stream.c: ...

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