On 4/9/23 23:07, Lin Sinan via Gcc-patches wrote:
From: Sinan Lin <linsinan....@linux.alibaba.com>
there is no need to split an xori/ori with an small constant. take the test
case `int foo(int idx) { return idx|3; }` as an example,
rv64im_zba generates:
ori a0,a0,3
ret
but, rv64im_zba_zbs generates:
ori a0,a0,1
ori a0,a0,2
ret
with this change, insn `ori r2,r1,3` will not be splitted in zbs.
As noted, this was actually a regression. I've bootstrapped this change
on rv64 with no regressions and pushed it to the trunk.
Thanks!
jeff