Skip to content

Commit 1592d36

Browse files
authored
[FMV][AArch64] Add a test for feature CSSC. (#224)
Depends on llvm/llvm-project#132727
1 parent 65909a3 commit 1592d36

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,12 @@ CHECK(memtag, memtag, memtag, true, {
360360
: : : "x0"
361361
);
362362
})
363+
CHECK(cssc, cssc, cssc, false, {
364+
asm volatile (
365+
"cnt x0, x1"
366+
: : : "x0"
367+
);
368+
})
363369

364370
static bool safe_try_feature(bool (*try_feature)(void), bool is_exempt) {
365371
int child = fork();
@@ -418,6 +424,7 @@ int main(int, const char **) {
418424
check_sme_i16i64();
419425
check_mops();
420426
check_memtag();
427+
check_cssc();
421428

422429
return any_fails ? -1 : 0;
423430
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ sme-f64f64
4242
sme-i16i64
4343
mops
4444
memtag
45+
cssc
4546
exit 0

0 commit comments

Comments
 (0)