-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Disable GFNI tests for NAOT #110250
Disable GFNI tests for NAOT #110250
Conversation
/azp run runtime-nativeaot-outerloop |
Commenter does not have sufficient privileges for PR 110250 in repo dotnet/runtime |
/azp run runtime-nativeaot-outerloop |
For reference, the test that was failing: runtime/src/tests/JIT/HardwareIntrinsics/X86/Shared/GfniAffineTest.template Lines 229 to 248 in d6eb354
This template is common across HWIntrinsics tests, and any of these will fail when an unsupported instruction set is allowed in NAOT. |
Azure Pipelines successfully started running 1 pipeline(s). |
The other tests dealt with the problem by getting disabled: https://github.com/dotnet/runtime/blob/main/src/tests/JIT/HardwareIntrinsics/X86/X86Serialize/Serialize_r.csproj#L6-L7 . Should we do the same here? Ideally, the opportunistic set would contain all instructions by default. The only reason why it is not the case are JIT instruction encoding limitations. |
a1da8b3
to
7ca479b
Compare
Got it, thanks. I've only added the property for the base |
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
We don't really test with |
It would be nice to fix this template to be compatible with native AOT: #110293 |
Thank you! |
* disable GFNI tests for NAOT * Apply suggestions from code review --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com> Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
* disable GFNI tests for NAOT * Apply suggestions from code review --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com> Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fixes #110240
GFNI is enabled opportunistically, and the HWIntrinsics tests check that the methods throw PNSE when not supported. On NAOT, instead of throwing, the instructions are emitted, so they result in illegal instruction instead.