Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions llvm/include/llvm/IR/RuntimeLibcalls.def
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,16 @@ HANDLE_LIBCALL(FMAXIMUM_F64, "fmaximum")
HANDLE_LIBCALL(FMAXIMUM_F80, "fmaximuml")
HANDLE_LIBCALL(FMAXIMUM_F128, "fmaximuml")
HANDLE_LIBCALL(FMAXIMUM_PPCF128, "fmaximum_numl")
HANDLE_LIBCALL(FMINIMUMNUM_F32, "fminimum_numf")
HANDLE_LIBCALL(FMINIMUMNUM_F64, "fminimum_num")
HANDLE_LIBCALL(FMINIMUMNUM_F80, "fminimum_numl")
HANDLE_LIBCALL(FMINIMUMNUM_F128, "fminimum_numl")
HANDLE_LIBCALL(FMINIMUMNUM_PPCF128, "fminimum_numl")
HANDLE_LIBCALL(FMAXIMUMNUM_F32, "fmaximum_numf")
HANDLE_LIBCALL(FMAXIMUMNUM_F64, "fmaximum_num")
HANDLE_LIBCALL(FMAXIMUMNUM_F80, "fmaximum_numl")
HANDLE_LIBCALL(FMAXIMUMNUM_F128, "fmaximum_numl")
HANDLE_LIBCALL(FMAXIMUMNUM_PPCF128, "fmaximum_numl")
HANDLE_LIBCALL(FMINIMUM_NUM_F32, "fminimum_numf")
HANDLE_LIBCALL(FMINIMUM_NUM_F64, "fminimum_num")
HANDLE_LIBCALL(FMINIMUM_NUM_F80, "fminimum_numl")
HANDLE_LIBCALL(FMINIMUM_NUM_F128, "fminimum_numl")
HANDLE_LIBCALL(FMINIMUM_NUM_PPCF128, "fminimum_numl")
HANDLE_LIBCALL(FMAXIMUM_NUM_F32, "fmaximum_numf")
HANDLE_LIBCALL(FMAXIMUM_NUM_F64, "fmaximum_num")
HANDLE_LIBCALL(FMAXIMUM_NUM_F80, "fmaximum_numl")
HANDLE_LIBCALL(FMAXIMUM_NUM_F128, "fmaximum_numl")
HANDLE_LIBCALL(FMAXIMUM_NUM_PPCF128, "fmaximum_numl")
HANDLE_LIBCALL(LROUND_F32, "lroundf")
HANDLE_LIBCALL(LROUND_F64, "lround")
HANDLE_LIBCALL(LROUND_F80, "lroundl")
Expand Down
12 changes: 6 additions & 6 deletions llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4601,14 +4601,14 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode *Node) {
RTLIB::FMAX_PPCF128, Results);
break;
case ISD::FMINIMUMNUM:
ExpandFPLibCall(Node, RTLIB::FMINIMUMNUM_F32, RTLIB::FMINIMUMNUM_F64,
RTLIB::FMINIMUMNUM_F80, RTLIB::FMINIMUMNUM_F128,
RTLIB::FMINIMUMNUM_PPCF128, Results);
ExpandFPLibCall(Node, RTLIB::FMINIMUM_NUM_F32, RTLIB::FMINIMUM_NUM_F64,
RTLIB::FMINIMUM_NUM_F80, RTLIB::FMINIMUM_NUM_F128,
RTLIB::FMINIMUM_NUM_PPCF128, Results);
break;
case ISD::FMAXIMUMNUM:
ExpandFPLibCall(Node, RTLIB::FMAXIMUMNUM_F32, RTLIB::FMAXIMUMNUM_F64,
RTLIB::FMAXIMUMNUM_F80, RTLIB::FMAXIMUMNUM_F128,
RTLIB::FMAXIMUMNUM_PPCF128, Results);
ExpandFPLibCall(Node, RTLIB::FMAXIMUM_NUM_F32, RTLIB::FMAXIMUM_NUM_F64,
RTLIB::FMAXIMUM_NUM_F80, RTLIB::FMAXIMUM_NUM_F128,
RTLIB::FMAXIMUM_NUM_PPCF128, Results);
break;
case ISD::FSQRT:
case ISD::STRICT_FSQRT:
Expand Down
24 changes: 12 additions & 12 deletions llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,16 +335,16 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FMAXNUM(SDNode *N) {

SDValue DAGTypeLegalizer::SoftenFloatRes_FMINIMUMNUM(SDNode *N) {
return SoftenFloatRes_Binary(
N, GetFPLibCall(N->getValueType(0), RTLIB::FMINIMUMNUM_F32,
RTLIB::FMINIMUMNUM_F64, RTLIB::FMINIMUMNUM_F80,
RTLIB::FMINIMUMNUM_F128, RTLIB::FMINIMUMNUM_PPCF128));
N, GetFPLibCall(N->getValueType(0), RTLIB::FMINIMUM_NUM_F32,
RTLIB::FMINIMUM_NUM_F64, RTLIB::FMINIMUM_NUM_F80,
RTLIB::FMINIMUM_NUM_F128, RTLIB::FMINIMUM_NUM_PPCF128));
}

