[PATCH] D94557: [ARM] Fixed incorrect lowering when using GNUEABI (libgcc) and 16bit floats
Renato Golin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 02:03:09 PST 2021
rengolin added a comment.
Also, please use `diff -U9999` as documented: https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface
================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:601
{ RTLIB::FPROUND_F64_F32, "__aeabi_d2f", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
- { RTLIB::FPROUND_F64_F16, "__aeabi_d2h", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
+ { RTLIB::FPROUND_F64_F16, "__gnu_d2h_ieee", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
{ RTLIB::FPEXT_F32_F64, "__aeabi_f2d", CallingConv::ARM_AAPCS, ISD::SETCC_INVALID },
----------------
This doesn't look like the right fix. You're just replacing for all, no? Your changes to the tests don't show it can still emit EABI intrinsics with the right ABI flag.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94557/new/
https://reviews.llvm.org/D94557
More information about the llvm-commits
mailing list