@@ -1499,8 +1499,9 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1499
1499
// - indexed loads and stores (pre-/post-incremented),
1500
1500
// - ANY_EXTEND_VECTOR_INREG, ATOMIC_CMP_SWAP_WITH_SUCCESS, CONCAT_VECTORS,
1501
1501
// 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,
1504
1505
// which default to "expand" for at least one type.
1505
1506
1506
1507
// Misc operations.
@@ -1638,6 +1639,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1638
1639
1639
1640
// Set the action for vector operations to "expand", then override it with
1640
1641
// either "custom" or "legal" for specific cases.
1642
+ // clang-format off
1641
1643
static const unsigned VectExpOps[] = {
1642
1644
// Integer arithmetic:
1643
1645
ISD::ADD, ISD::SUB, ISD::MUL, ISD::SDIV, ISD::UDIV,
@@ -1652,7 +1654,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1652
1654
ISD::FCOS, ISD::FPOW, ISD::FLOG, ISD::FLOG2,
1653
1655
ISD::FLOG10, ISD::FEXP, ISD::FEXP2, ISD::FCEIL, ISD::FTRUNC,
1654
1656
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,
1656
1659
// Misc:
1657
1660
ISD::BR_CC, ISD::SELECT_CC, ISD::ConstantPool,
1658
1661
// Vector:
@@ -1662,6 +1665,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1662
1665
ISD::CONCAT_VECTORS, ISD::VECTOR_SHUFFLE,
1663
1666
ISD::SPLAT_VECTOR,
1664
1667
};
1668
+ // clang-format on
1665
1669
1666
1670
for (MVT VT : MVT::fixedlen_vector_valuetypes ()) {
1667
1671
for (unsigned VectExpOp : VectExpOps)
@@ -1784,8 +1788,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1784
1788
setOperationAction (ISD::FMUL, MVT::f64, Expand);
1785
1789
setOperationAction (ISD::FDIV, MVT::f32, Custom);
1786
1790
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);
1789
1793
1790
1794
setOperationAction (ISD::FP_TO_UINT, MVT::i1, Promote);
1791
1795
setOperationAction (ISD::FP_TO_UINT, MVT::i8, Promote);
@@ -1833,8 +1837,8 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
1833
1837
setOperationAction (ISD::FSUB, MVT::f64, Legal);
1834
1838
}
1835
1839
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);
1838
1842
setOperationAction (ISD::FMUL, MVT::f64, Legal);
1839
1843
}
1840
1844
0 commit comments