Re: [xstormy16 PATCH] Improved SImode shifts by two bits.

2023-04-22 Thread Jeff Law via Gcc-patches
On 4/22/23 10:43, Roger Sayle wrote: Currently on xstormy16 SImode shifts by a single bit require two instructions, and shifts by other non-zero integer immediate constants require five instructions. This patch implements the obvious optimization that shifts by two bits can be done in four i

[xstormy16 PATCH] Improved SImode shifts by two bits.

2023-04-22 Thread Roger Sayle
Currently on xstormy16 SImode shifts by a single bit require two instructions, and shifts by other non-zero integer immediate constants require five instructions. This patch implements the obvious optimization that shifts by two bits can be done in four instructions, by using two single-bit seque