Implementation notes: amd64, h4e450, crypto_kem/ntruhps2048677

Computer: h4e450
Architecture: amd64
CPU ID: AuthenticAMD-00500f20-178bfbff
SUPERCOP version: 20200618
Operation: crypto_kem
Primitive: ntruhps2048677
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
86564288031 0 084197 792 1608refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
906765023702 0 0102189 792 1608refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
924122931023 0 0108579 776 1576refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
100269656769 0 081369 768 1576refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
1025800114976 0 090803 776 1576refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
1025812827932 0 0105171 776 1576refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
1025966814976 0 090803 776 1576refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020051320200510
114341867881 0 083853 792 1608refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020051320200510
121768347310 0 082181 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_s3_inv.c: poly_s3_inv.c:362:11: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F0[0] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:363:11: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F0[1] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:364:11: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F0[2] = _mm256_set_epi32(511,-1,511,-1,511,-1,1023,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:365:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F1[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:366:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F1[1] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:367:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: F1[2] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:369:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: V0[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:370:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: V1[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:371:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'xsave'
poly_s3_inv.c: ...

Number of similar (compiler,implementation) pairs: 4, 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

Compiler output

Implementation: avx2
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
poly_s3_inv.c: poly_s3_inv.c:362:11: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F0[0] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:363:11: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F0[1] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:364:11: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F0[2] = _mm256_set_epi32(511,-1,511,-1,511,-1,1023,-1);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:365:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F1[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:366:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F1[1] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:367:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: F1[2] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:369:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: V0[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:370:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: V1[0] = _mm256_set1_epi32(0);
poly_s3_inv.c: ^
poly_s3_inv.c: poly_s3_inv.c:371:11: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function '__poly_S3_inv' that is compiled without support for 'sse4.2'
poly_s3_inv.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
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_s3_inv.c: poly_s3_inv.c: In function '__poly_S3_inv':
poly_s3_inv.c: poly_s3_inv.c:362:9: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
poly_s3_inv.c: F0[0] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
poly_s3_inv.c: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_s3_inv.c: poly_s3_inv.c: In function 'vec256_swap':
poly_s3_inv.c: poly_s3_inv.c:178:20: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
poly_s3_inv.c: static inline void vec256_swap(vec256 *f,vec256 *g,int len,vec256 mask)
poly_s3_inv.c: ^~~~~~~~~~~
poly_s3_inv.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
poly_s3_inv.c: from poly_s3_inv.c:3:
poly_s3_inv.c: poly_s3_inv.c: In function 'vec256_frombits':
poly_s3_inv.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:597:1: error: inlining failed in call to always_inline '_mm256_shuffle_epi32': target specific option mismatch
poly_s3_inv.c: _mm256_shuffle_epi32 (__m256i __A, const int __mask)
poly_s3_inv.c: ^~~~~~~~~~~~~~~~~~~~
poly_s3_inv.c: poly_s3_inv.c:69:7: note: called from here
poly_s3_inv.c: h = _mm256_shuffle_epi32(h,0xd8);
poly_s3_inv.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_s3_inv.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
poly_s3_inv.c: from poly_s3_inv.c:3:
poly_s3_inv.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:1068:1: error: inlining failed in call to always_inline '_mm256_permute4x64_epi64': target specific option mismatch
poly_s3_inv.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
poly_s3_inv.c: ^~~~~~~~~~~~~~~~~~~~~~~~
poly_s3_inv.c: poly_s3_inv.c:68:7: note: called from here
poly_s3_inv.c: h = _mm256_permute4x64_epi64(h,0xd8);
poly_s3_inv.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poly_s3_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