-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Simplify SVE unary test template #118129
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
Simplify SVE unary test template #118129
Conversation
* Replace DataTable with PinnedVector class * Add functions for generating random Vectors * Add functions for converting between Vector and Array types * Generate an expected Vector for comparison and log to terminal * Simplify validation functions * Remove RetVectorType and Op1VectorType template variables
|
@dotnet/arm64-contrib |
src/tests/JIT/HardwareIntrinsics/Arm/Shared/_SveUnaryOpTestTemplate.template
Show resolved
Hide resolved
amanasifkhalid
left a comment
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.
Thanks for taking on this cleanup! I have a few notes on reducing Unsafe.* usage.
amanasifkhalid
left a comment
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.
Thanks for taking on this cleanup! I have a few notes on reducing Unsafe.* usage.
* Remove unnecessary initializations * Remove unused ArrayToVector function * Fix exception thrown in SignExtend helper
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.
LGTM. I assume you're planning on removing all the now-unused templates -- never mind that, I see they're still used by all the other templatesOp1VectorType and TemplateValidationLogicForCndSel -- in a subsequent PR, right?
I'm primarily intending to deprecate these variables so the rest of the SVE2 tests we're going to add can be simpler. But if I have time to clean up the existing data after editing the templates then I would like to do so as well. |
|
I also noticed a failure in the first build related to |
This patch is aiming to extract out some of the common code written in each of the templates to make them easier to debug and change in future, starting with the simpler Unary SVE template.