[PATCH] D118679: [RISCV] Don't make it an error have Zve* and V at the same time.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 31 23:03:41 PST 2022
craig.topper created this revision.
craig.topper added reviewers: achieveartificialintelligence, eopXD, frasercrmck, khchen, arcbbb, kito-cheng.
Herald added subscribers: VincentWu, luke957, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, MaskRay.
Herald added a project: LLVM.
This should not be an error. V is a valid implementation of Zve.
Spec clarified here
https://github.com/riscv/riscv-v-spec/commit/9a877e8553362ff03a9b22b98e321b59aff50398
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118679
Files:
llvm/lib/Support/RISCVISAInfo.cpp
Index: llvm/lib/Support/RISCVISAInfo.cpp
===================================================================
--- llvm/lib/Support/RISCVISAInfo.cpp
+++ llvm/lib/Support/RISCVISAInfo.cpp
@@ -723,12 +723,6 @@
errc::invalid_argument,
"zvl*b requires v or zve* extension to also be specified");
- // Could not implement Zve* extension and the V extension at the same time.
- if (HasZve32x && HasV)
- return createStringError(
- errc::invalid_argument,
- "It is illegal to specify the v extension with zve* extensions");
-
// Additional dependency checks.
// TODO: The 'q' extension requires rv64.
// TODO: It is illegal to specify 'e' extensions with 'f' and 'd'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118679.404814.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220201/0fcde4df/attachment.bin>
More information about the llvm-commits
mailing list