[PATCH] D147195: [RISCV] Support llvm.lround intrinsics with i32 return type on RV64.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 12:14:53 PDT 2023
craig.topper added a comment.
In D147195#4260521 <https://reviews.llvm.org/D147195#4260521>, @asb wrote:
> Seems weird that Flang needs this, but LGTM.
Here is the table from flang where this is used.
lib/Optimizer/Builder/IntrinsicCall.cpp
1375: // llvm.lround behaves the same way as libm's lround.
1376: {"nint", "llvm.lround.i64.f64", genIntF64FuncType<64>, genLibCall},
1377: {"nint", "llvm.lround.i64.f32", genIntF32FuncType<64>, genLibCall},
1378: {"nint", "llvm.lround.i32.f64", genIntF64FuncType<32>, genLibCall},
1379: {"nint", "llvm.lround.i32.f32", genIntF32FuncType<32>, genLibCall},
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147195/new/
https://reviews.llvm.org/D147195
More information about the llvm-commits
mailing list