We would previously have no soft-float softening for cbrt, so could hit a crash failing to select. This fills in what appears to be missing.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it also make sense to add FCBRT to ExpandFloatResult and PromoteFloatResult? I don't know if it would be possible to test those though.
Comment Actions
Yeah, adding them is simple enough, but I'm not sure how those might be tested. I have added them here and included a test for halfs (which will not be converted into a cbrt, but if they were may then need promotion).
Comment Actions
LGTM
For promote, you'd need a type with an explicit float specification. "expand" only applies to ppc_f128. So I doubt either case is reachable. But the code is simple enough that the lack of coverage is unlikely to matter.