Re: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-06 Thread Uros Bizjak via Gcc-patches
On Mon, Jun 6, 2022 at 1:28 PM Uros Bizjak wrote: > > On Sun, Jun 5, 2022 at 7:19 PM Roger Sayle wrote: > > > > > > This patch extends the recent and;cmp to not;test optimization to also > > perform this transformation for TImode on TARGET_64BIT and DImode on -m32, > > One motivation for this is

Re: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-06 Thread Uros Bizjak via Gcc-patches
On Sun, Jun 5, 2022 at 7:19 PM Roger Sayle wrote: > > > This patch extends the recent and;cmp to not;test optimization to also > perform this transformation for TImode on TARGET_64BIT and DImode on -m32, > One motivation for this is that it's a step to fixing the current failure > of gcc.target/i3

Re: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-06 Thread Uros Bizjak via Gcc-patches
On Sun, Jun 5, 2022 at 7:19 PM Roger Sayle wrote: > > > This patch extends the recent and;cmp to not;test optimization to also > perform this transformation for TImode on TARGET_64BIT and DImode on -m32, > One motivation for this is that it's a step to fixing the current failure > of gcc.target/i3

Re: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-06 Thread Uros Bizjak via Gcc-patches
On Mon, Jun 6, 2022 at 10:23 AM Roger Sayle wrote: > > > Hi Uros, > > > The major theme of this patch is to generalize many of i386.md's > > > *di3_doubleword patterns to become *_doubleword patterns, i.e. > > > whenever there exists a "double word" optimization for DImode with > > > -m32, there s

RE: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-06 Thread Roger Sayle
Hi Uros, > > The major theme of this patch is to generalize many of i386.md's > > *di3_doubleword patterns to become *_doubleword patterns, i.e. > > whenever there exists a "double word" optimization for DImode with > > -m32, there should be an equivalent TImode optimization on TARGET_64BIT. > >

Re: [x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-05 Thread Uros Bizjak via Gcc-patches
On Sun, Jun 5, 2022 at 7:19 PM Roger Sayle wrote: > > > This patch extends the recent and;cmp to not;test optimization to also > perform this transformation for TImode on TARGET_64BIT and DImode on -m32, > One motivation for this is that it's a step to fixing the current failure > of gcc.target/i3

[x86 PATCH] Double word implementation of and; cmp to not; test optimization.

2022-06-05 Thread Roger Sayle
This patch extends the recent and;cmp to not;test optimization to also perform this transformation for TImode on TARGET_64BIT and DImode on -m32, One motivation for this is that it's a step to fixing the current failure of gcc.target/i386/pr65105-5.c on -m32. A more direct benefit for x86_64 is t