selftests/arm64: Add a testcase for handling of ZA on clone()
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:47 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:12 +0000 (17:57 +0100)
commit212b0426bc361eede2f9ce43fb2a5b01070000a1
tree0a77f65eb412518404baf93b48b1556d7a24dc64
parent43e3f85523e488f8acd6b371d457818d81977934
selftests/arm64: Add a testcase for handling of ZA on clone()

Add a small testcase that attempts to do a clone() with ZA enabled and
verifies that it remains enabled with the same contents. We only check
one word in one horizontal vector of ZA since there's already other tests
that check for data corruption more broadly, we're just looking to make
sure that ZA is still enabled and it looks like the data got copied.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220419112247.711548-40-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/.gitignore
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/za-fork-asm.S [new file with mode: 0644]
tools/testing/selftests/arm64/fp/za-fork.c [new file with mode: 0644]