Implementation notes: armeabi, berry2, crypto_kem/sikep503

Computer: berry2
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20201018
Operation: crypto_kem
Primitive: sikep503
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
98945410079084 0 0103010 408 1536T:optclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020090720200826
125721047854040 0 069120 404 1528T:optgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090720200826
139101068230420 0 043676 404 1528T:optgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090720200826
157505312423832 0 036572 396 1528T:optgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090720200826
171866053827416 0 040744 404 1528T:optgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020090720200826

Compiler output

Implementation: T:ms
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
fp_x64_asm.S: fp_x64_asm.S:7:1: error: unknown directive
fp_x64_asm.S: .intel_syntax noprefix
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:63:8: error: invalid operand for instruction
fp_x64_asm.S: push r12
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:64:8: error: invalid operand for instruction
fp_x64_asm.S: push r13
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:65:8: error: invalid operand for instruction
fp_x64_asm.S: push r14
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:66:8: error: invalid operand for instruction
fp_x64_asm.S: push r15
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:68:3: error: invalid instruction, did you mean: eor, orr, ror?
fp_x64_asm.S: xor rax, rax
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:69:3: error: invalid instruction, any one of the following would fix this:
fp_x64_asm.S: mov r8, [rdi]
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:69:3: note: instruction requires: armv6t2
fp_x64_asm.S: mov r8, [rdi]
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:69:3: note: instruction requires: thumb2
fp_x64_asm.S: ...

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

Compiler output

