aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/arm/Makefile.target
blob: 14b5435fc6abdf4cc3b19ae12a11982e1595f5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- Mode: makefile -*-
#
# ARM - included from tests/tcg/Makefile
#

ARM_SRC=$(SRC_PATH)/tests/tcg/arm

# Set search path for all sources
VPATH 		+= $(ARM_SRC)

ARM_TESTS=hello-arm test-arm-iwmmxt

TESTS += $(ARM_TESTS) fcvt

hello-arm: CFLAGS+=-marm -ffreestanding
hello-arm: LDFLAGS+=-nostdlib

test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
test-arm-iwmmxt: test-arm-iwmmxt.S
	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)

ifeq ($(TARGET_NAME), arm)
fcvt: LDFLAGS+=-lm
# fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8

run-fcvt: fcvt
	$(call quiet-command, \
		$(QEMU) $< > fcvt.out && \
		diff -u $(ARM_SRC)/fcvt.ref fcvt.out, \
		"TEST", "$< (default) on $(TARGET_NAME)")
endif

# On ARM Linux only supports 4k pages
EXTRA_RUNS+=run-test-mmap-4096