SDValue DAGTypeLegalizer::SoftenFloatRes_FMAXIMUMNUM(SDNode *N) {
return SoftenFloatRes_Binary(
N, GetFPLibCall(N->getValueType(0), RTLIB::FMAXIMUMNUM_F32,
RTLIB::FMAXIMUMNUM_F64, RTLIB::FMAXIMUMNUM_F80,
RTLIB::FMAXIMUMNUM_F128, RTLIB::FMAXIMUMNUM_PPCF128));
N, GetFPLibCall(N->getValueType(0), RTLIB::FMAXIMUM_NUM_F32,
RTLIB::FMAXIMUM_NUM_F64, RTLIB::FMAXIMUM_NUM_F80,
RTLIB::FMAXIMUM_NUM_F128, RTLIB::FMAXIMUM_NUM_PPCF128));
}

SDValue DAGTypeLegalizer::SoftenFloatRes_FMINIMUM(SDNode *N) {
Expand Down Expand Up @@ -1721,19 +1721,19 @@ void DAGTypeLegalizer::ExpandFloatRes_FMINIMUMNUM(SDNode *N, SDValue &Lo,
SDValue &Hi) {
ExpandFloatRes_Binary(
N,
GetFPLibCall(N->getValueType(0), RTLIB::FMINIMUMNUM_F32,
RTLIB::FMINIMUMNUM_F64, RTLIB::FMINIMUMNUM_F80,
RTLIB::FMINIMUMNUM_F128, RTLIB::FMINIMUMNUM_PPCF128),
GetFPLibCall(N->getValueType(0), RTLIB::FMINIMUM_NUM_F32,
RTLIB::FMINIMUM_NUM_F64, RTLIB::FMINIMUM_NUM_F80,
RTLIB::FMINIMUM_NUM_F128, RTLIB::FMINIMUM_NUM_PPCF128),
Lo, Hi);
}

void DAGTypeLegalizer::ExpandFloatRes_FMAXIMUMNUM(SDNode *N, SDValue &Lo,
SDValue &Hi) {
ExpandFloatRes_Binary(
N,
GetFPLibCall(N->getValueType(0), RTLIB::FMAXIMUMNUM_F32,
RTLIB::FMAXIMUMNUM_F64, RTLIB::FMAXIMUMNUM_F80,
RTLIB::FMAXIMUMNUM_F128, RTLIB::FMAXIMUMNUM_PPCF128),
GetFPLibCall(N->getValueType(0), RTLIB::FMAXIMUM_NUM_F32,
RTLIB::FMAXIMUM_NUM_F64, RTLIB::FMAXIMUM_NUM_F80,
RTLIB::FMAXIMUM_NUM_F128, RTLIB::FMAXIMUM_NUM_PPCF128),
Lo, Hi);
}

Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/IR/RuntimeLibcalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) {
setLibcallName(RTLIB::FMAX_F128, "fmaxf128");
setLibcallName(RTLIB::FMINIMUM_F128, "fminimumf128");
setLibcallName(RTLIB::FMAXIMUM_F128, "fmaximumf128");
setLibcallName(RTLIB::FMINIMUMNUM_F128, "fminimum_numf128");
setLibcallName(RTLIB::FMAXIMUMNUM_F128, "fmaximum_numf128");
setLibcallName(RTLIB::FMINIMUM_NUM_F128, "fminimum_numf128");
setLibcallName(RTLIB::FMAXIMUM_NUM_F128, "fmaximum_numf128");
setLibcallName(RTLIB::LROUND_F128, "lroundf128");
setLibcallName(RTLIB::LLROUND_F128, "llroundf128");
setLibcallName(RTLIB::LRINT_F128, "lrintf128");
Expand Down
Loading