[PATCH] D128235: [RISCV] Add support for the Zawrs extension

Palmer Dabbelt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 20 18:07:44 PDT 2022


palmer-dabbelt updated this revision to Diff 438515.
palmer-dabbelt added a comment.
Herald added a subscriber: jdoerfert.

- Fix a whitespace issue
- Fix the name of RISCVInstrInfoZawrs.td
- Call the #define __riscv_zawrs instead of __riscv_wrs, to match the others
- Add tests in clang/test/Driver/riscv-arch.c, clang/test/Preprocessor/riscv-target-features.c, llvm/test/CodeGen/RISCV/attributes.ll

The clang tests aren't running for me, presumably because clang isn't building locally.  Also hoping to rely on CI for that one, but I'm not entirely sure.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128235/new/

https://reviews.llvm.org/D128235

Files:
  clang/lib/Basic/Targets/RISCV.cpp
  clang/test/Driver/riscv-arch.c
  clang/test/Preprocessor/riscv-target-features.c
  llvm/lib/Support/RISCVISAInfo.cpp
  llvm/lib/Target/RISCV/RISCV.td
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoZawrs.td
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/test/CodeGen/RISCV/attributes.ll
  llvm/test/MC/RISCV/zawrs-invalid.s
  llvm/test/MC/RISCV/zawrs-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128235.438515.patch
Type: text/x-patch
Size: 9438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220621/146d48c1/attachment.bin>


More information about the cfe-commits mailing list