summaryrefslogtreecommitdiffstats
path: root/tests/tcg/aarch64/Makefile.target
diff options
context:
space:
mode:
authorAlex Bennée2018-04-13 18:08:26 +0200
committerAlex Bennée2018-06-20 21:22:34 +0200
commit8ec8a55e3fc9769c9904ba0dea81414784a6d527 (patch)
tree59e88b265c093b1c0e9912e025a441d4689bcaec /tests/tcg/aarch64/Makefile.target
parenttests/tcg: enable building for AArch64 (diff)
downloadqemu-8ec8a55e3fc9769c9904ba0dea81414784a6d527.tar.gz
qemu-8ec8a55e3fc9769c9904ba0dea81414784a6d527.tar.xz
qemu-8ec8a55e3fc9769c9904ba0dea81414784a6d527.zip
tests/tcg/arm: add fcvt test cases for AArch32/64
This runs through the usual float to float conversions and crucially also runs with ARM Alternative Half Precision Format. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/tcg/aarch64/Makefile.target')
-rw-r--r--tests/tcg/aarch64/Makefile.target19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target
new file mode 100644
index 0000000000..7dba32138d
--- /dev/null
+++ b/tests/tcg/aarch64/Makefile.target
@@ -0,0 +1,19 @@
+# -*- Mode: makefile -*-
+#
+# AArch64 specific tweaks
+
+AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64
+VPATH += $(AARCH64_SRC)
+
+# we don't build any of the ARM tests
+AARCH64_TESTS=$(filter-out $(ARM_TESTS), $(TESTS))
+AARCH64_TESTS+=fcvt
+TESTS:=$(AARCH64_TESTS)
+
+fcvt: LDFLAGS+=-lm
+
+run-fcvt: fcvt
+ $(call quiet-command, \
+ $(QEMU) $< > fcvt.out && \
+ diff -u $(AARCH64_SRC)/fcvt.ref fcvt.out, \
+ "TEST", "$< (default) on $(TARGET_NAME)")