Skip to content

Don't modify the intrinsic abi for aarch64 windows #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

danielframpton
Copy link
Contributor

I was running rustc on aarch64-pc-windows-msvc and ran into compilation errors when evaluating constants.

After some hunting, it appeared that 128 bit integer remainder operations were getting the incorrect value (the result of the division, not the remainder).

This behavior can be observed with a simple program that performs remainder operations on the aarch64-pc-windows-msvc target.

This change disables a macro from adjusting some intrinsic operations and resolves the issue I was seeing with remainder, but there may be a better way to resolve the problem.

@alexcrichton
Copy link
Member

Thanks!

TBH I know very little about this attribute and why it's needed on x86_64 Windows, but hey if it works it works on arm64 windows. If it fixed issues for you I think it's fine to land this, and if it ever crops up again we can dig more into it.

@alexcrichton alexcrichton merged commit 0a15c9b into rust-lang:master Jan 14, 2020
tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
* Add docstring to Bessel functions
* Add docstrings to logarithm functions
* Add docstrings to pow functions
* Specify argument bit-size of the Bessel functions
* Specify argument bit-size for pow functions
* Specify argument bit-size for logarithms
* Add docstrings to sin, cos, sincos and sinh functions
* Add docstrings to sqrt
* Add docstrings to tan and tanh functions
* Add an inline link to https://en.wikipedia.org/wiki/Bessel_function to the docstrings of all Bessel functions.
tgross35 pushed a commit that referenced this pull request Apr 18, 2025
* Add docstring to Bessel functions
* Add docstrings to logarithm functions
* Add docstrings to pow functions
* Specify argument bit-size of the Bessel functions
* Specify argument bit-size for pow functions
* Specify argument bit-size for logarithms
* Add docstrings to sin, cos, sincos and sinh functions
* Add docstrings to sqrt
* Add docstrings to tan and tanh functions
* Add an inline link to https://en.wikipedia.org/wiki/Bessel_function to the docstrings of all Bessel functions.
@github-actions github-actions bot mentioned this pull request Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants