Re: [PATCH] RISC-V: Use vclmul for CRC expansion if available

2025-05-05 Thread Jeff Law
On 5/4/25 10:49 PM, Anton Blanchard wrote: If the vector version of clmul (vclmul) is available and the scalar one is not, use it for CRC expansion. gcc/Changelog: * config/riscv/bitmanip.md (crc_rev4): Check TARGET_ZVBC. (crc4): Likewise. * config/riscv/riscv

[PATCH] RISC-V: Use vclmul for CRC expansion if available

2025-05-04 Thread Anton Blanchard
If the vector version of clmul (vclmul) is available and the scalar one is not, use it for CRC expansion. gcc/Changelog: * config/riscv/bitmanip.md (crc_rev4): Check TARGET_ZVBC. (crc4): Likewise. * config/riscv/riscv.cc (expand_crc_using_clmul): Emit code using