[PATCH] D122556: [RISCV] Add definitions for Xiangshan processors.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 28 00:29:25 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/test/CodeGen/RISCV/riscv-metadata.c:18
 
+// Test if Xiangshan processors work with -target-cpu
+// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - -target-cpu xiangshan-yanqihu %s | FileCheck -check-prefix=EMPTY-LP64 %s
----------------
RUN lines in this file are unnecessary. mcpu=sifive-u74 is an arbitrary choice and provides the needed coverage. Don't add more CPUs here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122556



More information about the cfe-commits mailing list