Implementation notes: x86, thoth, crypto_hash/keccakc1024

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_hash
Primitive: keccakc1024
TimeImplementationCompilerBenchmark dateSUPERCOP version
107536mmxu1gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
108646mmxu1gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
112384mmxu1gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
112770mmxu1gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
125284opt32bi-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
127430opt32bi-rvku2gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
127728opt32biT-s2lcu4gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
128146simple32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
128409opt32bi-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
129525opt32biT-s2lcu4clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
130555inplace32bigcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
134010opt32biT-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
135282simple32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
135435opt32bi-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
136719opt32bi-s2lcu4gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
137312opt32bi-rvku2clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
137712opt32biT-s2lcu4gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
140352simple32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
140355opt32bi-rvku2gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
142925simple32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
144645opt32bi-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
145179opt32biT-s2lcu4gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
145282inplace32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
145509inplace32bigcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
145579opt32bi-rvku2gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
145933sphlibclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
146587inplace32bigcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
151320opt32bi-rvku2gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
152117sphlib-smallclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
158082simple32bigcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
158717sphlibgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
159941sphlib-smallgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
162632sphlibgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
163362sphlib-smallgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
164446sphlibgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
168734sphlib-smallgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
170627opt64lcu6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
183401opt64u6clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
185005simpleclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
185159sphlib-smallgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
185618sphlibgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
194150inplaceclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
219300opt64lcu24gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
229671opt64lcu24gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
229803opt64lcu24gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
240984opt64lcu24gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
249090simplegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
250786inplacegcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
251127opt64lcu6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
253605opt64u6gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
254652inplace32biclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
259539inplacegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
260773inplacegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
265620inplacegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
267471simplegcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
267536opt64lcu6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
267968simplegcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
270405opt64lcu6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
273207opt64lcu6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
273467opt64u6gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
273855opt64lcu24clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
274542opt64u6gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
278188opt64u6gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
280172simplegcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
468748compactgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
482028compactclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
613026mmxu1clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
644823compactgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
654458compactgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
686021compactgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724
920111compact8clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072620160724
925097compact8gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072620160724
1087306compact8gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072620160724
1198332compact8gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072620160724
1227889compact8gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072620160724

Checksum failure

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