[llvm] [clang] [RISCV] Add Zic64b, Ziccamoa, Ziccif, Zicclsm, Ziccrse, and Za64rs to sifive-p450. (PR #79030)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 10:34:30 PST 2024


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/79030

None

>From a3f43ca1e5bc1ab4fd9c41f86d1904a54242a281 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Mon, 22 Jan 2024 10:33:39 -0800
Subject: [PATCH] [RISCV] Add Zic64b, Ziccamoa, Ziccif, Zicclsm, Ziccrse, and
 Za64rs to sifive-p450.

---
 clang/test/Driver/riscv-cpus.c           | 6 ++++++
 llvm/lib/Target/RISCV/RISCVProcessors.td | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/clang/test/Driver/riscv-cpus.c b/clang/test/Driver/riscv-cpus.c
index d181755bb58507..015df83e77800f 100644
--- a/clang/test/Driver/riscv-cpus.c
+++ b/clang/test/Driver/riscv-cpus.c
@@ -228,14 +228,20 @@
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+f"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+d"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+c"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zic64b"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicbom"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicbop"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicboz"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+ziccamoa"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+ziccif"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicclsm"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+ziccrse"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zicsr"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zifencei"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zihintntl"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zihintpause"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zihpm"
+// MCPU-SIFIVE-P450-SAME: "-target-feature" "+za64rs"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zfhmin"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zba"
 // MCPU-SIFIVE-P450-SAME: "-target-feature" "+zbb"
diff --git a/llvm/lib/Target/RISCV/RISCVProcessors.td b/llvm/lib/Target/RISCV/RISCVProcessors.td
index d1cd9ba1dd84d1..c8cf3644b21fbd 100644
--- a/llvm/lib/Target/RISCV/RISCVProcessors.td
+++ b/llvm/lib/Target/RISCV/RISCVProcessors.td
@@ -223,9 +223,15 @@ def SIFIVE_P450 : RISCVProcessorModel<"sifive-p450", SiFiveP400Model,
                                        FeatureStdExtF,
                                        FeatureStdExtD,
                                        FeatureStdExtC,
+                                       FeatureStdExtZa64rs,
+                                       FeatureStdExtZic64b,
                                        FeatureStdExtZicbop,
                                        FeatureStdExtZicbom,
                                        FeatureStdExtZicboz,
+                                       FeatureStdExtZiccamoa,
+                                       FeatureStdExtZiccif,
+                                       FeatureStdExtZicclsm,
+                                       FeatureStdExtZiccrse,
                                        FeatureStdExtZihintntl,
                                        FeatureStdExtZihintpause,
                                        FeatureStdExtZihpm,



More information about the cfe-commits mailing list