-
Notifications
You must be signed in to change notification settings - Fork 396
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
AArch64: Implement arraycmp evaluator #6904
Merged
Merged
Conversation
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
Akira1Saitoh
force-pushed
the
aarch64ArraycmpLDP
branch
6 times, most recently
from
February 28, 2023 00:56
a64ae5c
to
80ec4b1
Compare
knn-k
reviewed
Mar 2, 2023
knn-k
reviewed
Mar 2, 2023
knn-k
reviewed
Mar 2, 2023
This commit implements arraycmp evaluator. It implements two variants. One of them returns the length of the identical data from the beginning of the arrays. The other returns 2/0/1 when the first array is greater than/equal to/less than the second array. The main loop reads a 16-byte chunk from the both array in a single interation. It uses ldp instruction to read 16-byte data into two 64-bit registers. Then, it compares each 64-bit registers to find mismatch. If any mismatch is found in 16-byte chunks, the bit position of the first mismatch is searched by clz instruction for the variant returning the length. If no mismatch is found in 16-byte chunks and there is still remaining data to be compared (which is smaller than 16 bytes), the secondary loop, which reads a single byte in each iteration, is executed. Signed-off-by: Akira Saitoh <[email protected]>
Akira1Saitoh
force-pushed
the
aarch64ArraycmpLDP
branch
from
March 2, 2023 04:52
80ec4b1
to
7c991a6
Compare
Jenkins build aarch64,amac |
See Issue #6516 for the socket test failure on macOS. |
knn-k
approved these changes
Mar 2, 2023
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This commit implements arraycmp evaluator.
It implements two variants. One of them returns the length of the identical data from the beginning of the arrays.
The other returns 2/0/1 when the first array is greater than/equal to/less than the second array.
The main loop reads a 16-byte chunk from the both array in a single interation. It uses ldp instruction to read 16-byte data into two 64-bit registers. Then, it compares each 64-bit registers to find mismatch. If any mismatch is found in 16-byte chunks, the bit position of the first mismatch is searched by clz instruction for the variant returning the length. If no mismatch is found in 16-byte chunks and there is still remaining data to be compared (which is smaller than 16 bytes),
the secondary loop, which reads a single byte in each iteration, is executed.