Skip to content

Commit 094f9b1

Browse files
committed
[CHERIoT] Enable the RV Zbkb and Zbkc on Ibex and Kudu.
1 parent 445b88a commit 094f9b1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

clang/test/Driver/cheri/cheriot.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
// IBEX: "-target-feature" "+b"
1313
// KUDU: "-target-feature" "+b"
1414

15+
// CHERIOT-NOT: "-target-feature" "+zbkb"
16+
// IBEX: "-target-feature" "+zbkb"
17+
// KUDU: "-target-feature" "+zbkb"
18+
19+
// CHERIOT-NOT: "-target-feature" "+zbkc"
20+
// IBEX: "-target-feature" "+zbkc"
21+
// KUDU: "-target-feature" "+zbkc"
22+
1523
// ALL: "-target-feature" "+xcheriot"
1624

1725
// BAREMETAL: "-target-abi" "cheriot-baremetal"

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,11 +813,13 @@ def CHERIOT_IBEX
813813
[Feature32Bit, FeatureVendorXCheri,
814814
FeatureVendorXCheriot, FeatureVendorXCheriPureCap,
815815
FeatureStdExtB, FeatureStdExtC, FeatureStdExtE,
816-
FeatureStdExtM, FeatureUnalignedScalarMem]>;
816+
FeatureStdExtM, FeatureStdExtZbkb, FeatureStdExtZbkc,
817+
FeatureUnalignedScalarMem]>;
817818

818819
def CHERIOT_KUDU
819820
: RISCVProcessorModel<"cheriot-kudu", NoSchedModel,
820821
[Feature32Bit, FeatureVendorXCheri,
821822
FeatureVendorXCheriot, FeatureVendorXCheriPureCap,
822823
FeatureStdExtB, FeatureStdExtC, FeatureStdExtE,
823-
FeatureStdExtM, FeatureUnalignedScalarMem]>;
824+
FeatureStdExtM, FeatureStdExtZbkb, FeatureStdExtZbkc,
825+
FeatureUnalignedScalarMem]>;

0 commit comments

Comments
 (0)