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)
|
|
|
|
|
2019-09-13 14:12:17 +03:00
|
|
|
float_madds: CFLAGS+=-mfpu=neon-vfpv4
|
|
|
|
|
2019-09-11 19:49:55 +03:00
|
|
|
# Basic Hello World
|
|
|
|
ARM_TESTS = hello-arm
|
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
|
|
|
|
2019-09-11 19:49:55 +03:00
|
|
|
# IWMXT floating point extensions
|
|
|
|
ARM_TESTS += test-arm-iwmmxt
|
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)
|
|
|
|
|
2019-09-11 19:49:55 +03:00
|
|
|
# Float-convert Tests
|
|
|
|
ARM_TESTS += fcvt
|
2018-04-13 19:08:26 +03:00
|
|
|
fcvt: LDFLAGS+=-lm
|
|
|
|
# fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8
|
|
|
|
run-fcvt: fcvt
|
2018-05-21 12:38:37 +03:00
|
|
|
$(call run-test,fcvt,$(QEMU) $<,"$< on $(TARGET_NAME)")
|
|
|
|
$(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref)
|
2019-09-11 19:49:55 +03:00
|
|
|
|
2019-09-19 16:18:41 +03:00
|
|
|
# Semihosting smoke test for linux-user
|
|
|
|
ARM_TESTS += semihosting
|
|
|
|
run-semihosting: semihosting
|
|
|
|
$(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)")
|
|
|
|
|
2019-05-17 19:09:48 +03:00
|
|
|
run-plugin-semihosting-with-%:
|
|
|
|
$(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
|
|
|
|
-plugin $(PLUGIN_DIR)/$(call extract-plugin,$@) \
|
|
|
|
$(call strip-plugin,$<) 2> $<.err, \
|
|
|
|
"$< on $(TARGET_NAME) with $*")
|
|
|
|
|
2019-09-11 19:49:55 +03:00
|
|
|
TESTS += $(ARM_TESTS)
|
2018-04-13 19:08:26 +03:00
|
|
|
|
2018-05-07 23:53:43 +03:00
|
|
|
# On ARM Linux only supports 4k pages
|
|
|
|
EXTRA_RUNS+=run-test-mmap-4096
|