selftests: arm64: Factor out utility functions for assembly FP tests
authorMark Brown <broonie@kernel.org>
Tue, 19 Oct 2021 18:18:51 +0000 (19:18 +0100)
committerWill Deacon <will@kernel.org>
Thu, 21 Oct 2021 10:11:27 +0000 (11:11 +0100)
commit260ea4ba94e88385724754c644212ce552de8b01
tree9abd9432ad0eda1160dd1dd5007026f06dda1e9f
parent0ba1ce1e86052deea3f115285802ce8ffff3b152
selftests: arm64: Factor out utility functions for assembly FP tests

The various floating point test programs written in assembly have a bunch
of helper functions and macros which are cut'n'pasted between them. Factor
them out into a separate source file which is linked into all of them.

We don't include memcmp() since it isn't as generic as it should be and
directly branches to report an error in the programs.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211019181851.3341232-1-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/asm-utils.S [new file with mode: 0644]
tools/testing/selftests/arm64/fp/assembler.h
tools/testing/selftests/arm64/fp/fpsimd-test.S
tools/testing/selftests/arm64/fp/sve-test.S