This patch add the instructions of Zcb extension.
Instructions in zcb extensions shorten part of bit manipulation instructions.
Paths
| Differential D131141
[RISCV] Add MC support of RISCV Zcb Extension ClosedPublic Authored by VincentWu on Aug 3 2022, 10:04 PM.
Details Summary This patch add the instructions of Zcb extension. Instructions in zcb extensions shorten part of bit manipulation instructions.
Diff Detail
Event TimelineVincentWu added a parent revision: D130141: [RISCV] Add MC support of RISCV Zca Extension.Aug 3 2022, 10:04 PM
Comment Actions
yes, I plan submit it as CodeGen part.
VincentWu marked 2 inline comments as done. Comment Actionsset zcb inst Sched info same as their uncompressed forms
Comment Actions Add CSZN format as named in the spec. Comment Actions
sure, thank you for your work ) Comment Actions
Let's go ahead and commit this as is. I'll add Zcb to my version bump patch D142596 This revision is now accepted and ready to land.Jan 26 2023, 9:19 AM Comment Actions Possibly we want to add this change to the release notes?
This revision was landed with ongoing or failed builds.Jan 26 2023, 12:54 PM Closed by commit rG42c36da9c99b: [RISCV] Add MC support of RISCV Zcb Extension (authored by VincentWu, committed by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 455059 llvm/lib/Support/RISCVISAInfo.cpp
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoZc.td
llvm/lib/Target/RISCV/RISCVSchedRocket.td
llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
llvm/lib/Target/RISCV/RISCVSubtarget.h
llvm/test/MC/RISCV/attribute-arch.s
llvm/test/MC/RISCV/rv32zcb-invalid.s
llvm/test/MC/RISCV/rv32zcb-valid.s
llvm/test/MC/RISCV/rv64zcb-invalid.s
llvm/test/MC/RISCV/rv64zcb-valid.s
|
Should this implication also be in RISCVISAInfo.cpp? Right now I think specifying Zcb in the -march will put zca in the ELF attributes, but won't define __riscv_zca.