Implementation notes: amd64, dali, crypto_aead/trivia0v1

Computer: dali
Microarchitecture: amd64; Zen (820f01)
Architecture: amd64
CPU ID: AuthenticAMD-00820f01-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: trivia0v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
18176811538 0 027544 812 1048T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
20511614699 0 030608 812 1048T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
20860511174 0 027616 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
2305075996 0 020632 780 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
2402568512 0 024152 780 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
2671444122 0 017774 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
2739484172 0 018158 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
3323644452 0 018663 772 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
9648333940 0 016987 756 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625

Compiler output


encrypt.c: encrypt.c:52:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u64 temp,
encrypt.c:             ^
encrypt.c: encrypt.c:58:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u32 temp,
encrypt.c:             ^
encrypt.c: encrypt.c:123:12: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
encrypt.c:         if((a>>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>>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>>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>>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>>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: ...

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


encrypt.c: encrypt.c: In function 'load64':
encrypt.c: encrypt.c:52:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c:    52 | {int i; u64 temp,
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'load32':
encrypt.c: encrypt.c:58:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c:    58 | {int i; u32 temp,
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'Mult_by_alpha_power':
encrypt.c: encrypt.c:123:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   123 |  if((a>>31)&1==1) result = result^(CONST_alpha_32);
encrypt.c:       |            ^
encrypt.c: encrypt.c: In function 'Mult_by_beta_power':
encrypt.c: encrypt.c:148:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   148 |  if((b>>63)&1==1) result = result^(CONST_beta_64);
encrypt.c:       |            ^
encrypt.c: encrypt.c: In function 'Field_Mult_32':
encrypt.c: encrypt.c:183:8: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   183 |    if(b&1==1) result=a;
encrypt.c:       |        ^
encrypt.c: encrypt.c:189:6: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   189 |  if(b&1==1) result=result^a;
encrypt.c:       |      ^
encrypt.c: encrypt.c: In function 'Initialize_process_AD_Reinitialize':
encrypt.c: encrypt.c:236:7: warning: unused variable 'FINISH' [-Wunused-variable]
encrypt.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)