Skip to content

[FMV][AArch64] Add tests for feature ls64. #162

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

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions SingleSource/UnitTests/AArch64/acle-fmv-features.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,18 @@ CHECK(sme2, sme2, {
"smstop za" "\n"
);
})
CHECK(ls64, ls64, {
long data[8];
asm volatile (
"ld64b x0, [%0]" "\n"
"st64b x0, [%0]" "\n"
"st64bv x8, x0, [%0]" "\n"
"st64bv0 x8, x0, [%0]" "\n"
:
: "r" (data)
: "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "memory"
);
})

static bool safe_try_feature(bool (*try_feature)(void)) {
int child = fork();
Expand Down Expand Up @@ -283,6 +295,7 @@ int main(int, const char **) {
check_crc();
check_sme();
check_sme2();
check_ls64();

return any_fails ? -1 : 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ fp
crc
sme
sme2
ls64
exit 0