Re: [RS6000] rotate and mask constants

2020-10-08 Thread will schmidt via Gcc-patches
On Thu, 2020-10-08 at 09:36 +1030, Alan Modra via Gcc-patches wrote: > Implement more two insn constants. rotate_and_mask_constant covers > 64-bit constants that can be formed by rotating a 16-bit signed > constant, rotating a 16-bit signed constant masked on left or right > (rldicl and rldicr), r

Re: [RS6000] rotate and mask constants

2020-09-21 Thread Segher Boessenkool
On Tue, Sep 15, 2020 at 04:46:08PM +0930, Alan Modra wrote: > On Tue, Sep 15, 2020 at 10:49:46AM +0930, Alan Modra wrote: > > Implement more two insn constants. > > And tests. rot_cst1 checks the values generated, rot_cst2 checks > instruction count. > > * gcc.target/powerpc/rot_cst.h, >

Re: [RS6000] rotate and mask constants

2020-09-15 Thread Alan Modra via Gcc-patches
On Tue, Sep 15, 2020 at 10:49:46AM +0930, Alan Modra wrote: > Implement more two insn constants. And tests. rot_cst1 checks the values generated, rot_cst2 checks instruction count. * gcc.target/powerpc/rot_cst.h, * gcc.target/powerpc/rot_cst1.c, * gcc.target/powerpc/rot_c