Implementation notes: amd64, gcc68, crypto_aead/trivia0v2

Computer: gcc68
Architecture: amd64
CPU ID: AuthenticAMD-00800f82-178bfbff
SUPERCOP version: 20191221
Operation: crypto_aead
Primitive: trivia0v2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
3817616502 0 031115 784 888sse4clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
3820815358 0 029779 784 888sse4clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
3824015358 0 029779 784 888sse4clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
447687109 0 021252 800 912sse4gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
491524359 0 016979 792 912sse4gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
570884857 0 017355 792 912sse4gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
771203862 0 015657 776 872sse4clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
1550088919 0 023747 784 872refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
17574410084 0 024292 800 896refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
17625611902 0 026795 784 856refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
1846088511 0 023147 784 872refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
1846088511 0 023147 784 872refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
1872325038 0 017715 792 896refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
2098884171 0 016025 776 856refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2019122220191221
2312324204 0 016763 792 896refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221
7401283661 0 015143 776 896refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191221

Compiler output

Implementation: sse4
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:229:1: warning: '/*' within block comment [-Wcomment]
encrypt.c: /*----------------------------------------------------------------*/
encrypt.c: ^
encrypt.c: 1 warning generated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4

Compiler output

Implementation: sse4
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:229:1: warning: '/*' within block comment [-Wcomment]
encrypt.c: /*----------------------------------------------------------------*/
encrypt.c: ^
encrypt.c: encrypt.c:306:6: error: '__builtin_ia32_pclmulqdq128' needs target feature pclmul
encrypt.c: x = _mm_clmulepi64_si128(x,y,0x0);
encrypt.c: ^
encrypt.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/__wmmintrin_pclmul.h:59:13: note: expanded from macro '_mm_clmulepi64_si128'
encrypt.c: ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(X), \
encrypt.c: ^
encrypt.c: encrypt.c:313:6: error: '__builtin_ia32_pclmulqdq128' needs target feature pclmul
encrypt.c: x = _mm_clmulepi64_si128(x,y,0x0);
encrypt.c: ^
encrypt.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/__wmmintrin_pclmul.h:59:13: note: expanded from macro '_mm_clmulepi64_si128'
encrypt.c: ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(X), \
encrypt.c: ^
encrypt.c: encrypt.c:319:6: error: '__builtin_ia32_pclmulqdq128' needs target feature pclmul
encrypt.c: x = _mm_clmulepi64_si128(x,y,0x0);
encrypt.c: ^
encrypt.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/__wmmintrin_pclmul.h:59:13: note: expanded from macro '_mm_clmulepi64_si128'
encrypt.c: ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(X), \
encrypt.c: ^
encrypt.c: 1 warning and 3 errors generated.

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

Compiler output

Implementation: sse4
Security model: unknown
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: crypto_aead_trivia0v2.a(encrypt.o): in function `V_Horner_32':
try.c: encrypt.c:(.text+0x...): undefined reference to `Mult_by_alpha_power'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `Mult_by_alpha_power'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `Mult_by_alpha_power'
try.c: /usr/bin/ld: crypto_aead_trivia0v2.a(encrypt.o): in function `V_Horner_64':
try.c: encrypt.c:(.text+0x...): undefined reference to `Mult_by_beta_power'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `Mult_by_beta_power'
try.c: /usr/bin/ld: crypto_aead_trivia0v2.a(encrypt.o): in function `Initialize_process_AD_Reinitialize':
try.c: encrypt.c:(.text+0x...): undefined reference to `load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `pad'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `insert_SC'
try.c: /usr/bin/ld: crypto_aead_trivia0v2.a(encrypt.o): in function `crypto_aead_trivia0v2_sse4_encrypt':
try.c: encrypt.c:(.text+0x...): undefined reference to `load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `pad'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `store32'
try.c: /usr/bin/ld: crypto_aead_trivia0v2.a(encrypt.o): in function `crypto_aead_trivia0v2_sse4_decrypt':
try.c: encrypt.c:(.text+0x...): undefined reference to `dec_load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `dec_load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `dec_load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `dec_load64'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `pad'
try.c: /usr/bin/ld: encrypt.c:(.text+0x...): undefined reference to `dec_load32'
try.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE sse4

Namespace violations

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.o Field_Mult_32 T
encrypt.o Initialize_process_AD_Reinitialize T
encrypt.o Key_Ext64 T
encrypt.o Mult_by_alpha_power T
encrypt.o Mult_by_beta_power T
encrypt.o Reverse_32 T
encrypt.o SC_Update64 T
encrypt.o V_Horner_32 T
encrypt.o V_Horner_64 T
encrypt.o insert_SC T
encrypt.o load32 T
encrypt.o load64 T
encrypt.o load_SC T
encrypt.o pad T
encrypt.o process_block T

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref

Namespace violations

Implementation: sse4
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.o Field_Mult_32 T
encrypt.o G_STAR C
encrypt.o Initialize_process_AD_Reinitialize T
encrypt.o Key_Ext64 T
encrypt.o Q_PLUS C
encrypt.o SC_Update64 T
encrypt.o V_Horner_32 T
encrypt.o V_Horner_64 T
encrypt.o process_block T

Number of similar (compiler,implementation) pairs: 7, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE sse4
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE sse4
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE sse4
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE sse4