Implementation notes: amd64, skylake, crypto_sign/rainbowbinary256181212

Computer: skylake
Architecture: amd64
CPU ID: GenuineIntel-000506e3-bfebfbff
SUPERCOP version: 20161026
Operation: crypto_sign
Primitive: rainbowbinary256181212
TimeImplementationCompilerBenchmark dateSUPERCOP version
55412refg++ -m64 -march=core-avx-i -O3 -fomit-frame-pointer2016121720161026
55486refg++ -m64 -march=core-avx2 -O3 -fomit-frame-pointer2016121720161026
55512refg++ -m64 -march=corei7-avx -O3 -fomit-frame-pointer2016121720161026
56346refg++ -m64 -march=native -mtune=native -O3 -fomit-frame-pointer2016121720161026
56814refclang++ -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fomit-frame-pointer -Qunused-arguments2016121720161026
57088refclang++ -O3 -fwrapv -mavx -fomit-frame-pointer -Qunused-arguments2016121720161026
57222refclang++ -O3 -fwrapv -mavx -maes -mpclmul -fomit-frame-pointer -Qunused-arguments2016121720161026
57238refclang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016121720161026
57278refclang++ -O3 -fwrapv -march=native -fomit-frame-pointer -Qunused-arguments2016121720161026
57448refclang++ -O3 -fwrapv -mavx2 -fomit-frame-pointer -Qunused-arguments2016121720161026
57836refg++ -m64 -march=core-avx-i -O2 -fomit-frame-pointer2016121720161026
57992refg++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016121720161026
58052refg++ -m64 -march=corei7-avx -O2 -fomit-frame-pointer2016121720161026
58196refg++ -m64 -march=corei7 -O3 -fomit-frame-pointer2016121720161026
58356refg++ -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer2016121720161026
58590refg++ -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer2016121720161026
58888refg++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016121720161026
59016refg++ -m64 -march=core-avx2 -O2 -fomit-frame-pointer2016121720161026
59150refg++ -m64 -march=native -mtune=native -O2 -fomit-frame-pointer2016121720161026
59208refg++ -m64 -march=core2 -O3 -fomit-frame-pointer2016121720161026
60892refg++ -m64 -march=corei7 -O2 -fomit-frame-pointer2016121720161026
61196refg++ -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer2016121720161026
62272refg++ -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer2016121720161026
63778refg++ -m64 -march=core2 -O2 -fomit-frame-pointer2016121720161026
66516refg++ -m64 -march=core-avx-i -O -fomit-frame-pointer2016121720161026
66862refg++ -m64 -march=core-avx2 -O -fomit-frame-pointer2016121720161026
67056refg++ -m64 -march=corei7-avx -O -fomit-frame-pointer2016121720161026
67194refg++ -m64 -march=core2 -msse4 -O -fomit-frame-pointer2016121720161026
67260refg++ -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer2016121720161026
67362refg++ -m64 -march=corei7 -O -fomit-frame-pointer2016121720161026
67428refg++ -m64 -march=core2 -O -fomit-frame-pointer2016121720161026
67532refg++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016121720161026
68060refg++ -m64 -march=native -mtune=native -O -fomit-frame-pointer2016121720161026
101106refg++ -m64 -march=native -mtune=native -Os -fomit-frame-pointer2016121720161026
102274refg++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016121720161026
102676refg++ -m64 -march=core-avx2 -Os -fomit-frame-pointer2016121720161026
103968refg++ -m64 -march=core2 -msse4 -Os -fomit-frame-pointer2016121720161026
104094refg++ -m64 -march=corei7 -Os -fomit-frame-pointer2016121720161026
104512refg++ -m64 -march=core2 -Os -fomit-frame-pointer2016121720161026
105374refg++ -m64 -march=corei7-avx -Os -fomit-frame-pointer2016121720161026
105532refg++ -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer2016121720161026
105634refg++ -m64 -march=core-avx-i -Os -fomit-frame-pointer2016121720161026

Compiler output

Implementation: crypto_sign/rainbowbinary256181212/ref
Compiler: clang++ -O3 -fomit-frame-pointer -Qunused-arguments
rainbow-test.cpp: In file included from rainbow-test.cpp:1:
rainbow-test.cpp: ./gf.h:171:46: warning: while loop has empty body [-Wempty-body]
rainbow-test.cpp: if( M==n_read ) { while( ttt.set(fp)==16 ) ; break; }
rainbow-test.cpp: ^
rainbow-test.cpp: ./gf.h:171:46: note: put the semicolon on a separate line to silence this warning
rainbow-test.cpp: In file included from rainbow-test.cpp:1:
rainbow-test.cpp: In file included from ./gf.h:182:
rainbow-test.cpp: ./gf256.h:364:24: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function '_mul' that is compiled without support for 'ssse3'
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ^
rainbow-test.cpp: ./gf256.h:365:7: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function '_mul' that is compiled without support for 'ssse3'
rainbow-test.cpp: , _mm_shuffle_epi8(multable_h(b.v), _mm_and_si128( _mm_srli_epi16(a.v,4) ,_mask_low) ) );
rainbow-test.cpp: ^
rainbow-test.cpp: 1 warning and 2 errors generated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang++ -O3 -fomit-frame-pointer -Qunused-arguments ref
clang++ -mcpu=cortex-a8 -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref
clang++ -mcpu=cortex-a9 -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref
clang++ -mcpu=native -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref

