Implementation notes: amd64, haswell, crypto_sign/rainbowbinary16242020

Computer: haswell
Architecture: amd64
CPU ID: GenuineIntel-000306c3-bfebfbff
SUPERCOP version: 20130419
Operation: crypto_sign
Primitive: rainbowbinary16242020
TimeImplementationCompilerBenchmark dateSUPERCOP version
461838refg++ -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer2013060920130419
476556refg++ -m64 -march=corei7-avx -O2 -fomit-frame-pointer2013060920130419
488306refg++ -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer2013060920130419
492010refg++ -m64 -march=corei7 -O2 -fomit-frame-pointer2013060920130419
492752refg++ -m64 -march=core2 -O2 -fomit-frame-pointer2013060920130419
496326refg++ -m64 -march=corei7 -O3 -fomit-frame-pointer2013060920130419
504770refg++ -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer2013060920130419
505584refg++ -m64 -march=native -mtune=native -O2 -fomit-frame-pointer2013060920130419
518472refg++ -m64 -march=core-avx-i -O3 -fomit-frame-pointer2013060920130419
525046refg++ -m64 -march=core-avx-i -O2 -fomit-frame-pointer2013060920130419
529684refg++ -m64 -march=corei7-avx -O3 -fomit-frame-pointer2013060920130419
537698refg++ -m64 -march=native -mtune=native -O3 -fomit-frame-pointer2013060920130419
537936refg++ -m64 -march=native -mtune=native -O -fomit-frame-pointer2013060920130419
546424refg++ -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer2013060920130419
556576refclang++ -O3 -mavx2013060920130419
559592refg++ -m64 -march=corei7-avx -Os -fomit-frame-pointer2013060920130419
566612refg++ -m64 -march=corei7-avx -O -fomit-frame-pointer2013060920130419
567588refg++ -m64 -march=corei7 -O -fomit-frame-pointer2013060920130419
569444refg++ -m64 -march=core2 -O -fomit-frame-pointer2013060920130419
574380refg++ -m64 -march=core2 -msse4 -O -fomit-frame-pointer2013060920130419
580733refg++ -m64 -march=core2 -msse4 -Os -fomit-frame-pointer2013060920130419
597696refg++ -m64 -march=native -mtune=native -Os -fomit-frame-pointer2013060920130419
598860refg++ -m64 -march=corei7 -Os -fomit-frame-pointer2013060920130419
604132refg++ -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer2013060920130419
613152refg++ -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer2013060920130419
625178refg++ -m64 -march=core-avx-i -Os -fomit-frame-pointer2013060920130419
657296refg++ -m64 -march=core2 -Os -fomit-frame-pointer2013060920130419

Test failure

Implementation: crypto_sign/rainbowbinary16242020/ref
Compiler: g++ -m64 -march=core-avx-i -O -fomit-frame-pointer
error 111
crypto_sign_open returns nonzero

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
g++ -m64 -march=core-avx-i -O -fomit-frame-pointer ref
g++ -m64 -march=core2 -O3 -fomit-frame-pointer ref

Compiler output

Implementation: crypto_sign/rainbowbinary16242020/ref
Compiler: clang++ -O3
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:181:
rainbow-test.cpp: In file included from ./gf16.h:4:
rainbow-test.cpp: /usr/bin/../lib/clang/3.2/include/tmmintrin.h:28:2: error: "SSSE3 instruction set not enabled"
rainbow-test.cpp: #error "SSSE3 instruction set not enabled"
rainbow-test.cpp: ^
rainbow-test.cpp: In file included from rainbow-test.cpp:1:
rainbow-test.cpp: In file included from ./gf.h:181:
rainbow-test.cpp: ./gf16.h:314:9: error: use of undeclared identifier '_mm_shuffle_epi8'
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low));
rainbow-test.cpp: ^
rainbow-test.cpp: ./gf16.h:321:9: error: use of undeclared identifier '_mm_shuffle_epi8'
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), a.v);
rainbow-test.cpp: ^
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: use of undeclared identifier '_mm_shuffle_epi8'
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: 1 warning and 4 errors generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang++ -O3 ref

Compiler output

Implementation: crypto_sign/rainbowbinary16242020/ref
Compiler: clang++ -O3 -mavx
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: 1, namely:
CompilerImplementations
clang++ -O3 -mavx ref

Compiler output

Implementation: crypto_sign/rainbowbinary16242020/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-unknown-linux-gnu/4.8.1/include/tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
rainbow-test.cpp: # error "SSSE3 instruction set not enabled"
rainbow-test.cpp: ^
rainbow-test.cpp: In file included from gf.h:181:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul_safe(const gfv_unitgt;&, const gfgt;&)':
rainbow-test.cpp: gf16.h:314:69: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low));
rainbow-test.cpp: ^
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 16u]':
rainbow-test.cpp: gf16.h:321:44: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), a.v);
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: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: gf256.h:364:84: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
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/rainbowbinary16242020/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-unknown-linux-gnu/4.8.1/include/tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
rainbow-test.cpp: # error "SSSE3 instruction set not enabled"
rainbow-test.cpp: ^
rainbow-test.cpp: In file included from gf.h:181:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul_safe(const gfv_unitgt;&, const gfgt;&)':
rainbow-test.cpp: gf16.h:314:69: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low));
rainbow-test.cpp: ^
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 16u]':
rainbow-test.cpp: gf16.h:321:44: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), a.v);
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: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: gf256.h:364:84: error: '_mm_shuffle_epi8' was not declared in this scope
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: 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-unknown-linux-gnu/4.8.1/include/tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
rainbow-test.cpp: # error "SSSE3 instruction set not enabled"
rainbow-test.cpp: ^
rainbow-test.cpp: In file included from gf.h:181:0,
rainbow-test.cpp: from rainbow-test.cpp:1:
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul_safe(const gfv_unitgt;&, const gfgt;&)':
rainbow-test.cpp: gf16.h:314:69: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low));
rainbow-test.cpp: ^
rainbow-test.cpp: gf16.h: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 16u]':
rainbow-test.cpp: gf16.h:321:44: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_shuffle_epi8(multable(b.v), a.v);
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: In function 'const gfv_unitgt; _mul(const gfv_unitgt;&, const gfgt;&) [with unsigned int p = 256u]':
rainbow-test.cpp: gf256.h:364:84: error: '_mm_shuffle_epi8' was not declared in this scope
rainbow-test.cpp: return _mm_xor_si128( _mm_shuffle_epi8(multable(b.v), _mm_and_si128(a.v,_mask_low))
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