[PATCH] D100825: [RISCV][MC] Mask load should not have VMConstraint.
Zakk Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 20 01:27:50 PDT 2021
khchen created this revision.
khchen added reviewers: craig.topper, jrtc27, HsiangKai, evandro.
Herald added subscribers: vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
khchen requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
Add a test, dest register could be v0.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100825
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
llvm/test/MC/RISCV/rvv/load.s
Index: llvm/test/MC/RISCV/rvv/load.s
===================================================================
--- llvm/test/MC/RISCV/rvv/load.s
+++ llvm/test/MC/RISCV/rvv/load.s
@@ -8,6 +8,12 @@
# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
+vle1.v v0, (a0)
+# CHECK-INST: vle1.v v0, (a0)
+# CHECK-ENCODING: [0x07,0x00,0xb5,0x02]
+# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
+# CHECK-UNKNOWN: 07 00 b5 02 <unknown>
+
vle1.v v8, (a0)
# CHECK-INST: vle1.v v8, (a0)
# CHECK-ENCODING: [0x07,0x04,0xb5,0x02]
Index: llvm/lib/Target/RISCV/RISCVInstrInfoV.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfoV.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfoV.td
@@ -88,6 +88,7 @@
(outs VR:$vd),
(ins GPR:$rs1), opcodestr, "$vd, (${rs1})"> {
let vm = 1;
+ let RVVConstraint = NoConstraint;
}
// load vd, (rs1), vm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100825.338758.patch
Type: text/x-patch
Size: 1038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210420/8eaeef5b/attachment.bin>
More information about the llvm-commits
mailing list