https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129223

Guo Jie <guojie at loongson dot cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |guojie at loongson dot cn

--- Comment #3 from Guo Jie <guojie at loongson dot cn> ---
Thanks.  The preliminary patch in attachment 66368 provided the starting point
for this change.

I have posted a revised patch to the original gcc-patches thread:

https://gcc.gnu.org/pipermail/gcc-patches/2026-December/742709.html

The revised version corrects the handling of the second selection.  Since that
selection uses the inverse condition, an original NE condition becomes OP0 ==
0; when operands[3] is OP0, the selection is therefore zero, not OP0.

The patch handles both EQ and NE for the original and inverse conditions and
removes the final IOR when either selection is zero.

Reply via email to