[clang] [llvm] [RISCV] Add Hazard3 Core as taped out for RP2350 (PR #102452)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 17 12:47:54 PDT 2024
================
@@ -402,6 +402,21 @@
// MCPU-SIFIVE-P670-SAME: "-target-feature" "+zvkt"
// MCPU-SIFIVE-P670-SAME: "-target-abi" "lp64d"
+// RUN: %clang -target riscv32 -### -c %s 2>&1 -mcpu=rp2350-hazard3 | FileCheck -check-prefix=MCPU-HAZARD3 %s
+// MCPU-HAZARD3: "-target-cpu" "rp2350-hazard3"
+// MCPU-HAZARD3-SAME: "-target-feature" "+m"
+// MCPU-HAZARD3-SAME: "-target-feature" "+a"
+// MCPU-HAZARD3-SAME: "-target-feature" "+c"
+// MCPU-HAZARD3-SAME: "-target-feature" "+zicsr"
+// MCPU-HAZARD3-SAME: "-target-feature" "+zifencei"
+// MCPU-HAZARD3-SAME: "-target-feature" "+zcb"
+// MCPU-HAZARD3-SAME: "-target-feature" "+zcmp"
+// MCPU-HAZARD3-SAME: "-target-feature" "+zba"
----------------
topperc wrote:
> Understood, thanks. Conversely, does specifying B on its own still allow feature test via the __riscv_zba etc macros?
Yes. B does imply Zba, Zbb, and Zbs so those macros will get set.
https://github.com/llvm/llvm-project/pull/102452
More information about the cfe-commits
mailing list