diff options
author | Kamlesh Kumar <kamleshbhalui@gmail.com> | 2020-06-18 19:16:54 +0530 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2020-06-25 16:13:53 -0700 |
commit | 249fef00d925ce56d7eb1f6910064a586716cba4 (patch) | |
tree | a405cedd72a8e4a455fb956031e848fb65e62c44 /llvm/unittests/Support/JSONTest.cpp | |
parent | 71c14cd5aee72a7502a45068ec73487d1f9e019c (diff) | |
download | bcm5719-llvm-249fef00d925ce56d7eb1f6910064a586716cba4.tar.gz bcm5719-llvm-249fef00d925ce56d7eb1f6910064a586716cba4.zip |
[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
(cherry picked from commit 7622ea5835f0381a426e504f4c03f11733732b83)
Diffstat (limited to 'llvm/unittests/Support/JSONTest.cpp')
0 files changed, 0 insertions, 0 deletions