]> git.ipfire.org Git - thirdparty/qemu.git/blob - tests/tcg/arm/Makefile.target
tests/tcg: enable plugin testing
[thirdparty/qemu.git] / tests / tcg / arm / Makefile.target
1 # -*- Mode: makefile -*-
2 #
3 # ARM - included from tests/tcg/Makefile
4 #
5
6 ARM_SRC=$(SRC_PATH)/tests/tcg/arm
7
8 # Set search path for all sources
9 VPATH += $(ARM_SRC)
10
11 float_madds: CFLAGS+=-mfpu=neon-vfpv4
12
13 # Basic Hello World
14 ARM_TESTS = hello-arm
15 hello-arm: CFLAGS+=-marm -ffreestanding
16 hello-arm: LDFLAGS+=-nostdlib
17
18 # IWMXT floating point extensions
19 ARM_TESTS += test-arm-iwmmxt
20 test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
21 test-arm-iwmmxt: test-arm-iwmmxt.S
22 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
23
24 # Float-convert Tests
25 ARM_TESTS += fcvt
26 fcvt: LDFLAGS+=-lm
27 # fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8
28 run-fcvt: fcvt
29 $(call run-test,fcvt,$(QEMU) $<,"$< on $(TARGET_NAME)")
30 $(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref)
31
32 # Semihosting smoke test for linux-user
33 ARM_TESTS += semihosting
34 run-semihosting: semihosting
35 $(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)")
36
37 run-plugin-semihosting-with-%:
38 $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
39 -plugin $(PLUGIN_DIR)/$(call extract-plugin,$@) \
40 $(call strip-plugin,$<) 2> $<.err, \
41 "$< on $(TARGET_NAME) with $*")
42
43 TESTS += $(ARM_TESTS)
44
45 # On ARM Linux only supports 4k pages
46 EXTRA_RUNS+=run-test-mmap-4096