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

2024-09-29 Thread Jeff Law
On 9/13/24 5:05 AM, 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

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

2024-09-13 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