Skip to content

Expose the vfp2sp target feature on 32-bit Arm targets #161826

Description

@tgross35

vfp2sp is the LLVM target feature that enables hard float operations on f32. It is implied by vfp2 (f32 and f64 operations) which is in the baseline for targets like armv7-unknown-linux-gnueabihf, but vfp2sp is also in the baseline of a number of targets that don't have vfp2 such as thumbv7em-none-eabihf.

We should expose this so it's possible to gate 32-bit hard float operations on cfg(target_feature = "vfp2sp").

Some context at rust-lang/compiler-builtins#1300 (comment).

@rustbot ping arm-maintainers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions