-
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
Adding support for Vector512 bitwise operations: And, AndNot, Or, OnesComplement, and Xor #83354
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d25304a
Adding support for Vector512 bitwise operations: And, AndNot, Or, One…
tannergooding 4b82857
Adding AVX512F APIs for And, AndNot, Load, Or, Store, and Xor
tannergooding 45fc653
Fix the "throw new PlatformNotSupported" expressions for Avx512F
tannergooding f57b162
Fixing some test build failures
tannergooding 7cb6fe3
Ensure the Avx512F and related classes can lightup in import
tannergooding f509157
Ensure that JitStressEvexEncoding is only checked in debug
tannergooding 0fbec21
Allow 64-bit alignment in the test data table types and fix the AVX51…
tannergooding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -632,7 +632,7 @@ static bool isSupportedBaseType(NamedIntrinsic intrinsic, CorInfoType baseJitTyp | |
#ifdef DEBUG | ||
CORINFO_InstructionSet isa = HWIntrinsicInfo::lookupIsa(intrinsic); | ||
#ifdef TARGET_XARCH | ||
assert((isa == InstructionSet_Vector256) || (isa == InstructionSet_Vector128)); | ||
assert((isa == InstructionSet_Vector512) || (isa == InstructionSet_Vector256) || (isa == InstructionSet_Vector128)); | ||
#endif // TARGET_XARCH | ||
#ifdef TARGET_ARM64 | ||
assert((isa == InstructionSet_Vector64) || (isa == InstructionSet_Vector128)); | ||
|
@@ -976,11 +976,23 @@ GenTree* Compiler::impHWIntrinsic(NamedIntrinsic intrinsic, | |
|
||
assert(numArgs >= 0); | ||
|
||
if (!isScalar && ((HWIntrinsicInfo::lookupIns(intrinsic, simdBaseType) == INS_invalid) || | ||
((simdSize != 8) && (simdSize != 16) && (simdSize != 32)))) | ||
if (!isScalar) | ||
{ | ||
assert(!"Unexpected HW Intrinsic"); | ||
return nullptr; | ||
if (HWIntrinsicInfo::lookupIns(intrinsic, simdBaseType) == INS_invalid) | ||
{ | ||
assert(!"Unexpected HW intrinsic"); | ||
return nullptr; | ||
} | ||
|
||
#if defined(TARGET_ARM64) | ||
if ((simdSize != 8) && (simdSize != 16)) | ||
#elif defined(TARGET_XARCH) | ||
if ((simdSize != 16) && (simdSize != 32) && (simdSize != 64)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for this check against |
||
#endif // TARGET_* | ||
{ | ||
assert(!"Unexpected SIMD size"); | ||
return nullptr; | ||
} | ||
} | ||
|
||
GenTree* op1 = nullptr; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This assert was missing and so we weren't actually testing any InstructionSet_Vector512 paths yet.