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

Add some documentation on GT_CAST's semantics #67208

Merged
merged 2 commits into from
Mar 28, 2022

Conversation

SingleAccretion
Copy link
Contributor

The semantics of cast nodes are notoriously complicated. It was requested documentation be added clarifying some of the less obvious bits, this change does just that.

The semantics of cast nodes are notoriously complicated.
It was requested documentation be added clarifying some
of the less obvious bits, this change does just that.
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Mar 27, 2022
@SingleAccretion SingleAccretion marked this pull request as ready for review March 27, 2022 18:40
@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 Mar 27, 2022
@ghost
Copy link

ghost commented Mar 27, 2022

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

Issue Details

The semantics of cast nodes are notoriously complicated. It was requested documentation be added clarifying some of the less obvious bits, this change does just that.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib, @EgorBo

Copy link
Member

@EgorBo EgorBo left a comment

Choose a reason for hiding this comment

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

Love it! Thanks!

"Integer -> FP" (always) unchecked casts also use "IsUnsigned".
@BruceForstall BruceForstall merged commit ee650cd into dotnet:main Mar 28, 2022
@SingleAccretion SingleAccretion deleted the Casts-Documentation branch March 29, 2022 15:06
radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
* Add documentation on GT_CAST's semantics

The semantics of cast nodes are notoriously complicated.
It was requested documentation be added clarifying some
of the less obvious bits, this change does just that.

* Fix a typo, add the "integer -> FP" case

"Integer -> FP" (always) unchecked casts also use "IsUnsigned".
@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2022
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 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.

4 participants