@@ -1111,10 +1111,8 @@ def VLM_V : VUnitStrideLoadMask<"vlm.v">,
1111
1111
Sched<[WriteVLDM_WorstCase, ReadVLDX]>;
1112
1112
def VSM_V : VUnitStrideStoreMask<"vsm.v">,
1113
1113
Sched<[WriteVSTM_WorstCase, ReadVSTM_WorstCase, ReadVSTX]>;
1114
- def : InstAlias<"vle1.v $vd,$rs1",
1115
- (VLM_V VR:$vd, GPRMemZeroOffset:$rs1), 0>;
1116
- def : InstAlias<"vse1.v $vs3, $rs1",
1117
- (VSM_V VR:$vs3, GPRMemZeroOffset:$rs1), 0>;
1114
+ def : MnemonicAlias<"vle1.v", "vlm.v">;
1115
+ def : MnemonicAlias<"vse1.v", "vsm.v">;
1118
1116
1119
1117
def VS1R_V : VWholeStore<0, "vs1r.v", VR>,
1120
1118
Sched<[WriteVST1R, ReadVST1R, ReadVSTX]>;
@@ -1582,8 +1580,7 @@ defm VFREDMIN : VREDMINMAX_FV_V<"vfredmin", 0b000101>;
1582
1580
}
1583
1581
} // RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask
1584
1582
1585
- def : InstAlias<"vfredsum.vs $vd, $vs2, $vs1$vm",
1586
- (VFREDUSUM_VS VR:$vd, VR:$vs2, VR:$vs1, VMaskOp:$vm), 0>;
1583
+ def : MnemonicAlias<"vfredsum.vs", "vfredusum.vs">;
1587
1584
1588
1585
// Vector Widening Floating-Point Reduction Instructions
1589
1586
let Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask, DestEEW = EEWSEWx2 in {
@@ -1597,8 +1594,7 @@ defm VFWREDUSUM : VWRED_FV_V<"vfwredusum", 0b110001>;
1597
1594
}
1598
1595
} // Constraints = "@earlyclobber $vd", RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask, DestEEW = EEWSEWx2
1599
1596
1600
- def : InstAlias<"vfwredsum.vs $vd, $vs2, $vs1$vm",
1601
- (VFWREDUSUM_VS VR:$vd, VR:$vs2, VR:$vs1, VMaskOp:$vm), 0>;
1597
+ def : MnemonicAlias<"vfwredsum.vs", "vfwredusum.vs">;
1602
1598
} // Predicates = [HasVInstructionsAnyF]
1603
1599
1604
1600
let Predicates = [HasVInstructions] in {
@@ -1623,10 +1619,8 @@ def : InstAlias<"vmset.m $vd",
1623
1619
def : InstAlias<"vmnot.m $vd, $vs",
1624
1620
(VMNAND_MM VR:$vd, VR:$vs, VR:$vs)>;
1625
1621
1626
- def : InstAlias<"vmandnot.mm $vd, $vs2, $vs1",
1627
- (VMANDN_MM VR:$vd, VR:$vs2, VR:$vs1), 0>;
1628
- def : InstAlias<"vmornot.mm $vd, $vs2, $vs1",
1629
- (VMORN_MM VR:$vd, VR:$vs2, VR:$vs1), 0>;
1622
+ def : MnemonicAlias<"vmandnot.mm", "vmandn.mm">;
1623
+ def : MnemonicAlias<"vmornot.mm", "vmorn.mm">;
1630
1624
1631
1625
let hasSideEffects = 0, mayLoad = 0, mayStore = 0,
1632
1626
RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask in {
@@ -1645,8 +1639,7 @@ def VFIRST_M : RVInstV<0b010000, 0b10001, OPMVV, (outs GPR:$vd),
1645
1639
1646
1640
} // hasSideEffects = 0, mayLoad = 0, mayStore = 0, RVVConstraint = NoConstraint, ElementsDependOn = EltDepsVLMask
1647
1641
1648
- def : InstAlias<"vpopc.m $vd, $vs2$vm",
1649
- (VCPOP_M GPR:$vd, VR:$vs2, VMaskOp:$vm), 0>;
1642
+ def : MnemonicAlias<"vpopc.m", "vcpop.m">;
1650
1643
1651
1644
let Constraints = "@earlyclobber $vd", RVVConstraint = Iota, ElementsDependOn = EltDepsVLMask in {
1652
1645
0 commit comments