tests/tcg: add float_madds test to multiarch
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 13 Sep 2019 11:12:17 +0000 (12:12 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Sep 2019 18:00:53 +0000 (19:00 +0100)
commita4f3ed629e985f1b5d3b7e0b681ff02e391d699a
tree9358b4cdd0f2f82a41405450b8291b9988391efd
parent149911cff76b8e222a54cc06caebfbb80e4e8d8f
tests/tcg: add float_madds test to multiarch

This is a generic floating point multiply and accumulate test for
single precision floating point values. I've split of the common float
functions into a helper library so additional tests can use the same
common code.

As I don't have references for all architectures I've allowed some
flexibility for tests to pass without reference files. They can be
added as we get collect them.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/tcg/Makefile.target
tests/tcg/aarch64/float_madds.ref [new file with mode: 0644]
tests/tcg/arm/Makefile.target
tests/tcg/arm/float_madds.ref [new file with mode: 0644]
tests/tcg/multiarch/Makefile.target
tests/tcg/multiarch/float_helpers.c [new file with mode: 0644]
tests/tcg/multiarch/float_helpers.h [new file with mode: 0644]
tests/tcg/multiarch/float_madds.c [new file with mode: 0644]