Re: [ARC PATCH] Improve performance of SImode right shifts (take #2)

2024-07-23 Thread Jeff Law
On 7/22/24 11:07 AM, Roger Sayle wrote: > > Whilst 33-bit pseudo-rotations almost certainly doesn't occur frequently in real code, this provides a very useful building block. Conventionally, rotations require 2 cycles per bit; one cycle to shift the top-bit out out of the source, and one cyc

[ARC PATCH] Improve performance of SImode right shifts (take #2)

2024-07-22 Thread Roger Sayle
This significantly reworks my previous patch to improve SImode right shifts on ARC CPUs without a barrel shifter when not optimizing for size. This patch provides several additional implementation strategies further reducing the number of cycles required. One feature of !TARGET_BARREL_SHIFTER on