2018-04-05 17:45:32 +03:00
|
|
|
# -*- Mode: makefile -*-
|
|
|
|
#
|
2018-05-07 23:53:43 +03:00
|
|
|
# ARM - included from tests/tcg/Makefile
|
2018-04-05 17:45:32 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
ARM_SRC=$(SRC_PATH)/tests/tcg/arm
|
|
|
|
|
|
|
|
# Set search path for all sources
|
|
|
|
VPATH += $(ARM_SRC)
|
|
|
|
|
2018-04-13 19:08:26 +03:00
|
|
|
ARM_TESTS=hello-arm test-arm-iwmmxt
|
|
|
|
|
|
|
|
TESTS += $(ARM_TESTS) fcvt
|
2018-04-05 17:45:32 +03:00
|
|
|
|
|
|
|
hello-arm: CFLAGS+=-marm -ffreestanding
|
|
|
|
hello-arm: LDFLAGS+=-nostdlib
|
2018-05-07 23:53:43 +03:00
|
|
|
|
2018-04-13 16:56:17 +03: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 19:08:26 +03:00
|
|
|
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
|
|
|
|
|
2018-05-07 23:53:43 +03:00
|
|
|
# On ARM Linux only supports 4k pages
|
|
|
|
EXTRA_RUNS+=run-test-mmap-4096
|