As per title. This is extracted from D29872 and I threw SADDO in.
Details
Diff Detail
- Build Status
Buildable 4521 Build 4521: arc lint + arc unit
Event Timeline
Fix the ISD::SUB case, which needs to was threated as ADDE. It is probably possible to do somethign better, but it's good enough for now.
The multiple fall-throughs make this confusing. Since there's now three different properties that need to be checked (ADD vs SUB, carry-result vs no carry-result, carry-in vs no carry-in), a single fallthrough chain isn't really sufficient. I'd put all of the variants for all kinds of ADD/SUB in one case section, with ifs for the parts that need to be distinguished from each-other.
Should also move USUBO and SSUBO support down with the ADD/SUB variants, and treat them appropriately.
Also, ought to fix the exact same issue that occurs in ComputeNumSignBits for these operations.
Add some description comments