Implementation notes: amd64, scw1b63b1, crypto_decode/653x1541

Computer: scw1b63b1
Architecture: amd64
CPU ID: GenuineIntel-000506f1-0f8bfbff
SUPERCOP version: 20191017
Operation: crypto_decode
Primitive: 653x1541
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
121142150 0 011043 776 728int16clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
123182302 0 012121 784 728int16clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
123182302 0 012945 784 728int16clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
123182302 0 012121 784 728int16clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
127063908 0 015932 808 800int16gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
127362111 0 011947 800 800int16gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
129362301 0 013017 784 728int16clang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
129702099 0 010871 784 768int16gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
140742125 0 011811 800 800int16gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
180183619 0 015644 808 800portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
180282645 0 012491 800 800portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
200382891 0 012713 784 728portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
200382891 0 013537 784 728portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
200382891 0 012713 784 728portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
200502707 0 011619 776 728portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
206282890 0 013609 784 728portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
409461530 0 013556 808 800refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
423202032 0 011873 784 728refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
423262032 0 012697 784 728refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
423442032 0 011873 784 728refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
433961262 0 011115 800 800refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
436521590 0 010407 784 768portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
438361743 0 011451 800 800portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
445741166 0 010059 776 728refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
448522078 0 012817 784 728refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019121420191017
506621058 0 09807 784 768refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017
512981259 0 010939 800 800refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019121420191017

Compiler output

Implementation: avx
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
decode.c: decode.c:213:15: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: A2 = A0 = _mm256_loadu_si256((__m256i *) &R5[i]);
decode.c: ^
decode.c: decode.c:214:10: error: always_inline function '_mm256_cvtepu8_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: S0 = _mm256_cvtepu8_epi16(_mm_loadu_si128((__m128i *) (s+i)));
decode.c: ^
decode.c: decode.c:226:10: error: always_inline function '_mm256_unpacklo_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: B0 = _mm256_unpacklo_epi16(A0,A1);
decode.c: ^
decode.c: decode.c:227:10: error: always_inline function '_mm256_unpackhi_epi16' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: ...
decode.c: _mm256_storeu_si256((__m256i *) (&R3[2*i]),C0);
decode.c: ^
decode.c: decode.c:288:5: error: always_inline function '_mm256_storeu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: _mm256_storeu_si256((__m256i *) (16+&R3[2*i]),C1);
decode.c: ^
decode.c: decode.c:313:15: error: always_inline function '_mm256_loadu_si256' requires target feature 'xsave', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'xsave'
decode.c: A2 = A0 = _mm256_loadu_si256((__m256i *) &R3[i]);
decode.c: ^
decode.c: fatal error: too many errors emitted, stopping now [-ferror-limit=]
decode.c: 20 errors generated.

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

Compiler output

Implementation: avx
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
decode.c: decode.c:213:15: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: A2 = A0 = _mm256_loadu_si256((__m256i *) &R5[i]);
decode.c: ^
decode.c: decode.c:214:10: error: always_inline function '_mm256_cvtepu8_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: S0 = _mm256_cvtepu8_epi16(_mm_loadu_si128((__m128i *) (s+i)));
decode.c: ^
decode.c: decode.c:226:10: error: always_inline function '_mm256_unpacklo_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: B0 = _mm256_unpacklo_epi16(A0,A1);
decode.c: ^
decode.c: decode.c:227:10: error: always_inline function '_mm256_unpackhi_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: ...
decode.c: _mm256_storeu_si256((__m256i *) (&R3[2*i]),C0);
decode.c: ^
decode.c: decode.c:288:5: error: always_inline function '_mm256_storeu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: _mm256_storeu_si256((__m256i *) (16+&R3[2*i]),C1);
decode.c: ^
decode.c: decode.c:313:15: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_decode_653x1541_avx' that is compiled without support for 'sse4.2'
decode.c: A2 = A0 = _mm256_loadu_si256((__m256i *) &R3[i]);
decode.c: ^
decode.c: fatal error: too many errors emitted, stopping now [-ferror-limit=]
decode.c: 20 errors generated.

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

Compiler output

Implementation: avx
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
decode.c: decode.c: In function ‘add’:
decode.c: decode.c:21:1: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
decode.c: {
decode.c: ^
decode.c: decode.c: In function ‘signedshiftrightconst’:
decode.c: decode.c:35:23: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
decode.c: static inline __m256i signedshiftrightconst(__m256i x,int16 y)
decode.c: ^~~~~~~~~~~~~~~~~~~~~
decode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/immintrin.h:43:0,
decode.c: from decode.c:3:
decode.c: decode.c: In function ‘add’:
decode.c: /usr/lib/gcc/x86_64-linux-gnu/6/include/avx2intrin.h:112:1: error: inlining failed in call to always_inline ‘_mm256_add_epi16’: target specific option mismatch
decode.c: _mm256_add_epi16 (__m256i __A, __m256i __B)
decode.c: ^~~~~~~~~~~~~~~~
decode.c: decode.c:22:10: note: called from here
decode.c: return _mm256_add_epi16(x,y);
decode.c: ^~~~~~~~~~~~~~~~~~~~~

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