Re: PPC chacha

2020-11-21 Thread Niels Möller
David Edelsohn writes: > I responded that Power9 (or at least Power8) would be preferred. If > Niels wants the implementation to impact production deployments and > increase the use of Nettle for cryptography on Power systems, I > recommend that he target a more recent level of the ISA. He can

Re: PPC chacha

2020-11-21 Thread David Edelsohn
On Sat, Nov 21, 2020 at 11:32 AM Jeffrey Walton wrote: > > On Sat, Nov 21, 2020 at 11:23 AM David Edelsohn wrote: > > > > On Sat, Nov 21, 2020 at 10:57 AM Jeffrey Walton wrote: > > > > > > On Sat, Nov 21, 2020 at 10:20 AM David Edelsohn wrote: > > > > > > > > Please don't target Power7.

Re: PPC chacha

2020-11-21 Thread Jeffrey Walton
On Sat, Nov 21, 2020 at 11:23 AM David Edelsohn wrote: > > On Sat, Nov 21, 2020 at 10:57 AM Jeffrey Walton wrote: > > > > On Sat, Nov 21, 2020 at 10:20 AM David Edelsohn wrote: > > > > > > Please don't target Power7. Please target Power9, or at least Power8. > > > > > > The PPC64LE Linux ABI

Re: PPC chacha

2020-11-21 Thread David Edelsohn
On Sat, Nov 21, 2020 at 10:57 AM Jeffrey Walton wrote: > > On Sat, Nov 21, 2020 at 10:20 AM David Edelsohn wrote: > > > > Please don't target Power7. Please target Power9, or at least Power8. > > > > The PPC64LE Linux ABI specifies Power8 as the minimum ISA. > > > > Power ISA 2.07 is Power8.

Re: PPC chacha

2020-11-21 Thread Jeffrey Walton
On Sat, Nov 21, 2020 at 10:20 AM David Edelsohn wrote: > > Please don't target Power7. Please target Power9, or at least Power8. > > The PPC64LE Linux ABI specifies Power8 as the minimum ISA. > > Power ISA 2.07 is Power8. ISA 3.0 is Power9. ISA 3.1 is Power10. Small nit... PowerMac G4's and

Re: [PowerPC] GCM optimization

2020-11-21 Thread Niels Möller
Maamoun TK writes: > For the first approach I can think of this method: > lxvd2x VSR(C0),0,DATA > IF_LE(` > vperm C0,C0,C0,LE_MASK > ') > slwiLENGTH,LENGTH,4 (Shift left 4 bitls because vsro get > bit[121:124]) > vspltisbv10,-1 > (0x) >

Re: PPC chacha

2020-11-21 Thread David Edelsohn
Please don't target Power7. Please target Power9, or at least Power8. The PPC64LE Linux ABI specifies Power8 as the minimum ISA. Power ISA 2.07 is Power8. ISA 3.0 is Power9. ISA 3.1 is Power10. Thanks, David On Sat, Nov 21, 2020 at 10:11 AM Niels Möller wrote: > > Jeffrey Walton writes: >

Re: PPC chacha

2020-11-21 Thread Niels Möller
Jeffrey Walton writes: > GCC112 is a POWER8 machine. According to the POWER manual, vextractuw > is a POWER9 instruction. > > POWER8 manual: > https://openpowerfoundation.org/?resource_lib=power8-processor-users-manual > POWER9 manual: >