1# -*- Mode: makefile -*- 2# 3# AArch64 specific tweaks 4 5ARM_SRC=$(SRC_PATH)/tests/tcg/arm 6VPATH += $(ARM_SRC) 7 8AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64 9VPATH += $(AARCH64_SRC) 10 11# Float-convert Tests 12AARCH64_TESTS=fcvt 13 14fcvt: LDFLAGS+=-lm 15 16run-fcvt: fcvt 17 $(call run-test,$<,$(QEMU) $<, "$< on $(TARGET_NAME)") 18 $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref) 19 20# Pauth Tests 21ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_3),) 22AARCH64_TESTS += pauth-1 pauth-2 pauth-4 23run-pauth-%: QEMU_OPTS += -cpu max 24pauth-%: CFLAGS += -march=armv8.3-a 25endif 26 27# Semihosting smoke test for linux-user 28AARCH64_TESTS += semihosting 29run-semihosting: semihosting 30 $(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)") 31 32run-plugin-semihosting-with-%: 33 $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ 34 -plugin $(PLUGIN_DIR)/$(call extract-plugin,$@) \ 35 $(call strip-plugin,$<) 2> $<.err, \ 36 "$< on $(TARGET_NAME) with $*") 37 38AARCH64_TESTS += semiconsole 39run-semiconsole: semiconsole 40 $(call skip-test, $<, "MANUAL ONLY") 41 42run-plugin-semiconsole-with-%: 43 $(call skip-test, $<, "MANUAL ONLY") 44 45TESTS += $(AARCH64_TESTS) 46