Implementation notes: amd64, h9trinity, crypto_encode/653x1541

Computer: h9trinity
Architecture: amd64
CPU ID: AuthenticAMD-00610f01-178bfbff
SUPERCOP version: 20200618
Operation: crypto_encode
Primitive: 653x1541
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
25402899 0 014790 776 800portablegcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
25462072 0 014689 776 744portableclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
25751488 0 012545 776 744portableclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
25901488 0 012545 776 744portableclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
30422379 0 013937 776 728portableclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
4708695 0 09223 768 728portableclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
5051708 0 09609 752 768portablegcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
5100732 0 010309 768 800portablegcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
5193750 0 010413 768 800portablegcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
87101330 0 013230 776 800refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
118301554 0 013081 776 728refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
12408639 0 010213 768 800refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
12637667 0 010301 768 800refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
13071585 0 09441 752 768refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020041020200409
131161596 0 012617 776 744refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
131251596 0 012617 776 744refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
131421596 0 014185 776 744refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409
15448534 0 09031 768 728refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020041020200409

Compiler output

Implementation: avx
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encode.c: encode.c:35:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
encode.c: ^
encode.c: encode.c:37:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:39:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_srli_epi32(x,16);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mullo_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_mullo_epi32(x,_mm256_set1_epi32(1541));
encode.c: ^
encode.c: encode.c:41:9: error: always_inline function '_mm256_add_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi32(y,x);
encode.c: ^
encode.c: encode.c:42:9: error: always_inline function '_mm256_shuffle_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_shuffle_epi8(x,_mm256_set_epi8(
encode.c: ^
encode.c: encode.c:71:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_srli_epi32(x,16);
encode.c: ^
encode.c: encode.c:72:10: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x2 = _mm256_srli_epi32(x2,16);
encode.c: ^
encode.c: encode.c:73:9: error: always_inline function '_mm256_mullo_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: ...

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
encode.c: encode.c:34:9: error: always_inline function '_mm256_loadu_si256' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_loadu_si256((__m256i *) reading);
encode.c: ^
encode.c: encode.c:35:9: error: always_inline function '_mm256_add_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
encode.c: ^
encode.c: encode.c:35:28: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_add_epi16(x,_mm256_set1_epi16(2310));
encode.c: ^
encode.c: encode.c:36:10: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'sse4.2'
encode.c: x &= _mm256_set1_epi16(16383);
encode.c: ^
encode.c: encode.c:37:9: error: always_inline function '_mm256_mulhi_epi16' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:37:30: error: always_inline function '_mm256_set1_epi16' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'sse4.2'
encode.c: x = _mm256_mulhi_epi16(x,_mm256_set1_epi16(21846));
encode.c: ^
encode.c: encode.c:38:13: error: always_inline function '_mm256_set1_epi32' requires target feature 'sse4.2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'sse4.2'
encode.c: y = x & _mm256_set1_epi32(65535);
encode.c: ^
encode.c: encode.c:39:9: error: always_inline function '_mm256_srli_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: x = _mm256_srli_epi32(x,16);
encode.c: ^
encode.c: encode.c:40:9: error: always_inline function '_mm256_mullo_epi32' requires target feature 'avx2', but would be inlined into function 'crypto_encode_653x1541_avx' that is compiled without support for 'avx2'
encode.c: ...

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
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
encode.c: from encode.c:3:
encode.c: encode.c: In function 'crypto_encode_653x1541_avx':
encode.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
encode.c: _mm256_permute4x64_epi64 (__m256i __X, const int __M)
encode.c: ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:46:7: note: called from here
encode.c: x = _mm256_permute4x64_epi64(x,0xd8);
encode.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
encode.c: from encode.c:3:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:588:1: error: inlining failed in call to always_inline '_mm256_shuffle_epi8': target specific option mismatch
encode.c: _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
encode.c: ^~~~~~~~~~~~~~~~~~~
encode.c: encode.c:42:7: note: called from here
encode.c: x = _mm256_shuffle_epi8(x,_mm256_set_epi8(
encode.c: ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: 12,8,4,0,12,8,4,0,14,13,10,9,6,5,2,1,
encode.c: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: 12,8,4,0,12,8,4,0,14,13,10,9,6,5,2,1
encode.c: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode.c: ));
encode.c: ~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
encode.c: from encode.c:3:
encode.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