Implementation notes: x86, thoth, crypto_aead/paeq128tnm

Computer: thoth
Architecture: x86
CPU ID: AuthenticAMD-00000622-0183f9ff
SUPERCOP version: 20160806
Operation: crypto_aead
Primitive: paeq128tnm
TimeImplementationCompilerBenchmark dateSUPERCOP version
7017006refg++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072720160724
9385089refclang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments2016072720160724
16258392refg++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072720160724
19427781refg++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072720160724
19910229refg++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072720160724

Compiler output

Implementation: crypto_aead/paeq128tnm/opt-win-aes
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.cpp: In file included from encrypt.cpp:8:
encrypt.cpp: In file included from /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/c++/5.4.0/cstdint:35:
encrypt.cpp: /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
encrypt.cpp: #error This file requires compiler and library support \
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:13:10: fatal error: 'intrin.h' file not found
encrypt.cpp: #include gt;
encrypt.cpp: ^
encrypt.cpp: 2 errors generated.

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

Compiler output

Implementation: crypto_aead/paeq128tnm/aesni
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.cpp: encrypt.cpp:143:22: error: always_inline function '_mm_set_epi64x' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: __m128i roundkey0 = _mm_set_epi64x(0x0000000100000001, 0x0000000100000001);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:144:22: error: always_inline function '_mm_set_epi64x' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: __m128i roundkey1 = _mm_set_epi64x(0x0000000200000002, 0x0000000200000002);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:145:22: error: always_inline function '_mm_set_epi64x' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: __m128i roundkey2 = _mm_set_epi64x(0x0000000300000003, 0x0000000300000003);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:146:22: error: always_inline function '_mm_set_epi64x' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: __m128i roundkey3 = _mm_set_epi64x(0x0000000400000004, 0x0000000400000004);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:166:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: acc0 = _mm_aesenc_si128(acc0, roundkey0);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:167:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: acc1 = _mm_aesenc_si128(acc1, roundkey1);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:168:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: acc2 = _mm_aesenc_si128(acc2, roundkey2);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:169:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: acc3 = _mm_aesenc_si128(acc3, roundkey3);
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:171:11: error: always_inline function '_mm_aesenc_si128' requires target feature 'sse2', but would be inlined into function 'DoubleFPermAsm' that is compiled without support for 'sse2'
encrypt.cpp: ...

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

Compiler output

Implementation: crypto_aead/paeq128tnm/ref
Compiler: clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
encrypt.cpp: encrypt.cpp:355:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: encrypt.cpp:610:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: encrypt.cpp:864:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: 3 warnings generated.

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

Compiler output

Implementation: crypto_aead/paeq128tnm/opt-win-aes
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.cpp: In file included from /usr/include/c++/5/cstdint:35:0,
encrypt.cpp: from encrypt.cpp:8:
encrypt.cpp: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
encrypt.cpp: #error This file requires compiler and library support \
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:13:20: fatal error: intrin.h: No such file or directory
encrypt.cpp: #include gt;
encrypt.cpp: ^
encrypt.cpp: compilation terminated.

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

Compiler output

Implementation: crypto_aead/paeq128tnm/ref
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_paeq128tnm_ref_encrypt(unsigned char*, long long unsigned int*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:355:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_encrypt_no_nonce(unsigned char*, long long unsigned int*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:610:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp: In function 'int crypto_aead_paeq128tnm_ref_decrypt(unsigned char*, long long unsigned int*, unsigned char*, const unsigned char*, long long unsigned int, const unsigned char*, long long unsigned int, const unsigned char*, const unsigned char*)':
encrypt.cpp: encrypt.cpp:864:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits
encrypt.cpp: ^

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

Compiler output

Implementation: crypto_aead/paeq128tnm/aesni
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.cpp: encrypt.cpp: In function 'void DoubleFPermAsm(const __m128i*, const __m128i*, __m128i*, __m128i*)':
encrypt.cpp: encrypt.cpp:143:75: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
encrypt.cpp: __m128i roundkey0 = _mm_set_epi64x(0x0000000100000001, 0x0000000100000001);
encrypt.cpp: ^
encrypt.cpp: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/wmmintrin.h:31:0,
encrypt.cpp: from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:585:1: error: inlining failed in call to always_inline '__m128i _mm_set_epi64x(long long int, long long int)': target specific option mismatch
encrypt.cpp: _mm_set_epi64x (long long __q1, long long __q0)
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:146:75: error: called from here
encrypt.cpp: __m128i roundkey3 = _mm_set_epi64x(0x0000000400000004, 0x0000000400000004);
encrypt.cpp: ^
encrypt.cpp: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/wmmintrin.h:31:0,
encrypt.cpp: from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:585:1: error: inlining failed in call to always_inline '__m128i _mm_set_epi64x(long long int, long long int)': target specific option mismatch
encrypt.cpp: _mm_set_epi64x (long long __q1, long long __q0)
encrypt.cpp: ^
encrypt.cpp: encrypt.cpp:145:75: error: called from here
encrypt.cpp: __m128i roundkey2 = _mm_set_epi64x(0x0000000300000003, 0x0000000300000003);
encrypt.cpp: ^
encrypt.cpp: In file included from /usr/lib/gcc/i686-linux-gnu/5/include/wmmintrin.h:31:0,
encrypt.cpp: from encrypt.cpp:13:
encrypt.cpp: /usr/lib/gcc/i686-linux-gnu/5/include/emmintrin.h:585:1: error: inlining failed in call to always_inline '__m128i _mm_set_epi64x(long long int, long long int)': target specific option mismatch
encrypt.cpp: _mm_set_epi64x (long long __q1, long long __q0)
encrypt.cpp: ^
encrypt.cpp: ...

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