Re: [RFC/RFA][PATCH v2 03/12] RISC-V: Add CRC expander to generate faster CRC.

2024-09-29 Thread Jeff Law
On 8/28/24 2:14 AM, Mariam Arutunian wrote: Yes, I applied some of the changes I made in AArch64 here as well, where possible and worked. Also, in AArch64, I used force_reg in some cases, but here, I didn't change, as you had told me to use riscv_expand_* instead of force_reg. I don't reca

Re: [RFC/RFA][PATCH v2 03/12] RISC-V: Add CRC expander to generate faster CRC.

2024-08-28 Thread Mariam Arutunian
On Sun, Aug 25, 2024 at 9:41 PM Jeff Law wrote: > > > On 7/26/24 12:06 PM, Mariam Arutunian wrote: > >If the target is ZBC or ZBKC, it uses clmul instruction for the CRC > > calculation. > > Otherwise, if the target is ZBKB, generates table-based CRC, but for > > reversing inputs and the outp

Re: [RFC/RFA][PATCH v2 03/12] RISC-V: Add CRC expander to generate faster CRC.

2024-08-25 Thread Jeff Law
On 7/26/24 12:06 PM, Mariam Arutunian wrote:   If the target is ZBC or ZBKC, it uses clmul instruction for the CRC calculation. Otherwise, if the target is ZBKB, generates table-based CRC, but for reversing inputs and the output uses bswap and brev8 instructions.   Add new tests to check C

[RFC/RFA][PATCH v2 03/12] RISC-V: Add CRC expander to generate faster CRC.

2024-07-26 Thread Mariam Arutunian
If the target is ZBC or ZBKC, it uses clmul instruction for the CRC calculation. Otherwise, if the target is ZBKB, generates table-based CRC, but for reversing inputs and the output uses bswap and brev8 instructions. Add new tests to check CRC generation for ZBC, ZBKC and ZBKB targets.