[PATCH v2 2/3] riscv: memcpy_noalignment: Fold SZREG/BLOCK_SIZE alignment to single andi

Yao Zihong zihong.plct@isrc.iscas.ac.cn
Wed Sep 17 14:19:15 GMT 2025


On 2025-09-17, Peter Bergner wrote:
> Agreed.  ...except that the andi insns will never be compressed as is.
> The "andi a7, a2, -BLOCK_SIZE" cannot be converted to the compressed
> form because rd != rs, plus -BLOCK_SIZE is too large for the signed
> 6-bit offset, so the "and favors compressed encodings" comment isn't
> actually true.

The commit message note about compressed encoding was inaccurate.
It will be removed in the next version.

Thanks,
Yao Zihong



More information about the Libc-alpha mailing list