aboutsummaryrefslogtreecommitdiff
path: root/tests/fp
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2018-10-12 22:55:57 -0400
committerAlex Bennée <alex.bennee@linaro.org>2018-12-17 08:25:25 +0000
commit6c49b06dfd1aa5c1f90b2ade10df5a305d348e08 (patch)
tree659cc15c8c9c9618a9c52d7e27ce14ab7e51bfaa /tests/fp
parent0636e4d899ab30485d18bacf286defff011a22c5 (diff)
downloadqemu-6c49b06dfd1aa5c1f90b2ade10df5a305d348e08.zip
qemu-6c49b06dfd1aa5c1f90b2ade10df5a305d348e08.tar.gz
qemu-6c49b06dfd1aa5c1f90b2ade10df5a305d348e08.tar.bz2
fp-test: pick TARGET_ARM to get its specialization
This gets rid of the muladd errors due to not raising the invalid flag. - Before: Errors found in f64_mulAdd, rounding near_even, tininess before rounding: +000.0000000000000 +7FF.0000000000000 +7FF.FFFFFFFFFFFFF => +7FF.FFFFFFFFFFFFF ..... expected -7FF.FFFFFFFFFFFFF v.... [...] - After: In 6133248 tests, no errors found in f64_mulAdd, rounding near_even, tininess before rounding. [...] Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/fp')
-rw-r--r--tests/fp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fp/Makefile b/tests/fp/Makefile
index d649a5a..49cdcd1 100644
--- a/tests/fp/Makefile
+++ b/tests/fp/Makefile
@@ -29,6 +29,9 @@ QEMU_INCLUDES += -I$(TF_SOURCE_DIR)
# work around TARGET_* poisoning
QEMU_CFLAGS += -DHW_POISON_H
+# define a target to match testfloat's implementation-defined choices, such as
+# whether to raise the invalid flag when dealing with NaNs in muladd.
+QEMU_CFLAGS += -DTARGET_ARM
# capstone has a platform.h file that clashes with softfloat's
QEMU_CFLAGS := $(filter-out %capstone, $(QEMU_CFLAGS))