Implementation: T:ms
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
P503.c: In file included from P503_internal.h:10,
P503.c: from P503.c:8:
P503.c: config.h:97:5: error: unable to emulate 'TI'
P503.c: typedef unsigned uint128_t __attribute__((mode(TI)));
P503.c: ^~~~~~~
P503.c: In file included from P503_internal.h:10,
P503.c: from P503.c:8:
P503.c: fpx.inc: In function 'mp_add':
P503.c: config.h:247:36: warning: right shift count >= width of type [-Wshift-count-overflow]
P503.c: (carryOut) = (digit_t)(tempReg >> RADIX); \
P503.c: ^~
P503.c: fpx.inc:511:9: note: in expansion of macro 'ADDC'
P503.c: ADDC(carry, a[i], b[i], carry, c[i]);
P503.c: ^~~~

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp2':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostopk':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o):encoding.c:(.text+0x...): more undefined references to `__gmpz_cmp' follow
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `mp_import':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_import'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `mp_export':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_export'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `mp_sizeinbase':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_sizeinbase'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `mp_pow':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_ui_pow_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `mp_mod':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_init':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_init'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_add_fp':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_add'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_clear':
try.c: ...

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_zero':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_unity':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_constant_fp':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_subtract':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_sub'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_square':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_multiply':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `nist_rand':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_sizeinbase'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_import'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_pow':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_powm'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_negative':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set'
try.c: ...

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp2':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostopk':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o):encoding.c:(.text+0x...): more undefined references to `__gmpz_cmp' follow
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_zero':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_unity':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_constant_fp':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_subtract':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_sub'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_square':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_multiply':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `nist_rand':
try.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_kem_sikep503.a(encoding.o): in function `ostofp':
try.c: encoding.c:(.text+0x...): undefined reference to `__gmpz_cmp'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_zero':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_unity':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_constant_fp':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set_ui'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_subtract':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_sub'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_square':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_multiply':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_mul'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_pow':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_powm'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_negative':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set'
try.c: /usr/bin/ld: fp.c:(.text+0x...): undefined reference to `__gmpz_mod'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_copy_fp':
try.c: fp.c:(.text+0x...): undefined reference to `__gmpz_set'
try.c: /usr/bin/ld: crypto_kem_sikep503.a(fp.o): in function `gmp_isConstant':
try.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:x64
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
fp_x64_asm.S: fp_x64_asm.S:7:1: error: unknown directive
fp_x64_asm.S: .intel_syntax noprefix
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:37:8: error: invalid operand for instruction
fp_x64_asm.S: push r12
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:38:8: error: invalid operand for instruction
fp_x64_asm.S: push r13
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:39:8: error: invalid operand for instruction
fp_x64_asm.S: push r14
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:40:8: error: invalid operand for instruction
fp_x64_asm.S: push r15
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:42:3: error: invalid instruction, did you mean: eor, orr, ror?
fp_x64_asm.S: xor rax, rax
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:43:3: error: invalid instruction, any one of the following would fix this:
fp_x64_asm.S: mov r8, [rdi]
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:43:3: note: instruction requires: armv6t2
fp_x64_asm.S: mov r8, [rdi]
fp_x64_asm.S: ^
fp_x64_asm.S: fp_x64_asm.S:43:3: note: instruction requires: thumb2
fp_x64_asm.S: ...

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

Compiler output

Implementation: T:x64
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
P503.c: In file included from api.h:10,
P503.c: from P503_internal.h:10,
P503.c: from P503.c:7:
P503.c: config.h:42:1: error: unable to emulate 'TI'
P503.c: typedef unsigned uint128_t __attribute__((mode(TI)));
P503.c: ^~~~~~~
P503.c: In file included from api.h:10,
P503.c: from P503_internal.h:10,
P503.c: from P503.c:7:
P503.c: fpx.inc: In function 'fp2mul503_mont':
P503.c: config.h:86:36: warning: right shift count >= width of type [-Wshift-count-overflow]
P503.c: (carryOut) = (digit_t)(tempReg >> RADIX); \
P503.c: ^~
P503.c: fpx.inc:200:9: note: in expansion of macro 'ADDC'
P503.c: ADDC(borrow, tt3[NWORDS_FIELD+i], ((digit_t*)PRIME)[i] & mask, borrow, tt3[NWORDS_FIELD+i]);
P503.c: ^~~~
P503.c: fpx.inc: In function 'mp_add':
P503.c: config.h:86:36: warning: right shift count >= width of type [-Wshift-count-overflow]
P503.c: (carryOut) = (digit_t)(tempReg >> RADIX); \
P503.c: ^~
P503.c: fpx.inc:350:9: note: in expansion of macro 'ADDC'
P503.c: ADDC(carry, a[i], b[i], carry, c[i]);
P503.c: ^~~~

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

Namespace violations

Implementation: T:opt
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
P503.o A_gen R
P503.o Alice_order R
P503.o B_gen R
P503.o Bob_order R
P503.o Border_div3 R
P503.o EphemeralKeyGeneration_A T
P503.o EphemeralKeyGeneration_B T
P503.o EphemeralSecretAgreement_A T
P503.o EphemeralSecretAgreement_B T
P503.o Montgomery_R2 R
P503.o Montgomery_Rprime R
P503.o Montgomery_one R
P503.o Montgomery_rprime R
P503.o copy_words T
P503.o eval_3_isog T
P503.o eval_4_isog T
P503.o fp2add503 T
P503.o fp2copy503 T
P503.o fp2correction503 T
P503.o fp2div2_503 T
P503.o fp2inv503_mont T
P503.o fp2mul503_mont T
P503.o fp2neg503 T
P503.o fp2sqr503_mont T
P503.o fp2sub503 T
P503.o fp2zero503 T
P503.o fpcopy503 T
P503.o fpinv503_chain_mont T
P503.o fpinv503_mont T
P503.o fpmul503_mont T
P503.o fpsqr503_mont T
P503.o fpzero503 T
P503.o from_fp2mont T
P503.o from_mont T
P503.o get_3_isog T
P503.o get_4_isog T
P503.o get_A T
P503.o inv_3_way T
P503.o j_inv T
P503.o mp_add T
P503.o mp_shiftl1 T
P503.o mp_shiftleft T
P503.o mp_shiftr1 T
P503.o mp_sub T
P503.o p503 R
P503.o p503p1 R
P503.o p503x2 R
P503.o random_mod_order_A T
P503.o random_mod_order_B T
P503.o strat_Alice R
P503.o strat_Bob R
P503.o to_fp2mont T
P503.o to_mont T
P503.o xDBL T
P503.o xDBLADD T
P503.o xDBLe T
P503.o xTPL T
P503.o xTPLe T
fips202.o KeccakF1600_StatePermute T
fips202.o cshake128_simple T
fips202.o cshake128_simple_absorb T
fips202.o cshake128_simple_squeezeblocks T
fips202.o cshake256_simple T
fips202.o cshake256_simple_absorb T
fips202.o cshake256_simple_squeezeblocks T
fips202.o shake128 T
fips202.o shake128_absorb T
fips202.o shake128_squeezeblocks T
fips202.o shake256 T
fips202.o shake256_absorb T
fips202.o shake256_squeezeblocks T
fp_generic.o digit_x_digit T
fp_generic.o fpadd503 T
fp_generic.o fpcorrection503 T
fp_generic.o fpdiv2_503 T
fp_generic.o fpneg503 T
fp_generic.o fpsub503 T
fp_generic.o mp_mul T
fp_generic.o rdc_mont T

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