Re: [PATCH] bfin: Popcount-related improvements to machine description.

2021-10-17 Thread Jeff Law via Gcc-patches
On 10/17/2021 7:08 AM, Roger Sayle wrote: Blackfin processors support a ONES instruction that implements a 32-bit popcount returning a 16-bit result. This instruction was previously described by GCC's bfin backed using a UNSPEC, but with this patch uses a POPCOUNT:SI rtx to capture the semant

[PATCH] bfin: Popcount-related improvements to machine description.

2021-10-17 Thread Roger Sayle
Blackfin processors support a ONES instruction that implements a 32-bit popcount returning a 16-bit result. This instruction was previously described by GCC's bfin backed using a UNSPEC, but with this patch uses a POPCOUNT:SI rtx to capture the semantics, allowing it to evaluated at compile-time.