diff options
| -rw-r--r-- | runtime/arch/riscv64/instruction_set_features_riscv64.cc | 5 | ||||
| -rw-r--r-- | runtime/arch/riscv64/instruction_set_features_riscv64_test.cc | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/runtime/arch/riscv64/instruction_set_features_riscv64.cc b/runtime/arch/riscv64/instruction_set_features_riscv64.cc index 544b717c3f..7c847bd338 100644 --- a/runtime/arch/riscv64/instruction_set_features_riscv64.cc +++ b/runtime/arch/riscv64/instruction_set_features_riscv64.cc @@ -24,9 +24,10 @@ namespace art { -// Basic feature set is rv64gc, aka rv64imafdc. +// Basic feature set is rv64gcv, aka rv64imafdcv. constexpr uint32_t BasicFeatures() { - return Riscv64InstructionSetFeatures::kExtGeneric | Riscv64InstructionSetFeatures::kExtCompressed; + return Riscv64InstructionSetFeatures::kExtGeneric | + Riscv64InstructionSetFeatures::kExtCompressed | Riscv64InstructionSetFeatures::kExtVector; } Riscv64FeaturesUniquePtr Riscv64InstructionSetFeatures::FromVariant( diff --git a/runtime/arch/riscv64/instruction_set_features_riscv64_test.cc b/runtime/arch/riscv64/instruction_set_features_riscv64_test.cc index aef3d67c00..0f0cbda8b7 100644 --- a/runtime/arch/riscv64/instruction_set_features_riscv64_test.cc +++ b/runtime/arch/riscv64/instruction_set_features_riscv64_test.cc @@ -30,9 +30,11 @@ TEST(Riscv64InstructionSetFeaturesTest, Riscv64FeaturesFromDefaultVariant) { EXPECT_TRUE(riscv64_features->Equals(riscv64_features.get())); - uint32_t expected_extensions = - Riscv64InstructionSetFeatures::kExtGeneric | Riscv64InstructionSetFeatures::kExtCompressed; - EXPECT_EQ(riscv64_features->AsBitmap(), expected_extensions); // rv64gc, aka rv64imafdc + // rv64gcv, aka rv64imafdcv + uint32_t expected_extensions = Riscv64InstructionSetFeatures::kExtGeneric | + Riscv64InstructionSetFeatures::kExtCompressed | + Riscv64InstructionSetFeatures::kExtVector; + EXPECT_EQ(riscv64_features->AsBitmap(), expected_extensions); } } // namespace art |