Re: [PATCH 7/7] ifcvt: add if-conversion to conditional-zero instructions

2022-11-12 Thread Philipp Tomsich
On Sat, 12 Nov 2022 at 22:47, Andrew Pinski wrote: > > On Sat, Nov 12, 2022 at 1:34 PM Philipp Tomsich > wrote: > > > > Some architectures, as it the case on RISC-V with the proposed > > ZiCondOps and the vendor-defined XVentanaCondOps, define a > > conditional-zero instruction that is equivalent

Re: [PATCH 7/7] ifcvt: add if-conversion to conditional-zero instructions

2022-11-12 Thread Andrew Pinski via Gcc-patches
On Sat, Nov 12, 2022 at 1:34 PM Philipp Tomsich wrote: > > Some architectures, as it the case on RISC-V with the proposed > ZiCondOps and the vendor-defined XVentanaCondOps, define a > conditional-zero instruction that is equivalent to: > - the positive form: rd = (rc != 0) ? rs : 0 > - the neg

[PATCH 7/7] ifcvt: add if-conversion to conditional-zero instructions

2022-11-12 Thread Philipp Tomsich
Some architectures, as it the case on RISC-V with the proposed ZiCondOps and the vendor-defined XVentanaCondOps, define a conditional-zero instruction that is equivalent to: - the positive form: rd = (rc != 0) ? rs : 0 - the negated form: rd = (rc == 0) ? rs : 0 While noce_try_store_flag_mask