Implementation notes: amd64, hydra2, crypto_aead/trivia0v1

Computer: hydra2
Architecture: amd64
CPU ID: GenuineIntel-000206c2-bfebfbff
SUPERCOP version: 20141014
Operation: crypto_aead
Primitive: trivia0v1
TimeImplementationCompilerBenchmark dateSUPERCOP version
326380refgcc -funroll-loops -march=k8 -O3 -fomit-frame-pointer2014060920140525
326420refgcc -funroll-loops -m64 -march=k8 -O3 -fomit-frame-pointer2014060920140525
327324refgcc -funroll-loops -m64 -O3 -fomit-frame-pointer2014060920140525
327700refgcc -funroll-loops -march=barcelona -O3 -fomit-frame-pointer2014060920140525
327912refgcc -funroll-loops -m64 -march=barcelona -O3 -fomit-frame-pointer2014060920140525
328192refgcc -funroll-loops -O3 -fomit-frame-pointer2014060920140525
328448refgcc -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer2014060920140525
330420refgcc -march=k8 -O3 -fomit-frame-pointer2014060920140525
330760refgcc -funroll-loops -m64 -march=nocona -O3 -fomit-frame-pointer2014060920140525
330896refgcc -funroll-loops -march=nocona -O3 -fomit-frame-pointer2014060920140525
331336refgcc -m64 -march=k8 -O3 -fomit-frame-pointer2014060920140525
331980refgcc -m64 -march=barcelona -O3 -fomit-frame-pointer2014060920140525
332080refgcc -march=barcelona -O3 -fomit-frame-pointer2014060920140525
333556refgcc -m64 -march=core2 -O3 -fomit-frame-pointer2014060920140525
334324refgcc -m64 -march=corei7 -O3 -fomit-frame-pointer2014060920140525
334324refgcc -m64 -march=native -mtune=native -O3 -fomit-frame-pointer2014060920140525
334340refgcc -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer2014060920140525
334348refgcc -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer2014060920140525
334792refgcc -fno-schedule-insns -O3 -fomit-frame-pointer2014060920140525
334824refgcc -O3 -fomit-frame-pointer2014060920140525
336528refgcc -m64 -O3 -fomit-frame-pointer2014060920140525
340804refgcc -m64 -march=nocona -O3 -fomit-frame-pointer2014060920140525
341136refgcc -march=nocona -O3 -fomit-frame-pointer2014060920140525
353792refgcc -funroll-loops -march=k8 -O2 -fomit-frame-pointer2014060920140525
353920refgcc -funroll-loops -m64 -march=k8 -O2 -fomit-frame-pointer2014060920140525
354424refgcc -funroll-loops -m64 -march=barcelona -O2 -fomit-frame-pointer2014060920140525
354440refgcc -funroll-loops -march=barcelona -O2 -fomit-frame-pointer2014060920140525
356872refgcc -funroll-loops -m64 -O2 -fomit-frame-pointer2014060920140525
356920refgcc -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer2014060920140525
356936refgcc -funroll-loops -O2 -fomit-frame-pointer2014060920140525
367752refgcc -O2 -fomit-frame-pointer2014060920140525
367752refgcc -fno-schedule-insns -O2 -fomit-frame-pointer2014060920140525
367752refgcc -m64 -O2 -fomit-frame-pointer2014060920140525
368568refgcc -m64 -march=native -mtune=native -O2 -fomit-frame-pointer2014060920140525
368692refgcc -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer2014060920140525
368696refgcc -m64 -march=core2 -O2 -fomit-frame-pointer2014060920140525
368696refgcc -m64 -march=corei7 -O2 -fomit-frame-pointer2014060920140525
368716refgcc -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer2014060920140525
368868refgcc -m64 -march=barcelona -O2 -fomit-frame-pointer2014060920140525
368868refgcc -march=barcelona -O2 -fomit-frame-pointer2014060920140525
369208refgcc -m64 -march=k8 -O2 -fomit-frame-pointer2014060920140525
369212refgcc -march=k8 -O2 -fomit-frame-pointer2014060920140525
412432refgcc -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer2014060920140525
412436refgcc -funroll-loops -m64 -O -fomit-frame-pointer2014060920140525
412484refgcc -funroll-loops -O -fomit-frame-pointer2014060920140525
412660refgcc -funroll-loops -m64 -march=barcelona -O -fomit-frame-pointer2014060920140525
412668refgcc -funroll-loops -march=barcelona -O -fomit-frame-pointer2014060920140525
415500refgcc -funroll-loops -m64 -march=nocona -O -fomit-frame-pointer2014060920140525
415500refgcc -funroll-loops -march=nocona -O -fomit-frame-pointer2014060920140525
416652refgcc -funroll-loops -m64 -march=k8 -O -fomit-frame-pointer2014060920140525
416676refgcc -funroll-loops -march=k8 -O -fomit-frame-pointer2014060920140525
439252refgcc -funroll-loops -march=nocona -O2 -fomit-frame-pointer2014060920140525
440304refgcc -funroll-loops -m64 -march=nocona -O2 -fomit-frame-pointer2014060920140525
445112refgcc -march=barcelona -O -fomit-frame-pointer2014060920140525
445196refgcc -m64 -march=barcelona -O -fomit-frame-pointer2014060920140525
446824refgcc -m64 -march=k8 -O -fomit-frame-pointer2014060920140525
448108refgcc -march=k8 -O -fomit-frame-pointer2014060920140525
453784refgcc -O -fomit-frame-pointer2014060920140525
453828refgcc -fno-schedule-insns -O -fomit-frame-pointer2014060920140525
453828refgcc -m64 -march=corei7 -O -fomit-frame-pointer2014060920140525
453828refgcc -m64 -march=native -mtune=native -O -fomit-frame-pointer2014060920140525
453856refgcc -m64 -march=core2 -O -fomit-frame-pointer2014060920140525
453860refgcc -m64 -march=core2 -msse4 -O -fomit-frame-pointer2014060920140525
454368refgcc -m64 -O -fomit-frame-pointer2014060920140525
454476refgcc -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer2014060920140525
462124refgcc -march=nocona -O -fomit-frame-pointer2014060920140525
462360refgcc -m64 -march=nocona -O -fomit-frame-pointer2014060920140525
487816refgcc -funroll-loops -m64 -march=k8 -Os -fomit-frame-pointer2014060920140525
488332refgcc -funroll-loops -march=barcelona -Os -fomit-frame-pointer2014060920140525
488908refgcc -funroll-loops -m64 -march=nocona -Os -fomit-frame-pointer2014060920140525
489576refgcc -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer2014060920140525
489692refgcc -Os -fomit-frame-pointer2014060920140525
489692refgcc -march=k8 -Os -fomit-frame-pointer2014060920140525
489704refgcc -m64 -march=corei7 -Os -fomit-frame-pointer2014060920140525
489708refgcc -m64 -march=core2 -Os -fomit-frame-pointer2014060920140525
489848refgcc -funroll-loops -march=nocona -Os -fomit-frame-pointer2014060920140525
490192refgcc -m64 -march=k8 -Os -fomit-frame-pointer2014060920140525
490880refgcc -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer2014060920140525
491128refgcc -funroll-loops -Os -fomit-frame-pointer2014060920140525
491192refgcc -funroll-loops -m64 -Os -fomit-frame-pointer2014060920140525
491276refgcc -fno-schedule-insns -Os -fomit-frame-pointer2014060920140525
491560refgcc -m64 -march=core2 -msse4 -Os -fomit-frame-pointer2014060920140525
491564refgcc -m64 -Os -fomit-frame-pointer2014060920140525
491596refgcc -m64 -march=native -mtune=native -Os -fomit-frame-pointer2014060920140525
491616refgcc -march=barcelona -Os -fomit-frame-pointer2014060920140525
491824refgcc -march=nocona -Os -fomit-frame-pointer2014060920140525
491840refgcc -funroll-loops -m64 -march=barcelona -Os -fomit-frame-pointer2014060920140525
491888refgcc -m64 -march=barcelona -Os -fomit-frame-pointer2014060920140525
492004refgcc -m64 -march=nocona -Os -fomit-frame-pointer2014060920140525
492320refgcc -funroll-loops -march=k8 -Os -fomit-frame-pointer2014060920140525
534300refgcc -march=nocona -O2 -fomit-frame-pointer2014060920140525
539344refgcc -m64 -march=nocona -O2 -fomit-frame-pointer2014060920140525
2013620refgcc2014060920140525
2014348refcc2014060920140525
2015224refgcc -funroll-loops2014060920140525

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fomit-frame-pointer
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:183:8: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if(b&1==1) result=a;
encrypt.c: ^~~~~
encrypt.c: ...

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

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fwrapv -march=native -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer
encrypt.c: clang: warning: argument unused during compilation: '-fpolly'
encrypt.c: clang: warning: argument unused during compilation: '-fvectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize-aggressive'
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -O3 -fwrapv -march=native -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fomit-frame-pointer
encrypt.c: clang: warning: argument unused during compilation: '-mcpu=core-avx2'
encrypt.c: clang: warning: argument unused during compilation: '-mavx2'
encrypt.c: clang: warning: argument unused during compilation: '-mpclmul'
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer
encrypt.c: clang: warning: argument unused during compilation: '-mcpu=core-avx2'
encrypt.c: clang: warning: argument unused during compilation: '-mavx2'
encrypt.c: clang: warning: argument unused during compilation: '-mpclmul'
encrypt.c: clang: warning: argument unused during compilation: '-fpolly'
encrypt.c: clang: warning: argument unused during compilation: '-fvectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize-aggressive'
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fwrapv -mavx2 -fomit-frame-pointer
encrypt.c: clang: warning: argument unused during compilation: '-mavx2'
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:183:8: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if(b&1==1) result=a;
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -O3 -fwrapv -mavx2 -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/trivia0v1/ref
Compiler: clang -O3 -fwrapv -mavx2 -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer
encrypt.c: clang: warning: argument unused during compilation: '-mavx2'
encrypt.c: clang: warning: argument unused during compilation: '-fpolly'
encrypt.c: clang: warning: argument unused during compilation: '-fvectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize'
encrypt.c: clang: warning: argument unused during compilation: '-fslp-vectorize-aggressive'
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:123:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:123:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((a>gt;>gt;31)&1==1) result = result^(CONST_alpha_32);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^~~~~
encrypt.c: encrypt.c:148:12: note: place parentheses around the == expression to silence this warning
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ^
encrypt.c: ( )
encrypt.c: encrypt.c:148:12: note: place parentheses around the & expression to evaluate it first
encrypt.c: if((b>gt;>gt;63)&1==1) result = result^(CONST_beta_64);
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -O3 -fwrapv -mavx2 -fpolly -funroll-loops -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -fomit-frame-pointer ref