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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp | ||
---|---|---|
110 | Format this like the others lines? |
This revision is now accepted and ready to land.May 26 2023, 8:42 AM
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.
Format this like the others lines?