Implementation notes: amd64, h6sandy, crypto_encode/256x2

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_encode
Primitive: 256x2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1013132 0 012531 844 896refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1014132 0 011931 844 896refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1017132 0 013875 844 896refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1332101 0 010211 844 896refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1353145 0 012517 804 960refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1359145 0 011269 804 960refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
138196 0 09837 836 896refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1422149 0 010956 796 960refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
1443138 0 09928 780 928refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output


encode.c: encode.c:17:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b0 = _mm256_cmpgt_epi8(a0&bottom,zero);
encode.c:                ^
encode.c: encode.c:18:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b1 = _mm256_cmpgt_epi8(a1&bottom,zero);
encode.c:                ^
encode.c: encode.c:19:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b2 = _mm256_cmpgt_epi8(a2&bottom,zero);
encode.c:                ^
encode.c: encode.c:20:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b3 = _mm256_cmpgt_epi8(a3&bottom,zero);
encode.c:                ^
encode.c: encode.c:21:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b4 = _mm256_cmpgt_epi8(a4&bottom,zero);
encode.c:                ^
encode.c: encode.c:22:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b5 = _mm256_cmpgt_epi8(a5&bottom,zero);
encode.c:                ^
encode.c: encode.c:23:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b6 = _mm256_cmpgt_epi8(a6&bottom,zero);
encode.c:                ^
encode.c: encode.c:24:16: error: always_inline function '_mm256_cmpgt_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c:   __m256i b7 = _mm256_cmpgt_epi8(a7&bottom,zero);
encode.c:                ^
encode.c: encode.c:25:16: error: always_inline function '_mm256_movemask_epi8' requires target feature 'avx2', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx2'
encode.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avxclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
avxclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
avxclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
avxclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


encode.c: encode.c:7:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a0 = _mm256_loadu_si256(0+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:7:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:8:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a1 = _mm256_loadu_si256(1+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:8:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:9:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a2 = _mm256_loadu_si256(2+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:9:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:10:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a3 = _mm256_loadu_si256(3+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:10:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:11:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a4 = _mm256_loadu_si256(4+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:11:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:12:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c:   __m256i a5 = _mm256_loadu_si256(5+(__m256i *) v);
encode.c:                ^
encode.c: encode.c:12:16: error: AVX vector return of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
encode.c: encode.c:13:16: error: always_inline function '_mm256_loadu_si256' requires target feature 'avx', but would be inlined into function 'crypto_encode_256x2_avx_constbranchindex' that is compiled without support for 'avx'
encode.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
avxclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c:                  from encode.c:1:
encode.c: encode.c: In function 'crypto_encode_256x2_avx_constbranchindex':
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:433:1: error: inlining failed in call to 'always_inline' '_mm256_movemask_epi8': target specific option mismatch
encode.c:   433 | _mm256_movemask_epi8 (__m256i __A)
encode.c:       | ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:32:16: note: called from here
encode.c:    32 |   int32_t c7 = _mm256_movemask_epi8(b7);
encode.c:       |                ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c:                  from encode.c:1:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:433:1: error: inlining failed in call to 'always_inline' '_mm256_movemask_epi8': target specific option mismatch
encode.c:   433 | _mm256_movemask_epi8 (__m256i __A)
encode.c:       | ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:31:16: note: called from here
encode.c:    31 |   int32_t c6 = _mm256_movemask_epi8(b6);
encode.c:       |                ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
encode.c:                  from encode.c:1:
encode.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:433:1: error: inlining failed in call to 'always_inline' '_mm256_movemask_epi8': target specific option mismatch
encode.c:   433 | _mm256_movemask_epi8 (__m256i __A)
encode.c:       | ^~~~~~~~~~~~~~~~~~~~
encode.c: encode.c:30:16: note: called from here
encode.c:    30 |   int32_t c5 = _mm256_movemask_epi8(b5);
encode.c:       |                ^~~~~~~~~~~~~~~~~~~~~~~~
encode.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
avxgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
avxgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
avxgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
avxgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)

Passed TIMECOP


TIMECOP iterations: 10

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)