@@ -1499,8 +1499,9 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
14991499 // - indexed loads and stores (pre-/post-incremented),
15001500 // - ANY_EXTEND_VECTOR_INREG, ATOMIC_CMP_SWAP_WITH_SUCCESS, CONCAT_VECTORS,
15011501 // ConstantFP, FCEIL, FCOPYSIGN, FEXP, FEXP2, FFLOOR, FGETSIGN,
1502- // FLOG, FLOG2, FLOG10, FMAXNUM, FMINNUM, FNEARBYINT, FRINT, FROUND, TRAP,
1503- // FTRUNC, PREFETCH, SIGN_EXTEND_VECTOR_INREG, ZERO_EXTEND_VECTOR_INREG,
1502+ // FLOG, FLOG2, FLOG10, FMAXIMUMNUM, FMINIMUMNUM, FNEARBYINT, FRINT, FROUND,
1503+ // TRAP, FTRUNC, PREFETCH, SIGN_EXTEND_VECTOR_INREG,
1504+ // ZERO_EXTEND_VECTOR_INREG,
15041505 // which default to "expand" for at least one type.
15051506
15061507 // Misc operations.
@@ -1638,6 +1639,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
16381639
16391640 // Set the action for vector operations to "expand", then override it with
16401641 // either "custom" or "legal" for specific cases.
1642+ // clang-format off
16411643 static const unsigned VectExpOps[] = {
16421644 // Integer arithmetic:
16431645 ISD::ADD, ISD::SUB, ISD::MUL, ISD::SDIV, ISD::UDIV,
@@ -1652,7 +1654,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
16521654 ISD::FCOS, ISD::FPOW, ISD::FLOG, ISD::FLOG2,
16531655 ISD::FLOG10, ISD::FEXP, ISD::FEXP2, ISD::FCEIL, ISD::FTRUNC,
16541656 ISD::FRINT, ISD::FNEARBYINT, ISD::FROUND, ISD::FFLOOR,
1655- ISD::FMINNUM, ISD::FMAXNUM, ISD::FSINCOS, ISD::FLDEXP,
1657+ ISD::FMINIMUMNUM, ISD::FMAXIMUMNUM,
1658+ ISD::FSINCOS, ISD::FLDEXP,
16561659 // Misc:
16571660 ISD::BR_CC, ISD::SELECT_CC, ISD::ConstantPool,
16581661 // Vector:
@@ -1662,6 +1665,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
16621665 ISD::CONCAT_VECTORS, ISD::VECTOR_SHUFFLE,
16631666 ISD::SPLAT_VECTOR,
16641667 };
1668+ // clang-format on
16651669
16661670 for (MVT VT : MVT::fixedlen_vector_valuetypes ()) {
16671671 for (unsigned VectExpOp : VectExpOps)
@@ -1784,8 +1788,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
17841788 setOperationAction (ISD::FMUL, MVT::f64 , Expand);
17851789 setOperationAction (ISD::FDIV, MVT::f32 , Custom);
17861790
1787- setOperationAction (ISD::FMINNUM , MVT::f32 , Legal);
1788- setOperationAction (ISD::FMAXNUM , MVT::f32 , Legal);
1791+ setOperationAction (ISD::FMINIMUMNUM , MVT::f32 , Legal);
1792+ setOperationAction (ISD::FMAXIMUMNUM , MVT::f32 , Legal);
17891793
17901794 setOperationAction (ISD::FP_TO_UINT, MVT::i1, Promote);
17911795 setOperationAction (ISD::FP_TO_UINT, MVT::i8 , Promote);
@@ -1833,8 +1837,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
18331837 setOperationAction (ISD::FSUB, MVT::f64 , Legal);
18341838 }
18351839 if (Subtarget.hasV67Ops ()) {
1836- setOperationAction (ISD::FMINNUM , MVT::f64 , Legal);
1837- setOperationAction (ISD::FMAXNUM , MVT::f64 , Legal);
1840+ setOperationAction (ISD::FMINIMUMNUM , MVT::f64 , Legal);
1841+ setOperationAction (ISD::FMAXIMUMNUM , MVT::f64 , Legal);
18381842 setOperationAction (ISD::FMUL, MVT::f64 , Legal);
18391843 }
18401844
0 commit comments