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

PMI assert in system.private.corelib #11200

Closed
AndyAyersMS opened this issue Oct 5, 2018 · 7 comments
Closed

PMI assert in system.private.corelib #11200

AndyAyersMS opened this issue Oct 5, 2018 · 7 comments
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone

Comments

@AndyAyersMS
Copy link
Member

PMI now asserts when processing system.private.corelib on x64 checked:

;; complus_tieredcompilation=0
corerun d:\repos\jitutils\bin\pmi.dll prepall-quiet D:\repos\coreclr2\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\System.Private.CoreLib.dll
Assert failure(PID 560 [0x00000230], Thread: 20044 [0x4e4c]): Assertion failed 'HWIntrinsicInfo::lookupIns(intrinsic, baseType) != INS_invalid' in 'System.Runtime.Intrinsics.X86.Avx2:BlendVariable(struct,struct,struct):struct' (IL size 9)

    File: d:\repos\coreclr2\src\jit\hwintrinsicxarch.cpp Line: 827
    Image: D:\repos\coreclr2\bin\tests\Windows_NT.x64.Checked\Tests\Core_Root\CoreRun.exe

possibly from dotnet/coreclr#19420

cc @fiigii @dotnet/jit-contrib

@fiigii
Copy link
Contributor

fiigii commented Oct 5, 2018

@AndyAyersMS dotnet/coreclr#19420 added new overload APIs for these intrinsic. The JIT implementations and test cases are in dotnet/coreclr#20210

@AndyAyersMS
Copy link
Member Author

Are you saying this is an expected failure until we've merged dotnet/coreclr#20210?

If so: in the (not too distant) future we may be adding PMI runs to the CI, so we'll have to stage changes like this differently.

@fiigii
Copy link
Contributor

fiigii commented Oct 5, 2018

Are you saying this is an expected failure until we've merged

Yes, it probably is expected (but I am not very familiar with PMI tests). In the current master, Avx2:BlendVariable has APIs on some types but temporarily no JIT implementation.

so we'll have to stage changes like this differently.

Recently, we are changing some APIs of hardware intrinsic https://github.com/dotnet/coreclr/issues/20062. Once the work gets done, we won't have this kind of failures.

@fiigii
Copy link
Contributor

fiigii commented Oct 8, 2018

@AndyAyersMS dotnet/coreclr#20210 is merged, could you please try again?

@AndyAyersMS
Copy link
Member Author

Trying... it now.

I am currently hitting an assert in crossgen now. Let me see if this repros with a clean build...

D:\repos\coreclr\bin\Product\Windows_NT.x64.Checked>crossgen System.Private.CoreLib.dll
Microsoft (R) CoreCLR Native Image Generator - Version 4.5.30319.0
Copyright (c) Microsoft Corporation.  All rights reserved.


Assert failure(PID 10924 [0x00002aac], Thread: 22892 [0x596c]): Assertion failed 'm_rsCompiler->lvaDoneFrameLayout < Compiler::FINAL_FRAME_LAYOUT' in 'DomainNeutralILStubClass:IL_STUB_PInvoke(int,ref,ref,byref,ref,byref,byref):bool' (IL size 361)

    File: d:\repos\coreclr\src\jit\regset.cpp Line: 110
    Image: D:\repos\coreclr\bin\Product\Windows_NT.x64.Checked\crossgen.exe

@AndyAyersMS
Copy link
Member Author

Looks like the above was a transient issue.

And PMI is ow working on corelib again,.

@fiigii
Copy link
Contributor

fiigii commented Oct 8, 2018

Thanks!

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 15, 2020
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

No branches or pull requests

3 participants