Implementation notes: x86, thoth, crypto_aead/kiasuneq128v1

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: kiasuneq128v1
TimeImplementationCompilerBenchmark dateSUPERCOP version
311751refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072720160724
344775refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072720160724
374325refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072720160724
394843refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072720160724
437422refclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072720160724

Compiler output

Implementation: crypto_aead/kiasuneq128v1/bitslice
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
kiasu.c: kiasu.c:256:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block Auth; /* Auth value during the mode */
kiasu.c: ^
kiasu.c: kiasu.c:257:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block Checksum; /* Checksum on the plaintext blocks */
kiasu.c: ^
kiasu.c: kiasu.c:258:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block PaddedBlock; /* Padded blocks if needed, otherwise the zero bock */
kiasu.c: ^
kiasu.c: kiasu.c:259:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block ta[BPI]; /* 8 blocks for parallel processing */
kiasu.c: ^
kiasu.c: kiasu.c:260:19: error: unknown type name 'block'
kiasu.c: ALIGN(16) const block* adp; /* Pointer to the blocks to process */
kiasu.c: ^
kiasu.c: kiasu.c:262:13: error: unknown type name '__m128i'
kiasu.c: ALIGN(16) __m128i tmpblock;
kiasu.c: ^
kiasu.c: kiasu.c:271:17: error: expected expression
kiasu.c: adp = (block *)ad;
kiasu.c: ^
kiasu.c: kiasu.c:271:10: error: use of undeclared identifier 'block'; did you mean 'lockf'?
kiasu.c: adp = (block *)ad;
kiasu.c: ^~~~~
kiasu.c: lockf
kiasu.c: ...

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

Compiler output

Implementation: crypto_aead/kiasuneq128v1/opt
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
kiasu.c: kiasu.c:85:28: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'kiasu_aead_encrypt' that is compiled without support for 'sse2'
kiasu.c: const __m128i ONE = constant8( 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,1,0,0);
kiasu.c: ^
kiasu.c: ./aes_ni.macros:13:76: note: expanded from macro 'constant8'
kiasu.c: #define constant8(b15,b14,b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,b2,b1,b0) _mm_set_epi8 ((b0),(b1),(b2),(b3),(b4),(b5),(b6),(b7),(b8),(b9),(b10),(b11),(b12),(b13),(b14),(b15))
kiasu.c: ^
kiasu.c: kiasu.c:86:29: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'kiasu_aead_encrypt' that is compiled without support for 'sse2'
kiasu.c: const __m128i EIGHT = constant8( 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,8,0,0);
kiasu.c: ^
kiasu.c: ./aes_ni.macros:13:76: note: expanded from macro 'constant8'
kiasu.c: #define constant8(b15,b14,b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,b2,b1,b0) _mm_set_epi8 ((b0),(b1),(b2),(b3),(b4),(b5),(b6),(b7),(b8),(b9),(b10),(b11),(b12),(b13),(b14),(b15))
kiasu.c: ^
kiasu.c: kiasu.c:87:30: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'kiasu_aead_encrypt' that is compiled without support for 'sse2'
kiasu.c: const __m128i SEIGHT = constant8( 8,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0);
kiasu.c: ^
kiasu.c: ./aes_ni.macros:13:76: note: expanded from macro 'constant8'
kiasu.c: #define constant8(b15,b14,b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,b2,b1,b0) _mm_set_epi8 ((b0),(b1),(b2),(b3),(b4),(b5),(b6),(b7),(b8),(b9),(b10),(b11),(b12),(b13),(b14),(b15))
kiasu.c: ^
kiasu.c: kiasu.c:88:36: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'kiasu_aead_encrypt' that is compiled without support for 'sse2'
kiasu.c: const __m128i STAGE_MASK = constant8( 0x1f ,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff );
kiasu.c: ^
kiasu.c: ./aes_ni.macros:13:76: note: expanded from macro 'constant8'
kiasu.c: #define constant8(b15,b14,b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,b2,b1,b0) _mm_set_epi8 ((b0),(b1),(b2),(b3),(b4),(b5),(b6),(b7),(b8),(b9),(b10),(b11),(b12),(b13),(b14),(b15))
kiasu.c: ^
kiasu.c: kiasu.c:89:36: error: always_inline function '_mm_set_epi8' requires target feature 'sse2', but would be inlined into function 'kiasu_aead_encrypt' that is compiled without support for 'sse2'
kiasu.c: ...

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

Compiler output

Implementation: crypto_aead/kiasuneq128v1/opt
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
kiasu.c: kiasu.c: In function 'assist128':
kiasu.c: kiasu.c:36:1: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
kiasu.c: {
kiasu.c: ^
kiasu.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
kiasu.c: from kiasu.c:26:
kiasu.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
kiasu.c: _mm_xor_si128 (__m128i __A, __m128i __B)
kiasu.c: ^
kiasu.c: kiasu.c:41:12: error: called from here
kiasu.c: return _mm_xor_si128 (a, _mm_shuffle_epi32 (b ,0xff));
kiasu.c: ^
kiasu.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
kiasu.c: from kiasu.c:26:
kiasu.c: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:1415:1: error: inlining failed in call to always_inline '_mm_shuffle_epi32': target specific option mismatch
kiasu.c: _mm_shuffle_epi32 (__m128i __A, const int __mask)
kiasu.c: ^
kiasu.c: kiasu.c:41:12: error: called from here
kiasu.c: return _mm_xor_si128 (a, _mm_shuffle_epi32 (b ,0xff));
kiasu.c: ^
kiasu.c: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:1249:0,
kiasu.c: from kiasu.c:26:
kiasu.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
kiasu.c: _mm_xor_si128 (__m128i __A, __m128i __B)
kiasu.c: ^
kiasu.c: ...

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

Compiler output

Implementation: crypto_aead/kiasuneq128v1/bitslice
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
kiasu.c: kiasu.c: In function 'kiasu_aead_encrypt':
kiasu.c: kiasu.c:256:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block Auth; /* Auth value during the mode */
kiasu.c: ^
kiasu.c: kiasu.c:257:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block Checksum; /* Checksum on the plaintext blocks */
kiasu.c: ^
kiasu.c: kiasu.c:258:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block PaddedBlock; /* Padded blocks if needed, otherwise the zero bock */
kiasu.c: ^
kiasu.c: kiasu.c:259:13: error: unknown type name 'block'
kiasu.c: ALIGN(16) block ta[BPI]; /* 8 blocks for parallel processing */
kiasu.c: ^
kiasu.c: kiasu.c:260:19: error: unknown type name 'block'
kiasu.c: ALIGN(16) const block* adp; /* Pointer to the blocks to process */
kiasu.c: ^
kiasu.c: kiasu.c:262:13: error: unknown type name '__m128i'
kiasu.c: ALIGN(16) __m128i tmpblock;
kiasu.c: ^
kiasu.c: kiasu.c:271:10: error: 'block' undeclared (first use in this function)
kiasu.c: adp = (block *)ad;
kiasu.c: ^
kiasu.c: kiasu.c:271:10: note: each undeclared identifier is reported only once for each function it appears in
kiasu.c: kiasu.c:271:17: error: expected expression before ')' token
kiasu.c: adp = (block *)ad;
kiasu.c: ...

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