RISC-V: Add conditional negate expansion
RISC-V gets a new instruction expansion for conditional negation of integral values.
A new expansion, neg
In Details
This commit introduces a new RISC-V pseudo instruction, neg<mode>cc, to the RTL expansion. It implements conditional negation (X ? -X : X) using a combination of CMP, MASK, XOR, and ADD operations, where MASK is derived from the comparison result. A separate output pseudo is used for the XOR result to ensure single assignment. This pattern is intended to be consumed by existing if-conversion passes on RISC-V targets.