Implementation notes: amd64, h4e450, crypto_core/invhrss701

Computer: h4e450
Architecture: amd64
CPU ID: AuthenticAMD-00500f20-178bfbff
SUPERCOP version: 20200618
Operation: crypto_core
Primitive: invhrss701
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
135876937199 0 019640 760 760refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
1407934710376 0 023688 784 832simplergcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
145007906813 0 018952 760 760refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
149718347093 0 020342 776 832refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
165077846109 0 016840 760 760refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
165079846109 0 016840 760 760refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
220259494656 0 017096 760 760simplerclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
239223964591 0 016728 760 760simplerclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
239744572981 0 013712 760 760simplerclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
239783612981 0 013712 760 760simplerclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
37618822895 0 011581 768 832simplergcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
44355153718 0 010182 752 760simplerclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
44365299921 0 011605 768 832simplergcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
54202259758 0 010513 752 800simplergcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
681719761356 0 012021 768 832refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
691205181428 0 010886 752 760refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
706451301255 0 011009 752 800refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
711032111396 0 012045 768 832refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409

Test failure

Implementation: avx2
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111

Number of similar (compiler,implementation) pairs: 18, 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
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
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE faster921
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE faster921
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE faster921
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE faster921
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE faster921
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE faster921
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE faster921
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE faster921
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE faster921

Compiler output

Implementation: faster
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
core.c: core.c:353:19: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: F0[0] = F0[1] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
core.c: ^
core.c: core.c:354:11: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: F0[2] = _mm256_set_epi32(32767,-1,32767,-1,32767,-1,65535,-1);
core.c: ^
core.c: core.c:355:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: F1[0] = F1[1] = F1[2] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:357:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: V0[2] = V0[1] = V0[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:358:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: V1[2] = V1[1] = V1[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:360:11: error: always_inline function '_mm256_set_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: R0[0] = _mm256_set_epi32(0,0,0,0,0,0,0,1);
core.c: ^
core.c: core.c:361:19: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: R0[2] = R0[1] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:362:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: R1[2] = R1[1] = R1[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:376:15: error: always_inline function '_mm256_set1_epi32' requires target feature 'xsave', but would be inlined into function 'r3_recip' that is compiled without support for 'xsave'
core.c: ...

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

Compiler output

Implementation: faster
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
core.c: core.c:353:19: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: F0[0] = F0[1] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
core.c: ^
core.c: core.c:354:11: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: F0[2] = _mm256_set_epi32(32767,-1,32767,-1,32767,-1,65535,-1);
core.c: ^
core.c: core.c:355:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: F1[0] = F1[1] = F1[2] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:357:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: V0[2] = V0[1] = V0[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:358:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: V1[2] = V1[1] = V1[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:360:11: error: always_inline function '_mm256_set_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: R0[0] = _mm256_set_epi32(0,0,0,0,0,0,0,1);
core.c: ^
core.c: core.c:361:19: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: R0[2] = R0[1] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:362:27: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: R1[2] = R1[1] = R1[0] = _mm256_set1_epi32(0);
core.c: ^
core.c: core.c:376:15: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'r3_recip' that is compiled without support for 'sse4.2'
core.c: ...

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

Compiler output

Implementation: faster
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
core.c: core.c: In function 'r3_recip':
core.c: core.c:353:17: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
core.c: F0[0] = F0[1] = _mm256_set_epi32(-1,-1,-1,-1,-1,-1,-1,-1);
core.c: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core.c: core.c: In function 'vec256_swap':
core.c: core.c:171:20: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
core.c: static inline void vec256_swap(vec256 *f,vec256 *g,int len,vec256 mask)
core.c: ^~~~~~~~~~~
core.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
core.c: from core.c:4:
core.c: core.c: In function 'vec256_frombits':
core.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
core.c: _mm256_shuffle_epi32 (__m256i __A, const int __mask)
core.c: ^~~~~~~~~~~~~~~~~~~~
core.c: core.c:56:7: note: called from here
core.c: h = _mm256_shuffle_epi32(h,0xd8);
core.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
core.c: from core.c:4:
core.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
core.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
core.c: ^~~~~~~~~~~~~~~~~~~~~~~~
core.c: core.c:55:7: note: called from here
core.c: h = _mm256_permute4x64_epi64(h,0xd8);
core.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core.c: ...

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