Compiler output

Implementation: crypto_sign/rainbowbinary256181212/ref
Compiler: clang++ -O3 -fwrapv -march=native -fomit-frame-pointer -Qunused-arguments
rainbow-test.cpp: In file included from rainbow-test.cpp:1:
rainbow-test.cpp: ./gf.h:171:46: warning: while loop has empty body [-Wempty-body]
rainbow-test.cpp: if( M==n_read ) { while( ttt.set(fp)==16 ) ; break; }
rainbow-test.cpp: ^
rainbow-test.cpp: ./gf.h:171:46: note: put the semicolon on a separate line to silence this warning
rainbow-test.cpp: 1 warning generated.

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
clang++ -O3 -fwrapv -march=native -fomit-frame-pointer -Qunused-arguments ref
clang++ -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fomit-frame-pointer -Qunused-arguments ref
clang++ -O3 -fwrapv -mavx2 -fomit-frame-pointer -Qunused-arguments ref
clang++ -O3 -fwrapv -mavx -fomit-frame-pointer -Qunused-arguments ref
clang++ -O3 -fwrapv -mavx -maes -mpclmul -fomit-frame-pointer -Qunused-arguments ref
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref

Compiler output

Implementation: crypto_sign/rainbowbinary256181212/ref
Compiler: g++
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: , _mm_shuffle_epi8(multable_h(b.v), _mm_and_si128( _mm_srli_epi16(a.v,4) ,_mask_low) ) );
rainbow-test.cpp: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: ...

Number of similar (compiler,implementation) pairs: 37, namely:
CompilerImplementations
g++ ref
g++ -O2 -fomit-frame-pointer ref
g++ -O3 -fomit-frame-pointer ref
g++ -O -fomit-frame-pointer ref
g++ -Os -fomit-frame-pointer ref
g++ -fno-schedule-insns -O2 -fomit-frame-pointer ref
g++ -fno-schedule-insns -O3 -fomit-frame-pointer ref
g++ -fno-schedule-insns -O -fomit-frame-pointer ref
g++ -fno-schedule-insns -Os -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer ref
g++ -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer ref
g++ -m64 -O2 -fomit-frame-pointer ref
g++ -m64 -O3 -fomit-frame-pointer ref
g++ -m64 -O -fomit-frame-pointer ref
g++ -m64 -Os -fomit-frame-pointer ref
g++ -m64 -march=k8 -O2 -fomit-frame-pointer ref
g++ -m64 -march=k8 -O3 -fomit-frame-pointer ref
g++ -m64 -march=k8 -O -fomit-frame-pointer ref
g++ -m64 -march=k8 -Os -fomit-frame-pointer ref
g++ -m64 -march=nocona -O2 -fomit-frame-pointer ref
g++ -m64 -march=nocona -O3 -fomit-frame-pointer ref
g++ -m64 -march=nocona -O -fomit-frame-pointer ref
g++ -m64 -march=nocona -Os -fomit-frame-pointer ref
g++ -march=barcelona -O2 -fomit-frame-pointer ref
g++ -march=barcelona -O3 -fomit-frame-pointer ref
g++ -march=barcelona -O -fomit-frame-pointer ref
g++ -march=barcelona -Os -fomit-frame-pointer ref
g++ -march=k8 -O2 -fomit-frame-pointer ref
g++ -march=k8 -O3 -fomit-frame-pointer ref
g++ -march=k8 -O -fomit-frame-pointer ref
g++ -march=k8 -Os -fomit-frame-pointer ref
g++ -march=nocona -O2 -fomit-frame-pointer ref
g++ -march=nocona -O3 -fomit-frame-pointer ref
g++ -march=nocona -O -fomit-frame-pointer ref
g++ -march=nocona -Os -fomit-frame-pointer ref

Compiler output

Implementation: crypto_sign/rainbowbinary256181212/ref
Compiler: g++ -m64 -march=barcelona -O2 -fomit-frame-pointer
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: , _mm_shuffle_epi8(multable_h(b.v), _mm_and_si128( _mm_srli_epi16(a.v,4) ,_mask_low) ) );
rainbow-test.cpp: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: ...
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: , _mm_shuffle_epi8(multable_h(b.v), _mm_and_si128( _mm_srli_epi16(a.v,4) ,_mask_low) ) );
rainbow-test.cpp: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf16.h:4:0,
rainbow-test.cpp: from gf.h:181,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
rainbow-test.cpp: _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
rainbow-test.cpp: ^~~~~~~~~~~~~~~~
rainbow-test.cpp: In file included from gf.h:182:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf256.h:364:22: note: called from here
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
rainbow-test.cpp: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rainbow-test.cpp: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -m64 -march=barcelona -O2 -fomit-frame-pointer ref
g++ -m64 -march=barcelona -O3 -fomit-frame-pointer ref
g++ -m64 -march=barcelona -O -fomit-frame-pointer ref
g++ -m64 -march=barcelona -Os -fomit-frame-pointer ref