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

[release/3.1] Backport the fix for dotnet/runtime issue 46529#28146

Merged
aik-jahoda merged 1 commit intodotnet:release/3.1from
briansull:fix-46529-3.1
Mar 10, 2021
Merged

[release/3.1] Backport the fix for dotnet/runtime issue 46529#28146
aik-jahoda merged 1 commit intodotnet:release/3.1from
briansull:fix-46529-3.1

Conversation

@briansull
Copy link

@briansull briansull commented Feb 12, 2021

5.0.x version of this change: dotnet/runtime#47741

Incorrect behavior a 64-bit long with shift of 32 or more combined with a cast to int

The JIT generates incorrect code for this code pattern:

(int) (X << C)

where C >= 32 and
and X is anything with a potential side-effect and is 64-bit integer type

Customer Impact

Reported by customer who was migrating to .Net Core from the Desktop runtime.

Regression?

This is a regression that was introduced in the .Net 3.X timeframe by
#19899

Risk

Low

Fixes issue #47724

… branch

Fixes incorrect behavior a 64-bit long with shift of 32 or more combined with a cast to int
@briansull
Copy link
Author

Also consider this fix for 3,1 servicing

@jeffschwMSFT
@sandreenko

PTAL

@jeffschwMSFT jeffschwMSFT added area-CodeGen Servicing-consider Issue for next servicing release review labels Feb 16, 2021
@jeffschwMSFT jeffschwMSFT added this to the 3.0.x milestone Feb 16, 2021
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. Please get a cr and then we can take for approval

@jeffschwMSFT jeffschwMSFT modified the milestones: 3.0.x, 3.1.x Feb 18, 2021
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 18, 2021
@leecow leecow modified the milestones: 3.1.x, 3.1.14 Feb 18, 2021
@aik-jahoda aik-jahoda merged commit 3800437 into dotnet:release/3.1 Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants