Implementation notes: x86, thoth, crypto_hash/keccakc768

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_hash
Primitive: keccakc768
TimeImplementationCompilerBenchmark dateSUPERCOP version
71676mmxu1gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
73951mmxu1gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
76075mmxu1gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
76841mmxu1gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
89355opt32bi-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
90231simple32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
90701opt32bi-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
90729opt32bi-rvku2gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
91090opt32biT-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
91260opt32biT-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
91874inplace32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
94502simple32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
95544opt32biT-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
96679opt32bi-rvku2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
97367opt32bi-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
97609opt32bi-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
98430opt32bi-rvku2gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
98576simple32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
99249opt32biT-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
100396simple32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
101949opt32bi-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
102267inplace32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
102273inplace32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
102817inplace32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
102967opt32bi-rvku2gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
103563opt32biT-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
107495opt32bi-rvku2gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
110798simple32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
117607opt64lcu6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
124785opt64u6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
126503simpleclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
132847inplaceclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
152456opt64lcu24gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
160779opt64lcu24gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
160944opt64lcu24gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
167094opt64lcu24gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
170166simplegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
171114opt64lcu6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
171282inplacegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
173564opt64u6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
175688inplace32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
176967inplacegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
177280inplacegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
181453inplacegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
181661opt64lcu6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
182694simplegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
182921opt64lcu6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
182991simplegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
186377opt64u6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
186570opt64lcu6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
188325opt64u6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
191113opt64u6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
191296simplegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
195267opt64lcu24clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
314137compactgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
326194compactclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
428662mmxu1clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
436640compactgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
450049compactgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
461229compactgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
627672compact8clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
628113compact8gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
743624compact8gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
839097compact8gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
851124compact8gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724

Checksum failure

Implementation: crypto_hash/keccakc768/opt64lcu24shld
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
5188e5cb724a55ca26f5996e5e7818dfa5b5e4585aa9a371bc9a4847d9be6557
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/keccakc768/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/keccakc768/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/keccakc768/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/keccakc768/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