@@ -1358,15 +1358,15 @@ defm VNCLIP_W : VNCLP_IV_V_X_I<"vnclip", 0b101111>;
13581358
13591359let Predicates = [HasVInstructionsAnyF] in {
13601360// Vector Single-Width Floating-Point Add/Subtract Instructions
1361- let Uses = [FRM], mayRaiseFPException = true in {
1361+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
13621362defm VFADD_V : VALU_FV_V_F<"vfadd", 0b000000>;
13631363defm VFSUB_V : VALU_FV_V_F<"vfsub", 0b000010>;
13641364defm VFRSUB_V : VALU_FV_F<"vfrsub", 0b100111>;
13651365}
13661366
13671367// Vector Widening Floating-Point Add/Subtract Instructions
13681368let Constraints = "@earlyclobber $vd",
1369- Uses = [FRM],
1369+ Uses = [FRM, VL, VTYPE ],
13701370 mayRaiseFPException = true,
13711371 DestEEW = EEWSEWx2 in {
13721372let RVVConstraint = WidenV in {
@@ -1381,23 +1381,23 @@ let RVVConstraint = WidenW in {
13811381defm VFWADD_W : VWALU_FV_V_F<"vfwadd", 0b110100, "w">;
13821382defm VFWSUB_W : VWALU_FV_V_F<"vfwsub", 0b110110, "w">;
13831383} // RVVConstraint = WidenW
1384- } // Constraints = "@earlyclobber $vd", Uses = [FRM], mayRaiseFPException = true, DestEEW = EEWSEWx2
1384+ } // Constraints = "@earlyclobber $vd", Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true, DestEEW = EEWSEWx2
13851385
13861386// Vector Single-Width Floating-Point Multiply/Divide Instructions
1387- let Uses = [FRM], mayRaiseFPException = true in {
1387+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
13881388defm VFMUL_V : VMUL_FV_V_F<"vfmul", 0b100100>;
13891389defm VFDIV_V : VDIV_FV_V_F<"vfdiv", 0b100000>;
13901390defm VFRDIV_V : VDIV_FV_F<"vfrdiv", 0b100001>;
13911391}
13921392
13931393// Vector Widening Floating-Point Multiply
13941394let Constraints = "@earlyclobber $vd", RVVConstraint = WidenV,
1395- Uses = [FRM], mayRaiseFPException = true, DestEEW = EEWSEWx2 in {
1395+ Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true, DestEEW = EEWSEWx2 in {
13961396defm VFWMUL_V : VWMUL_FV_V_F<"vfwmul", 0b111000>;
1397- } // Constraints = "@earlyclobber $vd", RVVConstraint = WidenV, Uses = [FRM], mayRaiseFPException = true, DestEEW = EEWSEWx2
1397+ } // Constraints = "@earlyclobber $vd", RVVConstraint = WidenV, Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true, DestEEW = EEWSEWx2
13981398
13991399// Vector Single-Width Floating-Point Fused Multiply-Add Instructions
1400- let Uses = [FRM], mayRaiseFPException = true in {
1400+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
14011401defm VFMACC_V : VMAC_FV_V_F<"vfmacc", 0b101100>;
14021402defm VFNMACC_V : VMAC_FV_V_F<"vfnmacc", 0b101101>;
14031403defm VFMSAC_V : VMAC_FV_V_F<"vfmsac", 0b101110>;
@@ -1409,15 +1409,15 @@ defm VFNMSUB_V : VMAC_FV_V_F<"vfnmsub", 0b101011>;
14091409}
14101410
14111411// Vector Widening Floating-Point Fused Multiply-Add Instructions
1412- let Uses = [FRM], mayRaiseFPException = true, DestEEW = EEWSEWx2 in {
1412+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true, DestEEW = EEWSEWx2 in {
14131413defm VFWMACC_V : VWMAC_FV_V_F<"vfwmacc", 0b111100>;
14141414defm VFWNMACC_V : VWMAC_FV_V_F<"vfwnmacc", 0b111101>;
14151415defm VFWMSAC_V : VWMAC_FV_V_F<"vfwmsac", 0b111110>;
14161416defm VFWNMSAC_V : VWMAC_FV_V_F<"vfwnmsac", 0b111111>;
1417- } // Constraints = "@earlyclobber $vd", RVVConstraint = WidenV, Uses = [FRM], mayRaiseFPException = true, DestEEW = EEWSEWx2
1417+ } // Constraints = "@earlyclobber $vd", RVVConstraint = WidenV, Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true, DestEEW = EEWSEWx2
14181418
14191419// Vector Floating-Point Square-Root Instruction
1420- let Uses = [FRM], mayRaiseFPException = true in {
1420+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
14211421defm VFSQRT_V : VSQR_FV_VS2<"vfsqrt.v", 0b010011, 0b00000>;
14221422defm VFREC7_V : VRCP_FV_VS2<"vfrec7.v", 0b010011, 0b00101>;
14231423}
@@ -1482,13 +1482,13 @@ def VFMV_V_F : RVInstVX<0b010111, OPFVF, (outs VR:$vd),
14821482
14831483// Single-Width Floating-Point/Integer Type-Convert Instructions
14841484let mayRaiseFPException = true in {
1485- let Uses = [FRM] in {
1485+ let Uses = [FRM, VL, VTYPE ] in {
14861486defm VFCVT_XU_F_V : VCVTI_FV_VS2<"vfcvt.xu.f.v", 0b010010, 0b00000>;
14871487defm VFCVT_X_F_V : VCVTI_FV_VS2<"vfcvt.x.f.v", 0b010010, 0b00001>;
14881488}
14891489defm VFCVT_RTZ_XU_F_V : VCVTI_FV_VS2<"vfcvt.rtz.xu.f.v", 0b010010, 0b00110>;
14901490defm VFCVT_RTZ_X_F_V : VCVTI_FV_VS2<"vfcvt.rtz.x.f.v", 0b010010, 0b00111>;
1491- let Uses = [FRM] in {
1491+ let Uses = [FRM, VL, VTYPE ] in {
14921492defm VFCVT_F_XU_V : VCVTF_IV_VS2<"vfcvt.f.xu.v", 0b010010, 0b00010>;
14931493defm VFCVT_F_X_V : VCVTF_IV_VS2<"vfcvt.f.x.v", 0b010010, 0b00011>;
14941494}
@@ -1497,7 +1497,7 @@ defm VFCVT_F_X_V : VCVTF_IV_VS2<"vfcvt.f.x.v", 0b010010, 0b00011>;
14971497// Widening Floating-Point/Integer Type-Convert Instructions
14981498let Constraints = "@earlyclobber $vd", RVVConstraint = WidenCvt,
14991499 mayRaiseFPException = true, DestEEW = EEWSEWx2 in {
1500- let Uses = [FRM] in {
1500+ let Uses = [FRM, VL, VTYPE ] in {
15011501defm VFWCVT_XU_F_V : VWCVTI_FV_VS2<"vfwcvt.xu.f.v", 0b010010, 0b01000>;
15021502defm VFWCVT_X_F_V : VWCVTI_FV_VS2<"vfwcvt.x.f.v", 0b010010, 0b01001>;
15031503}
@@ -1510,13 +1510,13 @@ defm VFWCVT_F_F_V : VWCVTF_FV_VS2<"vfwcvt.f.f.v", 0b010010, 0b01100>;
15101510
15111511// Narrowing Floating-Point/Integer Type-Convert Instructions
15121512let Constraints = "@earlyclobber $vd", mayRaiseFPException = true in {
1513- let Uses = [FRM] in {
1513+ let Uses = [FRM, VL, VTYPE ] in {
15141514defm VFNCVT_XU_F_W : VNCVTI_FV_VS2<"vfncvt.xu.f.w", 0b010010, 0b10000>;
15151515defm VFNCVT_X_F_W : VNCVTI_FV_VS2<"vfncvt.x.f.w", 0b010010, 0b10001>;
15161516}
15171517defm VFNCVT_RTZ_XU_F_W : VNCVTI_FV_VS2<"vfncvt.rtz.xu.f.w", 0b010010, 0b10110>;
15181518defm VFNCVT_RTZ_X_F_W : VNCVTI_FV_VS2<"vfncvt.rtz.x.f.w", 0b010010, 0b10111>;
1519- let Uses = [FRM] in {
1519+ let Uses = [FRM, VL, VTYPE ] in {
15201520defm VFNCVT_F_XU_W : VNCVTF_IV_VS2<"vfncvt.f.xu.w", 0b010010, 0b10010>;
15211521defm VFNCVT_F_X_W : VNCVTF_IV_VS2<"vfncvt.f.x.w", 0b010010, 0b10011>;
15221522defm VFNCVT_F_F_W : VNCVTF_FV_VS2<"vfncvt.f.f.w", 0b010010, 0b10100>;
@@ -1554,7 +1554,7 @@ defm VWREDSUM : VWRED_IV_V<"vwredsum", 0b110001>;
15541554let Predicates = [HasVInstructionsAnyF] in {
15551555// Vector Single-Width Floating-Point Reduction Instructions
15561556let RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask in {
1557- let Uses = [FRM], mayRaiseFPException = true in {
1557+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
15581558defm VFREDOSUM : VREDO_FV_V<"vfredosum", 0b000011>;
15591559defm VFREDUSUM : VRED_FV_V<"vfredusum", 0b000001>;
15601560}
@@ -1573,7 +1573,7 @@ let Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint, ElementsDep
15731573// This has the downside that the earlyclobber constraint is too coarse and
15741574// will impose unnecessary restrictions by not allowing the destination to
15751575// overlap with the first (wide) operand.
1576- let Uses = [FRM], mayRaiseFPException = true in {
1576+ let Uses = [FRM, VL, VTYPE ], mayRaiseFPException = true in {
15771577defm VFWREDOSUM : VWREDO_FV_V<"vfwredosum", 0b110011>;
15781578defm VFWREDUSUM : VWRED_FV_V<"vfwredusum", 0b110001>;
15791579}
0 commit comments