Skip to content

aarch-pc-windows-msvc should support hardware floating point by default. #66701

Closed

Description

@smj389

When I cross-compile a project to aarch64-pc-windows-msvc using an x64-pc-windows-msvc toolchain, the output uses software floating point. I am building using this command

cargo build --target aarch64-pc-windows-msvc --release

I am on the latest nightly.

When I add target-feature=+fp-armv8, I get hardware floating point.

According to the Microsoft Documentation:

The ARM64 version of Windows presupposes that it's running on an ARMv8 or later architecture at all times. Both floating-point and NEON support are presumed to be present in hardware.

Therefore, I would suggest that target-feature=+fp-armv8,+neon should be the default for this target.

Activity

  1. added
    C-bugCategory: This is a bug.
    O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
    O-windows-msvcToolchain: MSVC, Operating system: Windows
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Nov 24, 2019
  2. added a commit that references this issue on Nov 26, 2019
    9e2802b
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

    C-bugCategory: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateO-windows-msvcToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions