Implementation notes: amd64, renoir, crypto_aead/trivia128v1

Computer: renoir
Microarchitecture: amd64; Zen 2 (860f01)
Architecture: amd64
CPU ID: AuthenticAMD-00860f01-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: trivia128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
17476611883 0 027912 812 1048T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
18212015000 0 030928 812 1048T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
20505811462 0 027904 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
2060078907 0 025248 780 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
2147266184 0 020808 780 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
2296774504 0 018190 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
2438944476 0 018478 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
3079364579 0 018791 772 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
9786114147 0 017195 756 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Compiler output


encrypt.c: encrypt.c:52:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u64 temp, Block = Bytes[0];
encrypt.c:             ^
encrypt.c: encrypt.c:56:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c: {int i; u32 temp, Block = (u8)Bytes[0];
encrypt.c:             ^
encrypt.c: encrypt.c:118: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:118: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:118: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:143: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:143: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:143: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, Block = Bytes[0];
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'load32':
encrypt.c: encrypt.c:56:13: warning: unused variable 'temp' [-Wunused-variable]
encrypt.c:    56 | {int i; u32 temp, Block = (u8)Bytes[0];
encrypt.c:       |             ^~~~
encrypt.c: encrypt.c: In function 'Mult_by_alpha_power':
encrypt.c: encrypt.c:118:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   118 |  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:143:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   143 |  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:178:8: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   178 |    if(b&1==1) result=a;
encrypt.c:       |        ^
encrypt.c: encrypt.c:184:6: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
encrypt.c:   184 |  if(b&1==1) result=result^a;
encrypt.c:       |      ^
encrypt.c: encrypt.c: In function 'Initialize_process_AD_Reinitialize':
encrypt.c: encrypt.c:228: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)