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

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 10:35:01 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-driver

Author: Craig Topper (topperc)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/79030.diff


2 Files Affected:

- (modified) clang/test/Driver/riscv-cpus.c (+6) 
- (modified) llvm/lib/Target/RISCV/RISCVProcessors.td (+6) 


``````````diff
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,

``````````

</details>


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


More information about the cfe-commits mailing list