Re: [PATCH] RISC-V: branch-(not)equals-zero compares against $zero

2022-11-19 Thread Jeff Law via Gcc-patches
On 11/17/22 21:53, Palmer Dabbelt wrote: On Thu, 17 Nov 2022 14:44:31 PST (-0800), jeffreya...@gmail.com wrote: On 11/8/22 12:55, Philipp Tomsich wrote: If we are testing a register or a paradoxical subreg (i.e. anything that is not a partial subreg) for equality/non-equality with zero, we c

Re: [PATCH] RISC-V: branch-(not)equals-zero compares against $zero

2022-11-18 Thread Philipp Tomsich
On Fri, 18 Nov 2022 at 05:53, Palmer Dabbelt wrote: > > On Thu, 17 Nov 2022 14:44:31 PST (-0800), jeffreya...@gmail.com wrote: > > > > On 11/8/22 12:55, Philipp Tomsich wrote: > >> If we are testing a register or a paradoxical subreg (i.e. anything that > >> is not > >> a partial subreg) for equa

Re: [PATCH] RISC-V: branch-(not)equals-zero compares against $zero

2022-11-17 Thread Palmer Dabbelt
On Thu, 17 Nov 2022 14:44:31 PST (-0800), jeffreya...@gmail.com wrote: On 11/8/22 12:55, Philipp Tomsich wrote: If we are testing a register or a paradoxical subreg (i.e. anything that is not a partial subreg) for equality/non-equality with zero, we can generate a branch that compares against $

Re: [PATCH] RISC-V: branch-(not)equals-zero compares against $zero

2022-11-17 Thread Jeff Law via Gcc-patches
On 11/8/22 12:55, Philipp Tomsich wrote: If we are testing a register or a paradoxical subreg (i.e. anything that is not a partial subreg) for equality/non-equality with zero, we can generate a branch that compares against $zero. This will work for QI, HI, SI and DImode, so we enable this for

[PATCH] RISC-V: branch-(not)equals-zero compares against $zero

2022-11-08 Thread Philipp Tomsich
If we are testing a register or a paradoxical subreg (i.e. anything that is not a partial subreg) for equality/non-equality with zero, we can generate a branch that compares against $zero. This will work for QI, HI, SI and DImode, so we enable this for ANYI. 2020-08-30 gcc/ChangeLog: *