Skip to content

Commit 782d3c0

Browse files
authored
[FMV][AArch64] Add tests for feature ls64. (#162)
The tests cover all three FEAT_LS64, FEAT_LS64_V and FEAT_LS64_ACCDATA.
1 parent bd77380 commit 782d3c0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

SingleSource/UnitTests/AArch64/acle-fmv-features.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ CHECK(sme2, sme2, {
235235
"smstop za" "\n"
236236
);
237237
})
238+
CHECK(ls64, ls64, {
239+
long data[8];
240+
asm volatile (
241+
"ld64b x0, [%0]" "\n"
242+
"st64b x0, [%0]" "\n"
243+
"st64bv x8, x0, [%0]" "\n"
244+
"st64bv0 x8, x0, [%0]" "\n"
245+
:
246+
: "r" (data)
247+
: "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "memory"
248+
);
249+
})
238250

239251
static bool safe_try_feature(bool (*try_feature)(void)) {
240252
int child = fork();
@@ -275,6 +287,7 @@ int main(int, const char **) {
275287
check_crc();
276288
check_sme();
277289
check_sme2();
290+
check_ls64();
278291

279292
return any_fails ? -1 : 0;
280293
}

SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ fp
2424
crc
2525
sme
2626
sme2
27+
ls64
2728
exit 0

0 commit comments

Comments
 (0)