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

2024-11-29 Thread Jeff Law
ours on my BPI). Pushing to the trunk. Jeff commit 74eb3570e6fba73b0e2bfce2a14d7696e30b48a8 Author: Mariam Arutunian Date: Thu Nov 28 14:35:23 2024 -0700 [PATCH v7 03/12] RISC-V: Add CRC expander to generate faster CRC. If the target is ZBC or ZBKC, it uses clmul instruction

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

2024-11-09 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. gcc/