Implementation notes: amd64, h4e450, crypto_kem/ntruhps2048509

Computer: h4e450
Architecture: amd64
CPU ID: AuthenticAMD-00500f20-178bfbff
SUPERCOP version: 20200618
Operation: crypto_kem
Primitive: ntruhps2048509
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
49638408073 0 084245 792 1608refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
519126523031 0 0101533 792 1608refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
530593537874 0 0115443 776 1576refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
58073276808 0 081417 768 1576refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
593227017932 0 093747 776 1576refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
593312617932 0 093747 776 1576refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
593545333872 0 0111123 776 1576refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
65382997925 0 083901 792 1608refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
70062417336 0 082213 784 1576refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
poly_r2_inv.c: poly_r2_inv.c:21:14: error: always_inline function '_pext_u64' requires target feature 'bmi2', but would be inlined into function 'poly_R2_tobytes' that is compiled without support for 'bmi2'
poly_r2_inv.c: out[i] = _pext_u64(coeff_pointer[2*i], 0x1000100010001);
poly_r2_inv.c: ^
poly_r2_inv.c: poly_r2_inv.c:22:15: error: always_inline function '_pext_u64' requires target feature 'bmi2', but would be inlined into function 'poly_R2_tobytes' that is compiled without support for 'bmi2'
poly_r2_inv.c: out[i] |= _pext_u64(coeff_pointer[2*i+1], 0x1000100010001) << 4;
poly_r2_inv.c: ^
poly_r2_inv.c: poly_r2_inv.c:24:12: error: always_inline function '_pext_u64' requires target feature 'bmi2', but would be inlined into function 'poly_R2_tobytes' that is compiled without support for 'bmi2'
poly_r2_inv.c: out[i] = _pext_u64(coeff_pointer[2*63], 0x1000100010001);
poly_r2_inv.c: ^
poly_r2_inv.c: poly_r2_inv.c:25:13: error: always_inline function '_pext_u64' requires target feature 'bmi2', but would be inlined into function 'poly_R2_tobytes' that is compiled without support for 'bmi2'
poly_r2_inv.c: out[i] |= _pext_u64(coeff_pointer[2*63+1], 0x1) << 4;
poly_r2_inv.c: ^
poly_r2_inv.c: 4 errors generated.

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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
poly_r2_inv.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:83:0,
poly_r2_inv.c: from poly_r2_inv.c:3:
poly_r2_inv.c: poly_r2_inv.c: In function 'poly_R2_tobytes':
poly_r2_inv.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/bmi2intrin.h:76:1: error: inlining failed in call to always_inline '_pext_u64': target specific option mismatch
poly_r2_inv.c: _pext_u64 (unsigned long long __X, unsigned long long __Y)
poly_r2_inv.c: ^~~~~~~~~
poly_r2_inv.c: poly_r2_inv.c:22:15: note: called from here
poly_r2_inv.c: out[i] |= _pext_u64(coeff_pointer[2*i+1], 0x1000100010001) << 4;
poly_r2_inv.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_r2_inv.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:83:0,
poly_r2_inv.c: from poly_r2_inv.c:3:
poly_r2_inv.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/bmi2intrin.h:76:1: error: inlining failed in call to always_inline '_pext_u64': target specific option mismatch
poly_r2_inv.c: _pext_u64 (unsigned long long __X, unsigned long long __Y)
poly_r2_inv.c: ^~~~~~~~~
poly_r2_inv.c: poly_r2_inv.c:21:14: note: called from here
poly_r2_inv.c: out[i] = _pext_u64(coeff_pointer[2*i], 0x1000100010001);
poly_r2_inv.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_r2_inv.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:83:0,
poly_r2_inv.c: from poly_r2_inv.c:3:
poly_r2_inv.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/bmi2intrin.h:76:1: error: inlining failed in call to always_inline '_pext_u64': target specific option mismatch
poly_r2_inv.c: _pext_u64 (unsigned long long __X, unsigned long long __Y)
poly_r2_inv.c: ^~~~~~~~~
poly_r2_inv.c: poly_r2_inv.c:25:13: note: called from here
poly_r2_inv.c: out[i] |= _pext_u64(coeff_pointer[2*63+1], 0x1) << 4;
poly_r2_inv.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_r2_inv.c: ...

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

Namespace violations

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
owcpa.o owcpa_dec T
owcpa.o owcpa_enc T
owcpa.o owcpa_keypair T
pack3.o poly_S3_frombytes T
pack3.o poly_S3_tobytes T
packq.o poly_Rq_sum_zero_frombytes T
packq.o poly_Rq_sum_zero_tobytes T
packq.o poly_Sq_frombytes T
packq.o poly_Sq_tobytes T
poly.o poly_Rq_inv T
poly.o poly_S3_mul T
poly.o poly_Sq_mul T
poly.o poly_Z3_to_Zq T
poly.o poly_trinary_Zq_to_Z3 T
poly_lift.o poly_lift T
poly_mod.o poly_Rq_to_S3 T
poly_mod.o poly_mod_3_Phi_n T
poly_mod.o poly_mod_q_Phi_n T
poly_r2_inv.o poly_R2_inv T
poly_rq_mul.o poly_Rq_mul T
poly_s3_inv.o poly_S3_inv T
sample.o sample_fg T
sample.o sample_fixed_type T
sample.o sample_rm T
sample_iid.o sample_iid T
verify.o cmov T
verify.o verify T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
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