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 pauth-5 23pauth-%: CFLAGS += -march=armv8.3-a 24run-pauth-%: QEMU_OPTS += -cpu max 25run-plugin-pauth-%: QEMU_OPTS += -cpu max 26endif 27 28# Semihosting smoke test for linux-user 29AARCH64_TESTS += semihosting 30run-semihosting: semihosting 31 $(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)") 32 33run-plugin-semihosting-with-%: 34 $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ 35 -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \ 36 $(call strip-plugin,$<) 2> $<.err, \ 37 "$< on $(TARGET_NAME) with $*") 38 39AARCH64_TESTS += semiconsole 40run-semiconsole: semiconsole 41 $(call skip-test, $<, "MANUAL ONLY") 42 43run-plugin-semiconsole-with-%: 44 $(call skip-test, $<, "MANUAL ONLY") 45 46ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_SVE),) 47# System Registers Tests 48AARCH64_TESTS += sysregs 49sysregs: CFLAGS+=-march=armv8.1-a+sve 50 51# SVE ioctl test 52AARCH64_TESTS += sve-ioctls 53sve-ioctls: CFLAGS+=-march=armv8.1-a+sve 54 55ifneq ($(HAVE_GDB_BIN),) 56GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py 57 58run-gdbstub-sysregs: sysregs 59 $(call run-test, $@, $(GDB_SCRIPT) \ 60 --gdb $(HAVE_GDB_BIN) \ 61 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ 62 --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve.py, \ 63 "basic gdbstub SVE support") 64 65run-gdbstub-sve-ioctls: sve-ioctls 66 $(call run-test, $@, $(GDB_SCRIPT) \ 67 --gdb $(HAVE_GDB_BIN) \ 68 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ 69 --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve-ioctl.py, \ 70 "basic gdbstub SVE ZLEN support") 71 72EXTRA_RUNS += run-gdbstub-sysregs run-gdbstub-sve-ioctls 73endif 74 75endif 76 77TESTS += $(AARCH64_TESTS) 78