diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoV.td b/llvm/lib/Target/RISCV/RISCVInstrInfoV.td --- a/llvm/lib/Target/RISCV/RISCVInstrInfoV.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoV.td @@ -86,7 +86,9 @@ class VUnitStrideLoadMask : RVInstVLU<0b000, LSWidth8.Value{3}, LUMOPUnitStrideMask, LSWidth8.Value{2-0}, (outs VR:$vd), - (ins GPR:$rs1), opcodestr, "$vd, (${rs1})">; + (ins GPR:$rs1), opcodestr, "$vd, (${rs1})"> { + let vm = 1; +} // load vd, (rs1), vm class VUnitStrideLoad : RVInstVSU<0b000, LSWidth8.Value{3}, SUMOPUnitStrideMask, LSWidth8.Value{2-0}, (outs), (ins VR:$vs3, GPR:$rs1), opcodestr, - "$vs3, (${rs1})">; + "$vs3, (${rs1})"> { + let vm = 1; +} // store vd, vs3, (rs1), vm class VUnitStrideStore +# CHECK-UNKNOWN: 07 04 b5 02 vle8.v v8, (a0), v0.t # CHECK-INST: vle8.v v8, (a0), v0.t diff --git a/llvm/test/MC/RISCV/rvv/store.s b/llvm/test/MC/RISCV/rvv/store.s --- a/llvm/test/MC/RISCV/rvv/store.s +++ b/llvm/test/MC/RISCV/rvv/store.s @@ -10,9 +10,9 @@ vse1.v v24, (a0) # CHECK-INST: vse1.v v24, (a0) -# CHECK-ENCODING: [0x27,0x0c,0xb5,0x00] +# CHECK-ENCODING: [0x27,0x0c,0xb5,0x02] # CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) -# CHECK-UNKNOWN: 27 0c b5 00 +# CHECK-UNKNOWN: 27 0c b5 02 vse8.v v24, (a0), v0.t # CHECK-INST: vse8.v v24, (a0), v0.t