Skip to content

Commit

Permalink
[RISCV] Remove 'xcv' extension (#35)
Browse files Browse the repository at this point in the history
The CORE-V ISA Extension Naming specification was recently updated.
One of the consequences of this is that the option previously
called 'xcorev' (but implemented as 'xcv' presently due to the
prefix change) has been removed. However, the compiler does not
presently reflect this change. This patch removes the 'xcv' march
flag option so that the compiler and the CORE-V ISA Extension Naming
specification match.

See here for CORE-V ISA Extension Naming specification:
(https://github.com/openhwgroup/core-v-sw/blob/master/specifications/corev-isa-extension-naming.md)
  • Loading branch information
Char authored Jun 9, 2023
1 parent 420c1e6 commit 8263119
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 4,418 deletions.
11 changes: 0 additions & 11 deletions llvm/lib/Target/RISCV/RISCV.td
Original file line number Diff line number Diff line change
Expand Up @@ -480,17 +480,6 @@ def HasExtXcvelw
: Predicate<"Subtarget->hasExtXcvelw()">,
AssemblerPredicate<(any_of FeatureExtXcvelw),
"'Xcvelw' (Event Load Word)">;
// All CORE-V extensions
def FeatureExtXcv
: SubtargetFeature<"xcv", "HasExtXcv", "true",
"'Xcv' (CORE-V extensions)",
[FeatureExtXcvhwlp, FeatureExtXcvmac,
FeatureExtXcvalu, FeatureExtXcvsimd,
FeatureExtXcvbitmanip, FeatureExtXcvmem,
FeatureExtXcvbi,FeatureExtXcvelw]>;
def HasExtXCoreV : Predicate<"Subtarget->hasExtXcv()">,
AssemblerPredicate<(all_of FeatureExtXcv),
"'Xcv' (CORE-V extensions)">;

def Feature64Bit
: SubtargetFeature<"64bit", "HasRV64", "true", "Implements RV64">;
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Target/RISCV/RISCVSubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
bool HasRV32 = false;
bool HasStdExtZvlsseg = false;
bool HasStdExtZvamo = false;
bool HasExtXcv = false;
bool HasExtXcvhwlp = false;
bool HasExtXcvmac = false;
bool HasExtXcvalu = false;
Expand Down Expand Up @@ -204,7 +203,6 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
bool hasStdExtZbproposedc() const { return HasStdExtZbproposedc; }
bool hasStdExtZvlsseg() const { return HasStdExtZvlsseg; }
bool hasStdExtZvamo() const { return HasStdExtZvamo; }
bool hasExtXcv() const { return HasExtXcv; }
bool hasExtXcvhwlp() const { return HasExtXcvhwlp; }
bool hasExtXcvmac() const { return HasExtXcvmac; }
bool hasExtXcvalu() const { return HasExtXcvalu; }
Expand Down
130 changes: 0 additions & 130 deletions llvm/test/MC/RISCV/corev/alu-all-extensions.s

This file was deleted.

28 changes: 0 additions & 28 deletions llvm/test/MC/RISCV/corev/hwlp-all-extensions.s

This file was deleted.

98 changes: 0 additions & 98 deletions llvm/test/MC/RISCV/corev/mac-all-extensions.s

This file was deleted.

Loading

0 comments on commit 8263119

Please sign in to comment.