[PATCH] D100825: [RISCV][MC] Mask load should not have VMConstraint.
Zakk Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 00:22:29 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGad0fe5db2fa0: [RISCV][MC] Mask load should not have VMConstraint. (authored by khchen).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100825/new/
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.339121.patch
Type: text/x-patch
Size: 1038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/918b8647/attachment.bin>
More information about the llvm-commits
mailing list