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