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 zroSimd12Elm3 is explicitly nulled out #85625

Merged
merged 1 commit into from
May 2, 2023

Conversation

tannergooding
Copy link
Member

Not doing this meant you could get non-determinstic bits in some scenarios, leading to sporadic failure

@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 May 2, 2023
@ghost ghost assigned tannergooding May 2, 2023
@ghost
Copy link

ghost commented May 2, 2023

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

Issue Details

Not doing this meant you could get non-determinstic bits in some scenarios, leading to sporadic failure

Author: tannergooding
Assignees: tannergooding
Labels:

area-CodeGen-coreclr

Milestone: -

@@ -548,7 +548,7 @@ void CodeGen::genSimd12UpperClear(regNumber tgtReg)
zroSimd12Elm3 = GetEmitter()->emitSimd16Const(constValue);
}

GetEmitter()->emitIns_SIMD_R_R_C(INS_andpd, EA_16BYTE, tgtReg, tgtReg, zroSimd12Elm3, 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

andpd vs andps doesn't matter, but it should've been andps since that's "more correct" for TYP_SIMD12 (e.g. Vector3 where all fields are float).

@tannergooding tannergooding merged commit 5d370f3 into dotnet:main May 2, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 1, 2023
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.

2 participants