xref: /openbmc/qemu/tests/tcg/arm/Makefile.target (revision 520e210c)
1# -*- Mode: makefile -*-
2#
3# ARM - included from tests/tcg/Makefile
4#
5
6ARM_SRC=$(SRC_PATH)/tests/tcg/arm
7
8# Set search path for all sources
9VPATH 		+= $(ARM_SRC)
10
11ARM_TESTS=hello-arm test-arm-iwmmxt
12
13TESTS += $(ARM_TESTS) fcvt
14
15hello-arm: CFLAGS+=-marm -ffreestanding
16hello-arm: LDFLAGS+=-nostdlib
17
18test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
19test-arm-iwmmxt: test-arm-iwmmxt.S
20	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
21
22ifeq ($(TARGET_NAME), arm)
23fcvt: LDFLAGS+=-lm
24# fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8
25
26run-fcvt: fcvt
27	$(call run-test,fcvt,$(QEMU) $<,"$< on $(TARGET_NAME)")
28	$(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref)
29endif
30
31# On ARM Linux only supports 4k pages
32EXTRA_RUNS+=run-test-mmap-4096
33