[all-commits] [llvm/llvm-project] 7622ea: [RISCV64] Emit correct lib call for fp(float/doubl...
Kamlesh Kumar via All-commits
all-commits at lists.llvm.org
Thu Jun 18 07:05:03 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7622ea5835f0381a426e504f4c03f11733732b83
https://github.com/llvm/llvm-project/commit/7622ea5835f0381a426e504f4c03f11733732b83
Author: Kamlesh Kumar <kamleshbhalui at gmail.com>
Date: 2020-06-18 (Thu, 18 Jun 2020)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rv64i-single-softfloat.ll
Log Message:
-----------
[RISCV64] Emit correct lib call for fp(float/double) to ui/si
Since i32 is not legal in riscv64,
it always promoted to i64 before emitting lib call and
for conversions like float/double to int and float/double to unsigned int
wrong lib call was emitted. This commit fix it using custom lowering.
Differential Revision: https://reviews.llvm.org/D80526
More information about the All-commits
mailing list