[clang] [llvm] [RISCV] Add Syntacore SCR3 processor definition (PR #95953)

Anton Sidorenko via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 19 02:45:20 PDT 2024


================
@@ -358,3 +358,21 @@
 
 // RUN: not %clang --target=riscv32 -### -c %s 2>&1 -mcpu=generic-rv32 -march=rv64i | FileCheck -check-prefix=MISMATCH-ARCH %s
 // MISMATCH-ARCH: cpu 'generic-rv32' does not support rv64
+
+// RUN: %clang --target=riscv32 -### -c %s 2>&1 -mcpu=syntacore-scr3-rv32 | FileCheck -check-prefix=MCPU-SYNTACORE-SCR3-RV32 %s
+// MCPU-SYNTACORE-SCR3-RV32: "-target-cpu" "syntacore-scr3-rv32"
+// MCPU-SYNTACORE-SCR3-RV32: "-target-feature" "+m" "-target-feature" "+c"
----------------
asi-sc wrote:

Addressed.

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


More information about the cfe-commits mailing list