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
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
120 ms | x64 debian > LLVM.CodeGen/RISCV::bfloat.ll |
Event Timeline
Comment Actions
LGTM
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp | ||
---|---|---|
110 | Format this like the others lines? |
Format this like the others lines?