2018-04-05 16:45:32 +02:00
|
|
|
# -*- Mode: makefile -*-
|
|
|
|
#
|
2018-05-07 22:53:43 +02:00
|
|
|
# ARM - included from tests/tcg/Makefile
|
2018-04-05 16:45:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
ARM_SRC=$(SRC_PATH)/tests/tcg/arm
|
|
|
|
|
|
|
|
# Set search path for all sources
|
|
|
|
VPATH += $(ARM_SRC)
|
|
|
|
|
2018-04-13 18:08:26 +02:00
|
|
|
ARM_TESTS=hello-arm test-arm-iwmmxt
|
|
|
|
|
|
|
|
TESTS += $(ARM_TESTS) fcvt
|
2018-04-05 16:45:32 +02:00
|
|
|
|
|
|
|
hello-arm: CFLAGS+=-marm -ffreestanding
|
|
|
|
hello-arm: LDFLAGS+=-nostdlib
|
2018-05-07 22:53:43 +02:00
|
|
|
|
2018-04-13 15:56:17 +02:00
|
|
|
test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16
|
|
|
|
test-arm-iwmmxt: test-arm-iwmmxt.S
|
|
|
|
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
|
|
|
|
|
2018-04-13 18:08:26 +02:00
|
|
|
ifeq ($(TARGET_NAME), arm)
|
|
|
|
fcvt: LDFLAGS+=-lm
|
|
|
|
# fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8
|
|
|
|
|
|
|
|
run-fcvt: fcvt
|
2018-05-21 11:38:37 +02:00
|
|
|
$(call run-test,fcvt,$(QEMU) $<,"$< on $(TARGET_NAME)")
|
|
|
|
$(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref)
|
2018-04-13 18:08:26 +02:00
|
|
|
endif
|
|
|
|
|
2018-05-07 22:53:43 +02:00
|
|
|
# On ARM Linux only supports 4k pages
|
|
|
|
EXTRA_RUNS+=run-test-mmap-4096
|