-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Fix arm64 wrong multireg copies from reg to small type field in memory #46345
Conversation
Can anybody approve this? |
ff52e75
to
efe6df2
Compare
/azp run runtime-coreclr outerloop, runtime-coreclr jitstress |
Azure Pipelines successfully started running 2 pipeline(s). |
efe6df2
to
6ff46b8
Compare
/azp run runtime-coreclr outerloop, runtime-coreclr jitstress |
Azure Pipelines successfully started running 2 pipeline(s). |
@AndyAyersMS I've changed the fix, please take another look. cc @dotnet/jit-contrib , @jkoritzinsky |
src/coreclr/jit/instr.cpp
Outdated
// Notes: | ||
// The fuctiuon currently does not expect float srcReg with integral dstType and will assert on such cases. | ||
// | ||
instruction CodeGenInterface::ins_Store(regNumber srcReg, var_types dstType, bool aligned /*=false*/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer not to see overloads like this with optional parameters. Can we rename one or the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not clear to me why we don't just force all stores to use the version that does more checking...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I am thinking how to rename one of them now.
Also not clear to me why we don't just force all stores to use the version that does more checking...
It is possible but requires more refactoring changes, for example, emitInsStoreLcl
and emitInsStoreInd
should just receive GenTree*
and calculate instruction ins, emitAttr attr
inside. I will try to find time for this change later as a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
did this fix #46278 ? |
Yes, thanks for pointing this, I forgot to link that issue. |
Closes #46240