Re: [libgcc PATCH] Add bit reversal functions __bitrev[qhsd]i2.

2023-05-11 Thread Richard Sandiford via Gcc-patches
"Roger Sayle" writes: > This patch proposes adding run-time library support for bit reversal, > by adding a __bitrevsi2 function to libgcc. Thoughts/opinions? > > I'm also tempted to add __popcount[qh]i2 and __parity[qh]i2 to libgcc, > to allow the RTL optimizers to perform narrowing operations,

Re: [libgcc PATCH] Add bit reversal functions __bitrev[qhsd]i2.

2023-05-06 Thread Andrew Pinski via Gcc-patches
On Sat, May 6, 2023 at 10:26 AM Roger Sayle wrote: > > > This patch proposes adding run-time library support for bit reversal, > by adding a __bitrevsi2 function to libgcc. Thoughts/opinions? Are you going to add a builtin for these functions too? If so that is recorded as https://gcc.gnu.org/bu

[libgcc PATCH] Add bit reversal functions __bitrev[qhsd]i2.

2023-05-06 Thread Roger Sayle
This patch proposes adding run-time library support for bit reversal, by adding a __bitrevsi2 function to libgcc. Thoughts/opinions? I'm also tempted to add __popcount[qh]i2 and __parity[qh]i2 to libgcc, to allow the RTL optimizers to perform narrowing operations, but I'm curious to hear whether