Promote f16 to f32 and use the f32 libcall.
I deleted rv64zfh-half-intrinsics-strict.ll because it only existed due to this issue breaking rv32.
Paths
| Differential D134579
[LegalizeTypes][RISCV] Support f16 in ExpandIntRes_LLROUND_LLRINT. ClosedPublic Authored by craig.topper on Sep 23 2022, 7:01 PM.
Details Summary Promote f16 to f32 and use the f32 libcall. I deleted rv64zfh-half-intrinsics-strict.ll because it only existed due to this issue breaking rv32.
Diff Detail
Event TimelineComment Actions LGTM. I'm basically trusting this is valid by the float semantics, and am only reviewing the code change. This revision now requires changes to proceed.Sep 26 2022, 7:14 AM This revision was not accepted when it landed; it landed in state Needs Revision.Sep 26 2022, 11:17 AM This revision was landed with ongoing or failed builds. Closed by commit rGafdd600a491d: [LegalizeTypes][RISCV] Support f16 in ExpandIntRes_LLROUND_LLRINT. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions
Yep.
Revision Contents
Diff 462972 llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/RISCV/rv64zfh-half-intrinsics-strict.ll
llvm/test/CodeGen/RISCV/zfh-half-intrinsics-strict.ll
|