afonso360 opened PR #5044 from riscv-feature-detect
to main
:
:wave: Hey,
This PR enables native feature detection for RISC-V. We use the same mechanisms as S390X namely libc's HW_CAP to query some extensions. This also changes the testrunner to run tests based on capabilities instead of assuming they'll be there.
Not all extensions are supported by this method, so we ignore those. Fortunately none of them seem to be used by tests in our test suite.
cc: @yuyang-ok @cfallin
afonso360 edited PR #5044 from riscv-feature-detect
to main
:
:wave: Hey,
This PR enables native feature detection for RISC-V. We use the same mechanisms as S390X namely libc's HW_CAP to query extensions. This also changes the testrunner to run tests based on capabilities instead of assuming they'll be there.
Not all extensions are supported by this method, so we ignore those. Fortunately none of them seem to be used by tests in our test suite.
cc: @yuyang-ok @cfallin
afonso360 edited PR #5044 from riscv-feature-detect
to main
:
:wave: Hey,
This PR enables native feature detection for RISC-V. We use the same mechanisms as S390X namely HW_CAP to query extensions. This also changes the testrunner to run tests based on capabilities instead of assuming they'll be there.
Not all extensions are supported by this method, so we ignore those. Fortunately none of them seem to be used by tests in our test suite.
cc: @yuyang-ok @cfallin
afonso360 updated PR #5044 from riscv-feature-detect
to main
.
cfallin submitted PR review.
cfallin submitted PR review.
cfallin created PR review comment:
Should we still be doing a "subset of features required are present" test here?
cfallin created PR review comment:
s/doesen't/doesn't/
afonso360 submitted PR review.
afonso360 created PR review comment:
We can, but it seems somewhat redundant since we also do it down below.
And in practice we pretty much always use
riscv64
which (I think) gets parsed to the most generic form ofRiscv64Architecture::Riscv64
instead of the more specificRiscv64gc
orRiscv64imac
. Using the more generic form forces us to check features individually anyway.
afonso360 updated PR #5044 from riscv-feature-detect
to main
.
cfallin created PR review comment:
Ah, right, I missed the code below here that actually validates needed flags. All good then.
cfallin submitted PR review.
cfallin submitted PR review.
cfallin has enabled auto merge for PR #5044.
cfallin merged PR #5044.
Last updated: Nov 22 2024 at 17:03 UTC