Implementation notes: aarch64, pmnod145, crypto_kem/bike1l1nc

Computer: pmnod145
Architecture: aarch64
CPU ID: 431f0af1
SUPERCOP version: 20191017
Operation: crypto_kem
Primitive: bike1l1nc

Compiler output

Implementation: ref_ntl
Security model: unknown
Compiler: armclang++ -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE
aes.c: clang-7: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
aes.c: In file included from aes.c:12:
aes.c: In file included from ./aes.h:21:
aes.c: In file included from /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/wmmintrin.h:27:
aes.c: In file included from /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/emmintrin.h:27:
aes.c: In file included from /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/xmmintrin.h:27:
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:47:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
aes.c: __builtin_ia32_emms();
aes.c: ^
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:47:5: note: '__builtin_isless' declared here
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:47:25: error: too few arguments to function call, expected 2, have 0
aes.c: __builtin_ia32_emms();
aes.c: ^
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:64:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
aes.c: return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
aes.c: ^
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:81:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
aes.c: return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
aes.c: ^
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:143:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
aes.c: return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
aes.c: ^
aes.c: /dibona_home_nfs/rdolbeau/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/lib/clang/7.1.0/include/mmintrin.h:173:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
aes.c: return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
aes.c: ^
aes.c: ...

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
armclang++ -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE ref_ntl
armclang++ -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O3 -fPIC -fPIE ref_ntl

Compiler output

Implementation: ref_ntl
Security model: unknown
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
aes.c: In file included from aes.c:12:
aes.c: aes.h:21:12: fatal error: wmmintrin.h: No such file or directory
aes.c: 21 | #include <wmmintrin.h>
aes.c: | ^~~~~~~~~~~~~
aes.c: compilation terminated.

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

Compiler output

Implementation: ref_ossl
Security model: unknown
Compiler: armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE
aes_ctr_prf.c: In file included from aes_ctr_prf.c:14:
aes_ctr_prf.c: ./utilities.h:93:28: error: unknown register name 'rdx' in asm
aes_ctr_prf.c: : "rdx");
aes_ctr_prf.c: ^
aes_ctr_prf.c: ./utilities.h:108:28: error: unknown register name 'rdx' in asm
aes_ctr_prf.c: : "rdx");
aes_ctr_prf.c: ^
aes_ctr_prf.c: ./utilities.h:125:28: error: unknown register name 'rdx' in asm
aes_ctr_prf.c: : "rdx");
aes_ctr_prf.c: ^
aes_ctr_prf.c: 3 errors generated.

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE ref_ossl
armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O3 -fPIC -fPIE ref_ossl

Compiler output

Implementation: ref_ossl
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
openssl_utils.c: openssl_utils.c: In function 'ossl_cyclic_product':
openssl_utils.c: openssl_utils.c:37:8: warning: implicit declaration of function 'BN_GF2m_mod_mul'; did you mean 'BN_mod_mul'? [-Wimplicit-function-declaration]
openssl_utils.c: 37 | if (BN_GF2m_mod_mul(r, a, b, m, bn_ctx) == 0) {
openssl_utils.c: | ^~~~~~~~~~~~~~~
openssl_utils.c: | BN_mod_mul
openssl_utils.c: openssl_utils.c: In function 'invert_poly':
openssl_utils.c: openssl_utils.c:64:19: warning: implicit declaration of function 'BN_GF2m_mod_inv' [-Wimplicit-function-declaration]
openssl_utils.c: 64 | inv_res = BN_GF2m_mod_inv(r, a, m, bn_ctx);
openssl_utils.c: | ^~~~~~~~~~~~~~~
openssl_utils.c: openssl_utils.c: In function 'ossl_add':
openssl_utils.c: openssl_utils.c:158:8: warning: implicit declaration of function 'BN_GF2m_add' [-Wimplicit-function-declaration]
openssl_utils.c: 158 | if (BN_GF2m_add(r, a, b) == 0) {
openssl_utils.c: | ^~~~~~~~~~~
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_kem_bike1l1nc.a(openssl_utils.o): in function `ossl_add':
try.c: openssl_utils.c:(.text+0x...): undefined reference to `BN_GF2m_add'
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_kem_bike1l1nc.a(openssl_utils.o): in function `cyclic_product':
try.c: openssl_utils.c:(.text+0x...): undefined reference to `BN_GF2m_mod_mul'
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_kem_bike1l1nc.a(openssl_utils.o): in function `mod_inv':
try.c: openssl_utils.c:(.text+0x...): undefined reference to `BN_GF2m_mod_inv'
try.c: collect2: error: ld returned 1 exit status

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