Skip to content
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

Make System.Math/MathF.Truncate an intrinsic #65014

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

MichalPetryka
Copy link
Contributor

Makes Truncate emit round with truncate mode on xarch and frintz on aarch64.

Based off current handling for Ceiling.

Fixes #56931

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Feb 8, 2022
@ghost
Copy link

ghost commented Feb 8, 2022

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

Makes Truncate emit round with truncate mode on xarch and frintz on aarch64.

Based off current handling for Ceiling.

Fixes #56931

Author: MichalPetryka
Assignees: -
Labels:

area-System.Numerics

Milestone: -

@MichalPetryka
Copy link
Contributor Author

@tannergooding asked me to revert the fcalls and add back the managed method instead on discord, will handle it tomorrow.

@MichalPetryka MichalPetryka marked this pull request as ready for review February 9, 2022 18:00
@MichalPetryka
Copy link
Contributor Author

Test failures seem unrelated, marking as ready for review.

@tannergooding
Copy link
Member

CC. @dotnet/jit-contrib; Community PR needs secondary sign-off

Copy link
Contributor

@echesakov echesakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tannergooding tannergooding merged commit a44b7c2 into dotnet:main Feb 11, 2022
@JulieLeeMSFT JulieLeeMSFT added this to the 7.0.0 milestone Feb 16, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Numerics community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Math/MathF.Truncate isn't an intrinsic and results in inefficient codegen
4 participants