-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Assertion failed 'isGeneralRegister(reg3)' on R2R_CG2 linux-arm64 outerloop #64936
Comments
Tagging subscribers to this area: @JulieLeeMSFT Issue Details
|
I can repro locally |
@AndyAyersMS looks like fsub related, doesn't repro with |
|
The substitution that leads to the assert alone:
FSub:
|
See if #64933 fixes this? |
Just checked - no, it doesn't |
Minimal repro: [MethodImpl(MethodImplOptions.NoInlining)]
void Test(Span<long> tempChain, int i)
{
tempChain = tempChain.Slice(0, 1);
tempChain[i] = Foo1();
}
[MethodImpl(MethodImplOptions.NoInlining)]
static long Foo1() => 0;
|
@EgorBo I'm happy to take a look too if you want... |
Related to the |
@AndyAyersMS BFIZ can be contained as part of LEA, but we should still have a register for underlying local. If you want I can take this issue back 🙂 |
Still a little puzzled but I think what's happening here is that the
|
@AndyAyersMS from my understanding LEA should always be contained on arm (as part of IND). On x64 it can be not-contained since there is a real LEA instruction |
If so, then we need to figure out what's blocking LEA containment. Possibly the new safety checks...? I will keep looking. |
Ok, I think I have a fix. |
At least on arm64, where LEAs must be contained. Fixes dotnet#64936.
@am11 which outerloop pipeline was this? I would like to trigger it on the fix. |
It happens in https://dev.azure.com/dnceng/public/_build?definitionId=833&_a=summary (don't know which pipeline the issue came from) |
Yes it was |
At least on arm64, where LEAs must be contained. Fixes #64936.
Generate CORE_ROOT
step ofCoreCLR Pri1 Runtime Tests Run R2R_CG2 Linux arm64 checked
leg failed this assertion https://dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1597389/logs/1104:The text was updated successfully, but these errors were encountered: