Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix ARM cast codegen#18063

Merged
BruceForstall merged 2 commits into
dotnet:masterfrom
mikedn:arm-cast-codegen
Jun 7, 2018
Merged

Fix ARM cast codegen#18063
BruceForstall merged 2 commits into
dotnet:masterfrom
mikedn:arm-cast-codegen

Conversation

@mikedn
Copy link
Copy Markdown

@mikedn mikedn commented May 19, 2018

ARM cast codegen is rather convoluted and sometimes does the wrong thing by applying GTF_UNSIGNED to the destination type even though this flag is only about the source type.

Fixes #18040

@mikedn mikedn force-pushed the arm-cast-codegen branch from c5b130e to d612809 Compare May 19, 2018 20:47
mikedn added 2 commits May 20, 2018 12:35
ARM cast codegen is rather convoluted and sometimes does the wrong thing by applying GTF_UNSIGNED to the destination type even though this flag is only about the source type.
These tests are intended to support casts with contained operands. They're also useful to catch issues caused by load nodes having small types and generally improve test coverage for casts.
@mikedn mikedn force-pushed the arm-cast-codegen branch from d612809 to 2068df9 Compare May 20, 2018 09:47
@BruceForstall
Copy link
Copy Markdown

@dotnet/jit-contrib

Copy link
Copy Markdown

@CarolEidt CarolEidt left a comment

Choose a reason for hiding this comment

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

LGTM, but I'll hold off on merging as @BruceForstall has self-requested a review.

@BruceForstall
Copy link
Copy Markdown

@dotnet-bot test Ubuntu arm Cross Checked normal Build and Test
@dotnet-bot test Ubuntu arm Cross Checked jitstress1 Build and Test
@dotnet-bot test Ubuntu arm Cross Checked jitstress2 Build and Test

@dotnet-bot test Windows_NT arm64 Cross Checked normal Build and Test

@mikedn
Copy link
Copy Markdown
Author

mikedn commented Jun 6, 2018

Presumably the failure of FixedAddressValueType is a glitch? I tried to run it locally with AltJit and I don't see any differences in the generated code.

@BruceForstall
Copy link
Copy Markdown

Perhaps, although I don't see any other example of it failing. Try again:

@dotnet-bot test Ubuntu arm Cross Checked jitstress1 Build and Test

@CarolEidt
Copy link
Copy Markdown

ping @BruceForstall - are you still wanting to review this?

@mikedn
Copy link
Copy Markdown
Author

mikedn commented Jun 7, 2018

Hopefully you aren't trying to review those 11000 lines of test code :)

@BruceForstall
Copy link
Copy Markdown

All the tests I triggered passed, so I'll sign off. (Was mostly out today)

@BruceForstall BruceForstall merged commit 4cdb810 into dotnet:master Jun 7, 2018
@mikedn mikedn deleted the arm-cast-codegen branch September 28, 2019 19:21
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Fix ARM cast codegen

ARM cast codegen is rather convoluted and sometimes does the wrong thing by applying GTF_UNSIGNED to the destination type even though this flag is only about the source type.

* Add more conversion tests

These tests are intended to support casts with contained operands. They're also useful to catch issues caused by load nodes having small types and generally improve test coverage for casts.


Commit migrated from dotnet/coreclr@4cdb810
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants