As discussed in D151436, it's safe to do this as a simple shift (as is done in LegalizeDAG.cpp) rather than needing a libcall. The added test cases for RISC-V previously just triggered an assertion.
This revision was landed with ongoing or failed builds.May 29 2023, 2:34 AM
Closed by commit rG061e368fe213: [SelectionDAG] Implement soft FP legalisation for bf16 FP_EXTEND and BF16_TO_FP (authored by asb). · Explain Why
This revision was automatically updated to reflect the committed changes.