forked from OSchip/llvm-project
[AVX512] Strengthen type constraints on my rounding mode inputs and some immediate inputs.
llvm-svn: 269886
This commit is contained in:
parent
74ed087b0b
commit
095fc41523
|
@ -319,13 +319,15 @@ def SDTShuff2OpI : SDTypeProfile<1, 2, [SDTCisVec<0>,
|
||||||
def SDTShuff3OpI : SDTypeProfile<1, 3, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
def SDTShuff3OpI : SDTypeProfile<1, 3, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<0,2>, SDTCisVT<3, i8>]>;
|
SDTCisSameAs<0,2>, SDTCisVT<3, i8>]>;
|
||||||
def SDTFPBinOpImmRound: SDTypeProfile<1, 4, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
def SDTFPBinOpImmRound: SDTypeProfile<1, 4, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<0,2>, SDTCisInt<3>, SDTCisInt<4>]>;
|
SDTCisSameAs<0,2>, SDTCisVT<3, i32>, SDTCisVT<4, i32>]>;
|
||||||
def SDTFPTernaryOpImmRound: SDTypeProfile<1, 5, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
def SDTFPTernaryOpImmRound: SDTypeProfile<1, 5, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<0,2>, SDTCisVec<3>, SDTCisInt<4>, SDTCisInt<5>]>;
|
SDTCisSameAs<0,2>, SDTCisVec<3>, SDTCisVT<4, i32>,
|
||||||
|
SDTCisVT<5, i32>]>;
|
||||||
def SDTFPTernaryOpImmRounds: SDTypeProfile<1, 5, [SDTCisSameAs<0,1>,
|
def SDTFPTernaryOpImmRounds: SDTypeProfile<1, 5, [SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<0,2>,SDTCisInt<3>, SDTCisInt<4>, SDTCisInt<5>]>;
|
SDTCisSameAs<0,2>,SDTCisInt<3>, SDTCisVT<4, i32>,
|
||||||
|
SDTCisVT<5, i32>]>;
|
||||||
def SDTFPUnaryOpImmRound: SDTypeProfile<1, 3, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
def SDTFPUnaryOpImmRound: SDTypeProfile<1, 3, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
||||||
SDTCisInt<2>, SDTCisInt<3>]>;
|
SDTCisVT<2, i32>, SDTCisVT<3, i32>]>;
|
||||||
|
|
||||||
def SDTVBroadcast : SDTypeProfile<1, 1, [SDTCisVec<0>]>;
|
def SDTVBroadcast : SDTypeProfile<1, 1, [SDTCisVec<0>]>;
|
||||||
def SDTVBroadcastm : SDTypeProfile<1, 1, [SDTCisVec<0>,
|
def SDTVBroadcastm : SDTypeProfile<1, 1, [SDTCisVec<0>,
|
||||||
|
@ -339,15 +341,16 @@ def SDTTernlog : SDTypeProfile<1, 4, [SDTCisVec<0>, SDTCisSameAs<0,1>,
|
||||||
SDTCisVT<4, i8>]>;
|
SDTCisVT<4, i8>]>;
|
||||||
|
|
||||||
def SDTFPBinOpRound : SDTypeProfile<1, 3, [ // fadd_round, fmul_round, etc.
|
def SDTFPBinOpRound : SDTypeProfile<1, 3, [ // fadd_round, fmul_round, etc.
|
||||||
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisFP<0>, SDTCisInt<3>]>;
|
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisFP<0>, SDTCisVT<3, i32>]>;
|
||||||
|
|
||||||
def SDTFPUnaryOpRound : SDTypeProfile<1, 2, [ // fsqrt_round, fgetexp_round, etc.
|
def SDTFPUnaryOpRound : SDTypeProfile<1, 2, [ // fsqrt_round, fgetexp_round, etc.
|
||||||
SDTCisSameAs<0, 1>, SDTCisFP<0>, SDTCisInt<2>]>;
|
SDTCisSameAs<0, 1>, SDTCisFP<0>, SDTCisVT<2, i32>]>;
|
||||||
|
|
||||||
def SDTFma : SDTypeProfile<1, 3, [SDTCisSameAs<0,1>,
|
def SDTFma : SDTypeProfile<1, 3, [SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<1,2>, SDTCisSameAs<1,3>]>;
|
SDTCisSameAs<1,2>, SDTCisSameAs<1,3>]>;
|
||||||
def SDTFmaRound : SDTypeProfile<1, 4, [SDTCisSameAs<0,1>,
|
def SDTFmaRound : SDTypeProfile<1, 4, [SDTCisSameAs<0,1>,
|
||||||
SDTCisSameAs<1,2>, SDTCisSameAs<1,3>, SDTCisInt<4>]>;
|
SDTCisSameAs<1,2>, SDTCisSameAs<1,3>,
|
||||||
|
SDTCisVT<4, i32>]>;
|
||||||
def STDFp1SrcRm : SDTypeProfile<1, 2, [SDTCisSameAs<0,1>,
|
def STDFp1SrcRm : SDTypeProfile<1, 2, [SDTCisSameAs<0,1>,
|
||||||
SDTCisVec<0>, SDTCisVT<2, i32>]>;
|
SDTCisVec<0>, SDTCisVT<2, i32>]>;
|
||||||
def STDFp2SrcRm : SDTypeProfile<1, 3, [SDTCisSameAs<0,1>,
|
def STDFp2SrcRm : SDTypeProfile<1, 3, [SDTCisSameAs<0,1>,
|
||||||
|
@ -521,26 +524,30 @@ def SDTFloatToInt: SDTypeProfile<1, 1, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisInt<0>, SDTCVecEltisVT<1, f32>]>;
|
SDTCisInt<0>, SDTCVecEltisVT<1, f32>]>;
|
||||||
|
|
||||||
def SDTDoubleToIntRnd: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTDoubleToIntRnd: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisInt<0>, SDTCVecEltisVT<1, f64>]>;
|
SDTCisInt<0>, SDTCVecEltisVT<1, f64>,
|
||||||
def SDTSDoubleToIntRnd: SDTypeProfile<1, 2, [SDTCisInt<0>,SDTCisFP<1>,
|
SDTCisVT<2, i32>]>;
|
||||||
SDTCVecEltisVT<1, f64>, SDTCisInt<2>]>;
|
def SDTSDoubleToIntRnd: SDTypeProfile<1, 2, [SDTCisInt<0>,SDTCisFP<1>,
|
||||||
|
SDTCVecEltisVT<1, f64>,
|
||||||
|
SDTCisVT<2, i32>]>;
|
||||||
def SDTFloatToIntRnd: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTFloatToIntRnd: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisInt<0>, SDTCVecEltisVT<1, f32>]>;
|
SDTCisInt<0>, SDTCVecEltisVT<1, f32>,
|
||||||
|
SDTCisVT<2, i32>]>;
|
||||||
def SDTSFloatToIntRnd: SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisFP<1>,
|
def SDTSFloatToIntRnd: SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisFP<1>,
|
||||||
SDTCVecEltisVT<1, f32>, SDTCisInt<2>]>;
|
SDTCVecEltisVT<1, f32>,
|
||||||
|
SDTCisVT<2, i32>]>;
|
||||||
def SDTVintToFPRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTVintToFPRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisFP<0>, SDTCVecEltisVT<1, i32>,
|
SDTCisFP<0>, SDTCVecEltisVT<1, i32>,
|
||||||
SDTCisInt<2>]>;
|
SDTCisVT<2, i32>]>;
|
||||||
def SDTVlongToFPRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTVlongToFPRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisFP<0>, SDTCVecEltisVT<1, i64>,
|
SDTCisFP<0>, SDTCVecEltisVT<1, i64>,
|
||||||
SDTCisInt<2>]>;
|
SDTCisVT<2, i32>]>;
|
||||||
|
|
||||||
def SDTVFPToIntRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTVFPToIntRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisFP<1>, SDTCVecEltisVT<0, i32>,
|
SDTCisFP<1>, SDTCVecEltisVT<0, i32>,
|
||||||
SDTCisInt<2>]>;
|
SDTCisVT<2, i32>]>;
|
||||||
def SDTVFPToLongRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
def SDTVFPToLongRound: SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>,
|
||||||
SDTCisFP<1>, SDTCVecEltisVT<0, i64>,
|
SDTCisFP<1>, SDTCVecEltisVT<0, i64>,
|
||||||
SDTCisInt<2>]>;
|
SDTCisVT<2, i32>]>;
|
||||||
|
|
||||||
// Scalar
|
// Scalar
|
||||||
def X86SintToFpRnd : SDNode<"X86ISD::SINT_TO_FP_RND", SDTintToFPRound>;
|
def X86SintToFpRnd : SDNode<"X86ISD::SINT_TO_FP_RND", SDTintToFPRound>;
|
||||||
|
|
Loading…
Reference in New Issue