-
Notifications
You must be signed in to change notification settings - Fork 343
[AArch64][FMV] Add a non-comprehensive test for ACLE FMV #87
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
Conversation
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 compiler-rt FMV tests! We are going to add more on runtime detection implementing __builtin_cpu_supports
aarch64 part https://reviews.llvm.org/D153153 on top of recently merged llvm/llvm-project#68919
SingleSource/UnitTests/AArch64/acle-function-multi-versioning.c
Outdated
Show resolved
Hide resolved
SingleSource/UnitTests/AArch64/acle-function-multi-versioning.c
Outdated
Show resolved
Hide resolved
31ab960
to
719c9ed
Compare
719c9ed
to
b0941c3
Compare
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.
Good to go with Linux part disabled - we'll take it over and address separately, thank you!
SingleSource/UnitTests/AArch64/acle-function-multi-versioning.c
Outdated
Show resolved
Hide resolved
SingleSource/UnitTests/AArch64/acle-function-multi-versioning.c
Outdated
Show resolved
Hide resolved
Enabling Linux part of llvm#87
* [AArch64][FMV] Enable tests for ACLE FMV on Linux. Enabling Linux part of #87 * Update SingleSource/UnitTests/AArch64/acle-fmv-features.c Co-authored-by: Jon Roelofs <[email protected]> --------- Co-authored-by: Jon Roelofs <[email protected]>
This covers the ones we currently have enabled via apple.inc in compiler-rt, as well as a couple that are not. Each test uses Function Multi Versioning to check for the presence or absence of each given feature, and subsequently exercises that feature if it is presumed to exist. For features that are not thought to exist by the FMV infra, it forks and attempts to try the feature anyway, expecting the resulting thread to die, thus affirming the inverse.