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

JIT: Fix NumArgs for GetFfr* and CreateTrueMaskAll HW intrinsics #105943

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

jakobbotsch
Copy link
Member

@jakobbotsch jakobbotsch commented Aug 5, 2024

@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 Aug 5, 2024
Copy link
Contributor

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

@jakobbotsch
Copy link
Member Author

cc @a74nh, can you check if this fixes the tests for you?

@a74nh
Copy link
Contributor

a74nh commented Aug 5, 2024

Checking....

@a74nh
Copy link
Contributor

a74nh commented Aug 5, 2024

Looks like the issue is still present with this PR

@mikabl-arm
Copy link
Contributor

@jakobbotsch , seems that it doesn't fix the error we began to experience after 014632b . Have you encountered this assertion fail? Please let me know if the patch fixes the error for you.

Starting test: /home/mikabl01/dotnet/runtime/artifacts/tests/coreclr/linux.arm64.Checked/Tests/Core_Root/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true ./artifacts/tests/coreclr/linux.arm64.Checked/JIT/HardwareIntri
nsics/HardwareIntrinsics_Arm_ro/HardwareIntrinsics_Arm_ro.dll GatherVectorFirstFaulting                                                                        
===================Running default===================                                                                                                                                                                                                                                                                         
------------------- {} -------------------                                                                                                                                                                                                                                                                                    
Errors:                                                                        
                                                                                                                                                                                                                                                                                                                              
Assert failure(PID 3447181 [0x0034998d], Thread: 3447181 [0x34998d]): Assertion failed 'vnStore->VNFuncArity(func) == 1' in 'JIT.HardwareIntrinsics.Arm._Sve.SveGatherVectorVectorBasesTest__Sve_GatherVectorFirstFaulting_Bases_double_ulong:RunBasicScenario_UnsafeRead():this' during 'Do value numbering' (IL size 110; ha
sh 0x04f13b09; FullOpts)                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                              
    File: /home/mikabl01/dotnet/runtime/src/coreclr/jit/valuenum.cpp:12998                                                                                                                                                                                                                                                    
    Image: /home/mikabl01/dotnet/runtime/artifacts/tests/coreclr/linux.arm64.Checked/Tests/Core_Root/corerun   

@jakobbotsch
Copy link
Member Author

@jakobbotsch , seems that it doesn't fix the error we began to experience after 014632b . Have you encountered this assertion fail? Please let me know if the patch fixes the error for you.

Starting test: /home/mikabl01/dotnet/runtime/artifacts/tests/coreclr/linux.arm64.Checked/Tests/Core_Root/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true ./artifacts/tests/coreclr/linux.arm64.Checked/JIT/HardwareIntri
nsics/HardwareIntrinsics_Arm_ro/HardwareIntrinsics_Arm_ro.dll GatherVectorFirstFaulting                                                                        
===================Running default===================                                                                                                                                                                                                                                                                         
------------------- {} -------------------                                                                                                                                                                                                                                                                                    
Errors:                                                                        
                                                                                                                                                                                                                                                                                                                              
Assert failure(PID 3447181 [0x0034998d], Thread: 3447181 [0x34998d]): Assertion failed 'vnStore->VNFuncArity(func) == 1' in 'JIT.HardwareIntrinsics.Arm._Sve.SveGatherVectorVectorBasesTest__Sve_GatherVectorFirstFaulting_Bases_double_ulong:RunBasicScenario_UnsafeRead():this' during 'Do value numbering' (IL size 110; ha
sh 0x04f13b09; FullOpts)                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                              
    File: /home/mikabl01/dotnet/runtime/src/coreclr/jit/valuenum.cpp:12998                                                                                                                                                                                                                                                    
    Image: /home/mikabl01/dotnet/runtime/artifacts/tests/coreclr/linux.arm64.Checked/Tests/Core_Root/corerun   

I have not reproduced it myself, no. I was hoping to be able to guess what the problem was. Let me spend some time to set up the environment to do that.

@jakobbotsch jakobbotsch changed the title JIT: Fix NumArgs for GetFFR* HW intrinsics JIT: Fix NumArgs for GetFfr* and CreateTrueMaskAll HW intrinsics Aug 5, 2024
@jakobbotsch
Copy link
Member Author

Same problem just for another HW intrinsic. Should fix it now.

@a74nh
Copy link
Contributor

a74nh commented Aug 5, 2024

Same problem just for another HW intrinsic. Should fix it now.

This now fixes it for me (and @SwapnilGaikwad )

@jakobbotsch jakobbotsch added this to the 9.0.0 milestone Aug 5, 2024
@jakobbotsch jakobbotsch marked this pull request as ready for review August 5, 2024 17:08
@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib @dotnet/arm64-contrib PTAL @TIHan

@jakobbotsch jakobbotsch requested a review from TIHan August 5, 2024 17:09
@jakobbotsch jakobbotsch merged commit 8a46116 into dotnet:main Aug 5, 2024
106 of 110 checks passed
@jakobbotsch jakobbotsch deleted the fix-getffr-numargs branch August 5, 2024 19:00
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
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.

4 participants