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

Ensure that negation of floating-point values is correctly handled #105629

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

tannergooding
Copy link
Member

This resolves #105627

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 29, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@@ -415,18 +430,7 @@ inline double EvaluateUnaryScalarSpecialized<double>(genTreeOps oper, double arg
template <typename TBase>
TBase EvaluateUnaryScalar(genTreeOps oper, TBase arg0)
Copy link
Member

@EgorBo EgorBo Jul 29, 2024

Choose a reason for hiding this comment

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

nit: is EvaluateUnaryScalar method needed then? callers can call EvaluateUnaryScalarSpecialized directly

Copy link
Member Author

Choose a reason for hiding this comment

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

It might not be needed, but it's consistent with the setup of other APIs.

If we were to change this, I'd probably make it EvaluateUnaryScalar and just specialize that directly instead. That way there isn't two differently named entry points for Unary vs Binary vs ...

@LoopedBard3
Copy link
Member

FYI @tannergooding about this regression: #106144 (also mentioned above)

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JIT: Wrong constant folding with -0.0f/-0.0d
3 participants