Skip to content

Commit 5ac3f3c

Browse files
authored
[RISCV] Add DestEEW = EEW1 to VMADC. (#113013)
It was present on VMSBC but not VMADC. Reorder the instructions to avoid duplicate 'let' statements.
1 parent 670512b commit 5ac3f3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoV.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,13 +1142,11 @@ defm VSEXT_VF2 : VALU_MV_VS2<"vsext.vf2", 0b010010, 0b00111>;
11421142

11431143
// Vector Integer Add-with-Carry / Subtract-with-Borrow Instructions
11441144
defm VADC_V : VALUm_IV_V_X_I<"vadc", 0b010000>;
1145-
let Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint in {
1146-
defm VMADC_V : VALUm_IV_V_X_I<"vmadc", 0b010001>;
1147-
defm VMADC_V : VALUNoVm_IV_V_X_I<"vmadc", 0b010001>;
1148-
} // Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint
11491145
defm VSBC_V : VALUm_IV_V_X<"vsbc", 0b010010>;
11501146
let Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint,
11511147
DestEEW = EEW1 in {
1148+
defm VMADC_V : VALUm_IV_V_X_I<"vmadc", 0b010001>;
1149+
defm VMADC_V : VALUNoVm_IV_V_X_I<"vmadc", 0b010001>;
11521150
defm VMSBC_V : VALUm_IV_V_X<"vmsbc", 0b010011>;
11531151
defm VMSBC_V : VALUNoVm_IV_V_X<"vmsbc", 0b010011>;
11541152
} // Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint, DestEEW = EEW1

0 commit comments

Comments
 (0)