Skip to content

Commit

Permalink
Merge pull request #95 from frasercrmck/update-riscv-feature
Browse files Browse the repository at this point in the history
[riscv] Update name of zvfh feature for LLVM 17
  • Loading branch information
frasercrmck authored Aug 16, 2023
2 parents 6332aed + 87936b4 commit 765ec4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/compiler/riscv/source/target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ void setTargetFeatureString(const riscv::hal_device_info_riscv_t *info,
if (info->extensions & riscv::rv_extension_Zfh) {
addFeature(features, "+zfh", hasFeature);
if (info->extensions & riscv::rv_extension_V) {
#if LLVM_VERSION_GREATER_EQUAL(17, 0)
addFeature(features, "+zvfh", hasFeature);
#else
addFeature(features, "+experimental-zvfh", hasFeature);
#endif
}
}
if (info->extensions & riscv::rv_extension_Zba) {
Expand Down

0 comments on commit 765ec4f

Please sign in to comment.