Skip to content

Commit ff11413

Browse files
committed
Updated mcpu for mips-p8700 and related testcase for xmipscbop extension.
1 parent 8a1f988 commit ff11413

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

clang/test/Driver/riscv-cpus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@
186186
// MCPU-MIPS-P8700-SAME: "-target-feature" "+zalrsc"
187187
// MCPU-MIPS-P8700-SAME: "-target-feature" "+zba"
188188
// MCPU-MIPS-P8700-SAME: "-target-feature" "+zbb"
189+
// MCPU-MIPS-P8700-SAME: "-target-feature" "+xmipscbop"
190+
// MCPU-MIPS-P8700-SAME: "-target-feature" "+xmipscmov"
191+
// MCPU-MIPS-P8700-SAME: "-target-feature" "+xmipslsp"
189192

190193
// RUN: %clang --target=riscv32 -### -c %s 2>&1 -mtune=syntacore-scr1-base | FileCheck -check-prefix=MTUNE-SYNTACORE-SCR1-BASE %s
191194
// MTUNE-SYNTACORE-SCR1-BASE: "-tune-cpu" "syntacore-scr1-base"

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def MIPS_P8700 : RISCVProcessorModel<"mips-p8700",
120120
FeatureStdExtZifencei,
121121
FeatureStdExtZicsr,
122122
FeatureVendorXMIPSCMov,
123-
FeatureVendorXMIPSLSP],
123+
FeatureVendorXMIPSLSP,
124+
FeatureVendorXMIPSCBOP],
124125
[TuneMIPSP8700]>;
125126

126127
def ROCKET_RV32 : RISCVProcessorModel<"rocket-rv32",

0 commit comments

Comments
 (0)