[clang] [llvm] [RISCV] Add processor definitions for XuanTie C950 series (PR #247961)

Luke Lau via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 00:32:50 PST 2026


================
@@ -1151,6 +1151,59 @@ def XUANTIE_C920V2 : RISCVProcessorModel<"xt-c920v2",
                                          [TuneVXRMPipelineFlush,
                                           TunePostRAScheduler]>;
 
+// XuanTie C-series basic functional support, under vendor canonical names.
+
+// XuanTie C950 series.
+// Feature sets shared with later XuanTie C-series definitions.
+defvar XuanTieC950BaseFeatures = !listconcat(RVA23S64Features,
+                                             [FeatureStdExtZabha,
+                                              FeatureStdExtZacas,
+                                              FeatureStdExtZama16b,
+                                              FeatureStdExtZfh,
+                                              FeatureStdExtZbc,
+                                              FeatureStdExtZfbfmin,
+                                              FeatureStdExtZkr,
+                                              FeatureStdExtZiccamoc,
+                                              FeatureStdExtZicfilp,
+                                              FeatureStdExtZicfiss,
+                                              FeatureStdExtZalasr,
+                                              FeatureUnalignedScalarMem]);
+defvar XuanTieC950VectorNoCryptoFeatures = [FeatureStdExtV,
+                                            FeatureStdExtZvfh,
+                                            FeatureStdExtZvfbfmin,
+                                            FeatureStdExtZvfbfwma,
+                                            FeatureVendorXTHeadVdot,
+                                            FeatureStdExtZvl256b,
+                                            FeatureStdExtZvbb,
+                                            FeatureStdExtZvkb,
+                                            FeatureStdExtZvkt];
+defvar XuanTieC950VectorFeatures = !listconcat(XuanTieC950VectorNoCryptoFeatures,
+                                               [FeatureStdExtZvbc,
+                                                FeatureStdExtZvbc32e,
+                                                FeatureStdExtZvkg,
+                                                FeatureStdExtZvkng,
+                                                FeatureStdExtZvksg,
+                                                FeatureStdExtZvkgs,
+                                                FeatureStdExtZvkned,
+                                                FeatureStdExtZvknha,
+                                                FeatureStdExtZvknhb,
----------------
lukel97 wrote:

I think zvkn already implies zvkned + zvknhb + zvknha. I think the minimal feature set needed is something like

```
[FeatureStdExtZvbc32e,
 FeatureStdExtZvkgs,
 FeatureStdExtZvknc,
 FeatureStdExtZvkng,
 FeatureStdExtZvksc,
 FeatureStdExtZvksg]
```

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


More information about the cfe-commits mailing list