Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / s390x / Makefile.target
blob72ad309b2730c67932cb697cb81108e690878367
1 S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
2 VPATH+=$(S390X_SRC)
3 CFLAGS+=-march=zEC12 -m64
5 config-cc.mak: Makefile
6         $(quiet-@)( \
7             $(call cc-option,-march=z14, CROSS_CC_HAS_Z14); \
8             $(call cc-option,-march=z15, CROSS_CC_HAS_Z15)) 3> config-cc.mak
9 -include config-cc.mak
11 TESTS+=hello-s390x
12 TESTS+=csst
13 TESTS+=ipm
14 TESTS+=exrl-trt
15 TESTS+=exrl-trtr
16 TESTS+=pack
17 TESTS+=mie3-compl
18 TESTS+=mie3-mvcrl
19 TESTS+=mie3-sel
20 TESTS+=mvo
21 TESTS+=mvc
22 TESTS+=shift
23 TESTS+=trap
24 TESTS+=signals-s390x
25 TESTS+=branch-relative-long
26 TESTS+=noexec
27 TESTS+=div
28 TESTS+=clst
29 TESTS+=long-double
30 TESTS+=cdsg
32 cdsg: CFLAGS+=-pthread
33 cdsg: LDFLAGS+=-pthread
35 Z13_TESTS=vistr
36 $(Z13_TESTS): CFLAGS+=-march=z13 -O2
37 TESTS+=$(Z13_TESTS)
39 ifneq ($(CROSS_CC_HAS_Z14),)
40 Z14_TESTS=vfminmax
41 vfminmax: LDFLAGS+=-lm
42 $(Z14_TESTS): CFLAGS+=-march=z14 -O2
43 TESTS+=$(Z14_TESTS)
44 endif
46 ifneq ($(CROSS_CC_HAS_Z15),)
47 Z15_TESTS=vxeh2_vs
48 Z15_TESTS+=vxeh2_vcvt
49 Z15_TESTS+=vxeh2_vlstr
50 $(Z15_TESTS): CFLAGS+=-march=z15 -O2
51 TESTS+=$(Z15_TESTS)
52 endif
54 ifneq ($(HAVE_GDB_BIN),)
55 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
57 run-gdbstub-signals-s390x: signals-s390x
58         $(call run-test, $@, $(GDB_SCRIPT) \
59                 --gdb $(HAVE_GDB_BIN) \
60                 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
61                 --bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
62         mixing signals and debugging)
64 EXTRA_RUNS += run-gdbstub-signals-s390x
65 endif
67 # MVX versions of sha512
68 sha512-mvx: CFLAGS=-march=z13 -mvx -O3
69 sha512-mvx: sha512.c
70         $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
72 TESTS+=sha512-mvx