target/mips: Simplify meson TCG rules
[qemu/ar7.git] / tests / tcg / aarch64 / Makefile.target
blob928357b10a90aa10df0fe5d6425d8980662bb831
1 # -*- Mode: makefile -*-
3 # AArch64 specific tweaks
5 ARM_SRC=$(SRC_PATH)/tests/tcg/arm
6 VPATH           += $(ARM_SRC)
8 AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64
9 VPATH           += $(AARCH64_SRC)
11 # Float-convert Tests
12 AARCH64_TESTS=fcvt
14 fcvt: LDFLAGS+=-lm
16 run-fcvt: fcvt
17         $(call run-test,$<,$(QEMU) $<, "$< on $(TARGET_NAME)")
18         $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref)
20 # Pauth Tests
21 ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_3),)
22 AARCH64_TESTS += pauth-1 pauth-2 pauth-4 pauth-5
23 pauth-%: CFLAGS += -march=armv8.3-a
24 run-pauth-%: QEMU_OPTS += -cpu max
25 run-plugin-pauth-%: QEMU_OPTS += -cpu max
26 endif
28 # BTI Tests
29 # bti-1 tests the elf notes, so we require special compiler support.
30 ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_BTI),)
31 AARCH64_TESTS += bti-1
32 bti-1: CFLAGS += -mbranch-protection=standard
33 bti-1: LDFLAGS += -nostdlib
34 endif
35 # bti-2 tests PROT_BTI, so no special compiler support required.
36 AARCH64_TESTS += bti-2
38 # MTE Tests
39 ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_MTE),)
40 AARCH64_TESTS += mte-1 mte-2 mte-3 mte-4 mte-5 mte-6
41 mte-%: CFLAGS += -march=armv8.5-a+memtag
42 endif
44 ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_SVE),)
45 # System Registers Tests
46 AARCH64_TESTS += sysregs
47 sysregs: CFLAGS+=-march=armv8.1-a+sve
49 # SVE ioctl test
50 AARCH64_TESTS += sve-ioctls
51 sve-ioctls: CFLAGS+=-march=armv8.1-a+sve
53 ifneq ($(HAVE_GDB_BIN),)
54 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
56 run-gdbstub-sysregs: sysregs
57         $(call run-test, $@, $(GDB_SCRIPT) \
58                 --gdb $(HAVE_GDB_BIN) \
59                 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
60                 --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve.py, \
61         "basic gdbstub SVE support")
63 run-gdbstub-sve-ioctls: sve-ioctls
64         $(call run-test, $@, $(GDB_SCRIPT) \
65                 --gdb $(HAVE_GDB_BIN) \
66                 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
67                 --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve-ioctl.py, \
68         "basic gdbstub SVE ZLEN support")
70 EXTRA_RUNS += run-gdbstub-sysregs run-gdbstub-sve-ioctls
71 endif
73 endif
75 TESTS += $(AARCH64_TESTS)