[clang] [RISCV] Add sched model for XiangShan-NanHu (PR #70232)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 22:59:40 PDT 2023


================
@@ -20,6 +20,17 @@
 // MCPU-SYNTACORE-SCR1-MAX: "-target-feature" "+zicsr" "-target-feature" "+zifencei"
 // MCPU-SYNTACORE-SCR1-MAX: "-target-abi" "ilp32"
 
+// RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=xiangshan-nanhu | FileCheck -check-prefix=MCPU-XIANGSHAN-NANHU %s
+// MCPU-XIANGSHAN-NANHU: "-nostdsysteminc" "-target-cpu" "xiangshan-nanhu"
+// MCPU-XIANGSHAN-NANHU: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d"
----------------
MaskRay wrote:

Prefer `-SAME` for strings on the same line

https://github.com/llvm/llvm-project/pull/70232


More information about the cfe-commits mailing list