selftests: arm64: Verify that all possible vector lengths are handled
authorMark Brown <broonie@kernel.org>
Wed, 29 Sep 2021 15:19:25 +0000 (16:19 +0100)
committerWill Deacon <will@kernel.org>
Wed, 29 Sep 2021 15:33:04 +0000 (16:33 +0100)
commit8694e5e6388695195a32bd5746635ca166a8df56
treed1642ad539103a040987d181c9d135b3fe74d4c0
parente42391150eabcfb2cc42f58c8b0394ebc3039c34
selftests: arm64: Verify that all possible vector lengths are handled

As part of the enumeration interface for setting vector lengths it is valid
to set vector lengths not supported in the system, these will be rounded to
a supported vector length and returned from the prctl(). Add a test which
exercises this for every valid vector length and makes sure that the return
value is as expected and that this is reflected in the actual system state.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Link: https://lore.kernel.org/r/20210929151925.9601-5-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/vec-syscfg.c