aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2025-06-21 14:42:45 -0300
committerGitHub <noreply@github.com>2025-06-21 14:42:45 -0300
commit6c8c816b175b3b14f47f35619cade4eced1586a2 (patch)
tree167a79b3b9d9a21b230ae9e3516372eebded8cd2 /lldb/packages/Python/lldbsuite/test
parent0c47628515dc80bd50599f936614da07943572a4 (diff)
downloadllvm-6c8c816b175b3b14f47f35619cade4eced1586a2.zip
llvm-6c8c816b175b3b14f47f35619cade4eced1586a2.tar.gz
llvm-6c8c816b175b3b14f47f35619cade4eced1586a2.tar.bz2
[libc] Fix feature check for riscv (#145169)
This PR fixes the feature detection for RISC-V floating-point support in LLVM's libc implementation. The `__riscv_flen` macro represents the floating-point register width in bits (32, 64, or 128). Since Extension D is specifically documented as implying F, we can use simple >= comparisons to detect them. For half-precision support, the implementation checks for the Zfhmin extension as RVA22 and RVA23 profiles only require Zfhmin rather than the full Zfh extension. Zfh also implies Zfhmin, so checking for Zfhmin should cover all cases.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions