Skip to content

Commit

Permalink
Merge pull request #18637 from unknownbrackets/riscv-more
Browse files Browse the repository at this point in the history
Add some more RISC-V extensions to emitter
  • Loading branch information
hrydgard committed Dec 29, 2023
2 parents 5c1767c + 52db66e commit 46b25d2
Show file tree
Hide file tree
Showing 9 changed files with 650 additions and 58 deletions.
7 changes: 7 additions & 0 deletions Common/CPUDetect.h
Expand Up @@ -114,6 +114,13 @@ struct CPUInfo {
bool RiscV_Zbb;
bool RiscV_Zbc;
bool RiscV_Zbs;
bool RiscV_Zcb;
bool RiscV_Zfa;
bool RiscV_Zfh;
bool RiscV_Zfhmin;
bool RiscV_Zicond;
bool RiscV_Zvbb;
bool RiscV_Zvkb;

// LoongArch specific extension flags.
bool LOONGARCH_CPUCFG;
Expand Down
7 changes: 7 additions & 0 deletions Common/RiscVCPUDetect.cpp
Expand Up @@ -241,10 +241,17 @@ std::vector<std::string> CPUInfo::Features() {
{ RiscV_D, "Double" },
{ RiscV_C, "Compressed" },
{ RiscV_V, "Vector" },
{ RiscV_Zvbb, "Vector Basic Bitmanip" },
{ RiscV_Zvkb, "Vector Crypto Bitmanip" },
{ RiscV_Zba, "Bitmanip Zba" },
{ RiscV_Zbb, "Bitmanip Zbb" },
{ RiscV_Zbc, "Bitmanip Zbc" },
{ RiscV_Zbs, "Bitmanip Zbs" },
{ RiscV_Zcb, "Compress Zcb" },
{ RiscV_Zfa, "Float Additional" },
{ RiscV_Zfh, "Float Half" },
{ RiscV_Zfhmin, "Float Half Minimal" },
{ RiscV_Zicond, "Integer Conditional" },
{ RiscV_Zicsr, "Zicsr" },
{ CPU64bit, "64-bit" },
};
Expand Down

0 comments on commit 46b25d2

Please sign in to comment.