On 9/24/26 11:54 PM, Naveen wrote:
Add a neg<mode>cc expansion for integral comparisons on RISC-V.

The expansion implements:

   X ? -X : X

as:

   CMP = condition ? 1 : 0
   MASK = -CMP
   RESULT = X ^ MASK
   RESULT += CMP

This pattern can be used by  existing if-conversion paths. Use a
separate pseudo for the XOR result so that the output pseudo is
assigned only once.

Signed-off-by: Naveen <[email protected]>
OK.  Obviously you'll need a ChangeLog entry.

jeff

Reply via email to