Implementation notes: x86, thoth, crypto_hash/hamsi

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_hash
Primitive: hamsi

Compiler output

Implementation: crypto_hash/hamsi/sphlib
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
hamsi.c: hamsi.c:111:10: fatal error: 'hamsi_helper.c' file not found
hamsi.c: #include "hamsi_helper.c"
hamsi.c: ^
hamsi.c: 1 error generated.

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

Compiler output

Implementation: crypto_hash/hamsi/bernstein/small-simd-2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
hamsi.c: hamsi.c:166:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: hamsi.c:101:10: note: expanded from macro 'load_cv'
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:166:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:102:10: note: expanded from macro 'load_cv'
hamsi.c: c1 = _mm_load_si128((__m128i*)(cv + 4)); \
hamsi.c: ^
hamsi.c: hamsi.c:167:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: hamsi.c:149:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:167:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:150:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: 4 errors generated.

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

Compiler output

Implementation: crypto_hash/hamsi/simd-2
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
hamsi.c: hamsi.c:252:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: hamsi.c:175:10: note: expanded from macro 'load_cv'
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:252:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:176:10: note: expanded from macro 'load_cv'
hamsi.c: c1 = _mm_load_si128((__m128i*)(cv + 4)); \
hamsi.c: ^
hamsi.c: hamsi.c:253:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: hamsi.c:235:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:253:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:236:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: 4 errors generated.

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

Compiler output

Implementation: crypto_hash/hamsi/simd-1
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
hamsi.c: hamsi.c:255:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: hamsi.c:178:10: note: expanded from macro 'load_cv'
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:255:3: error: always_inline function '_mm_load_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:179:10: note: expanded from macro 'load_cv'
hamsi.c: c1 = _mm_load_si128((__m128i*)(cv + 4)); \
hamsi.c: ^
hamsi.c: hamsi.c:256:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: hamsi.c:238:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:256:3: error: always_inline function '_mm_store_si128' requires target feature 'sse2', but would be inlined into function 'Init' that is compiled without support for 'sse2'
hamsi.c: hamsi.c:239:5: note: expanded from macro 'save_cv'
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: 4 errors generated.

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

Compiler output

Implementation: crypto_hash/hamsi/bernstein/small-simd-2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
hamsi.c: hamsi.c: In function 'Init':
hamsi.c: hamsi.c:101:8: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:166:3: note: in expansion of macro 'load_cv'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:150:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: hamsi.c:167:3: note: in expansion of macro 'save_cv'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:149:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:167:3: note: in expansion of macro 'save_cv'
hamsi.c: ...

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

Compiler output

Implementation: crypto_hash/hamsi/simd-2
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
hamsi.c: hamsi.c: In function 'Init':
hamsi.c: hamsi.c:175:8: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:252:3: note: in expansion of macro 'load_cv'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:236:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: hamsi.c:253:3: note: in expansion of macro 'save_cv'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:235:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:253:3: note: in expansion of macro 'save_cv'
hamsi.c: ...

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

Compiler output

Implementation: crypto_hash/hamsi/simd-1
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
hamsi.c: hamsi.c: In function 'Init':
hamsi.c: hamsi.c:178:8: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
hamsi.c: c0 = _mm_load_si128((__m128i*)(cv + 0)); \
hamsi.c: ^
hamsi.c: hamsi.c:255:3: note: in expansion of macro 'load_cv'
hamsi.c: load_cv(iv256);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:239:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 4), c1); \
hamsi.c: ^
hamsi.c: hamsi.c:256:3: note: in expansion of macro 'save_cv'
hamsi.c: save_cv(state->gt;cv);
hamsi.c: ^
hamsi.c: In file included from hamsi.c:1:0:
hamsi.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:708:1: error: inlining failed in call to always_inline '_mm_store_si128': target specific option mismatch
hamsi.c: _mm_store_si128 (__m128i *__P, __m128i __B)
hamsi.c: ^
hamsi.c: hamsi.c:238:5: error: called from here
hamsi.c: _mm_store_si128((__m128i*)(cv + 0), c0); \
hamsi.c: ^
hamsi.c: hamsi.c:256:3: note: in expansion of macro 'save_cv'
hamsi.c: ...

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

Compiler output

Implementation: crypto_hash/hamsi/sphlib
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
hamsi.c: hamsi.c:111:26: fatal error: hamsi_helper.c: No such file or directory
hamsi.c: compilation terminated.

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