Implementation notes: x86, thoth, crypto_hash/keccak

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_hash
Primitive: keccak
TimeImplementationCompilerBenchmark dateSUPERCOP version
61851mmxu1gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
62640mmxu1gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
64911mmxu1gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
66316mmxu1gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
78539opt32bi-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
80424opt32bi-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
81604opt32bi-rvku2gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
81797simple32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
82366inplace32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
82422opt32biT-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
82584opt32biT-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
83578simple32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
85839opt32biT-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
85991opt32bi-rvku2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
86187opt32bi-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
87606opt32bi-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
87670simple32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
88186opt32biT-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
88697opt32bi-rvku2gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
89390simple32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
90860inplace32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
91103inplace32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
91445opt32bi-rvku2gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
91539opt32bi-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
91816inplace32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
92649opt32biT-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
94666opt32bi-rvku2gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
98337simple32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
102205opt64lcu6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
108695opt64u6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
109905simpleclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
114826inplaceclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
130275opt64lcu24gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
139014opt64lcu24gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
139470opt64lcu24gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
144195opt64lcu24gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
145953inplacegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
147000opt64lcu6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
150456opt64u6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
151342simplegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
153659inplacegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
153965inplacegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
154663inplace32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
156833opt64lcu6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
157433inplacegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
158048simplegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
160950opt64lcu6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
161748opt64u6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
162351opt64lcu6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
162394opt64u6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
162563simplegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
166243simplegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
166894opt64u6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
169281opt64lcu24clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
269692compactgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
284449compactclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
362528compactgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
370307mmxu1clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
377904compactgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
396502compactgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
543862compact8clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
545615compact8gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
645465compact8gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
732119compact8gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
742398compact8gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724

Checksum failure

Implementation: crypto_hash/keccak/opt64lcu24shld
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
861a94014920131214215b829ecc1284f8bd803957c41076fef9ef12fc40c5b8
Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments opt64lcu24shld
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv opt64lcu24shld
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv opt64lcu24shld
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv opt64lcu24shld
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv opt64lcu24shld

Compiler output

Implementation: crypto_hash/keccak/sseu2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: copyFromState(A, state)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: ./KeccakF-1600-simd128.macros:547:19: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##bae.v128 = LOAD128(state[ 0]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:51:33: note: expanded from macro 'LOAD128'
KeccakF-1600-opt64.c: #define LOAD128(a) _mm_load_si128((const V128 *)&(a))
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_unpackhi_epi64' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-simd128.macros:549:13: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##be = GET64HIHI(X##bae.v128, X##bae.v128); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:58:33: note: expanded from macro 'GET64HIHI'
KeccakF-1600-opt64.c: #define GET64HIHI(a, b) _mm_unpackhi_epi64(a, b)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-simd128.macros:551:19: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##bio.v128 = LOAD128(state[ 2]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:51:33: note: expanded from macro 'LOAD128'
KeccakF-1600-opt64.c: #define LOAD128(a) _mm_load_si128((const V128 *)&(a))
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_unpackhi_epi64' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-simd128.macros:553:13: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: ...

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

Compiler output

Implementation: crypto_hash/keccak/xopu24
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: copyFromState(A, state)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: ./KeccakF-1600-xop.macros:482:14: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##bae = LOAD128(state[ 0]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:87:33: note: expanded from macro 'LOAD128'
KeccakF-1600-opt64.c: #define LOAD128(a) _mm_load_si128((const V128 *)&(a))
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_unpackhi_epi64' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-xop.macros:484:13: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##be = GET64HIHI(X##bae, X##bae); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:96:33: note: expanded from macro 'GET64HIHI'
KeccakF-1600-opt64.c: #define GET64HIHI(a, b) _mm_unpackhi_epi64(a, b)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-xop.macros:486:14: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: X##bio = LOAD128(state[ 2]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:87:33: note: expanded from macro 'LOAD128'
KeccakF-1600-opt64.c: #define LOAD128(a) _mm_load_si128((const V128 *)&(a))
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: error: always_inline function '_mm_unpackhi_epi64' requires target feature 'sse2', but would be inlined into function 'KeccakPermutationOnWords' that is compiled without support for 'sse2'
KeccakF-1600-opt64.c: ./KeccakF-1600-xop.macros:488:13: note: expanded from macro 'copyFromState'
KeccakF-1600-opt64.c: ...

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

Compiler output

Implementation: crypto_hash/keccak/xopu24
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
KeccakF-1600-opt64.c: In file included from KeccakF-1600-opt64.c:130:0:
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c: In function 'KeccakPermutationOnWords':
KeccakF-1600-opt64.c: KeccakF-1600-xop.macros:482:12: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
KeccakF-1600-opt64.c: X##bae = LOAD128(state[ 0]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: note: in expansion of macro 'copyFromState'
KeccakF-1600-opt64.c: copyFromState(A, state)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
KeccakF-1600-opt64.c: from /usr/lib/gcc/i686-linux-gnu/5/include/x86intrin.h:31,
KeccakF-1600-opt64.c: from KeccakF-1600-opt64.c:74:
KeccakF-1600-opt64.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:720:1: error: inlining failed in call to always_inline '_mm_storel_epi64': target specific option mismatch
KeccakF-1600-opt64.c: _mm_storel_epi64 (__m128i *__P, __m128i __B)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:80:33: error: called from here
KeccakF-1600-opt64.c: #define STORE64(a, b) _mm_storel_epi64((V64 *)&(a), b)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-xop.macros:557:5: note: in expansion of macro 'STORE64'
KeccakF-1600-opt64.c: STORE64(state[24], X##su); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-unrolling.macros:41:5: note: in expansion of macro 'copyToState'
KeccakF-1600-opt64.c: copyToState(state, A)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:185:5: note: in expansion of macro 'rounds'
KeccakF-1600-opt64.c: rounds
KeccakF-1600-opt64.c: ...

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

Compiler output

Implementation: crypto_hash/keccak/sseu2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
KeccakF-1600-opt64.c: In file included from KeccakF-1600-opt64.c:67:0:
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c: In function 'KeccakPermutationOnWords':
KeccakF-1600-opt64.c: KeccakF-1600-simd128.macros:547:17: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
KeccakF-1600-opt64.c: X##bae.v128 = LOAD128(state[ 0]); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: note: in expansion of macro 'copyFromState'
KeccakF-1600-opt64.c: copyFromState(A, state)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
KeccakF-1600-opt64.c: from /usr/lib/gcc/i686-linux-gnu/5/include/x86intrin.h:31,
KeccakF-1600-opt64.c: from KeccakF-1600-opt64.c:31:
KeccakF-1600-opt64.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:1286:1: error: inlining failed in call to always_inline '_mm_xor_si128': target specific option mismatch
KeccakF-1600-opt64.c: _mm_xor_si128 (__m128i __A, __m128i __B)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:45:35: error: called from here
KeccakF-1600-opt64.c: #define XOReq64(a, b) a = _mm_xor_si128(a, b)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-simd128.macros:600:5: note: in expansion of macro 'XOReq64'
KeccakF-1600-opt64.c: XOReq64(Cu, X##su); \
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: KeccakF-1600-opt64.c:184:5: note: in expansion of macro 'copyFromState'
KeccakF-1600-opt64.c: copyFromState(A, state)
KeccakF-1600-opt64.c: ^
KeccakF-1600-opt64.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
KeccakF-1600-opt64.c: from /usr/lib/gcc/i686-linux-gnu/5/include/x86intrin.h:31,
KeccakF-1600-opt64.c: ...

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