Re: [PATCH] RISC-V: Support the ins "rol" with immediate operand

2022-11-28 Thread Jeff Law via Gcc-patches
On 11/28/22 18:53, Feng Wang wrote: on 2022-11-28 23:39  Jeff Law wrote: On 11/27/22 19:14, Feng Wang wrote: From: wangfeng There is no Immediate operand of ins "rol" accroding to the B-ext, so the immediate operand should be loaded into register at first. But we can convert it to the in

Re: Re: [PATCH] RISC-V: Support the ins "rol" with immediate operand

2022-11-28 Thread Feng Wang
on 2022-11-28 23:39  Jeff Law wrote: > > >On 11/27/22 19:14, Feng Wang wrote: >> From: wangfeng >> >> There is no Immediate operand of ins "rol" accroding to the B-ext, >> so the immediate operand should be loaded into register at first. >> But we can convert it to the ins "rori" or "roriw", and t

Re: [PATCH] RISC-V: Support the ins "rol" with immediate operand

2022-11-28 Thread Jeff Law via Gcc-patches
On 11/27/22 19:14, Feng Wang wrote: From: wangfeng There is no Immediate operand of ins "rol" accroding to the B-ext, so the immediate operand should be loaded into register at first. But we can convert it to the ins "rori" or "roriw", and then one immediate load ins can be reduced. Please r

[PATCH] RISC-V: Support the ins "rol" with immediate operand

2022-11-27 Thread Feng Wang
From: wangfeng There is no Immediate operand of ins "rol" accroding to the B-ext, so the immediate operand should be loaded into register at first. But we can convert it to the ins "rori" or "roriw", and then one immediate load ins can be reduced. Please refer to the following use cases: unsigne