xref: /openbmc/qemu/tests/tcg/s390x/Makefile.target (revision 93e0932b)
1S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
2VPATH+=$(S390X_SRC)
3CFLAGS+=-march=zEC12 -m64
4
5config-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
10
11TESTS+=hello-s390x
12TESTS+=csst
13TESTS+=ipm
14TESTS+=exrl-trt
15TESTS+=exrl-trtr
16TESTS+=pack
17TESTS+=mie3-compl
18TESTS+=mie3-mvcrl
19TESTS+=mie3-sel
20TESTS+=mvo
21TESTS+=mvc
22TESTS+=shift
23TESTS+=trap
24TESTS+=signals-s390x
25TESTS+=branch-relative-long
26TESTS+=noexec
27TESTS+=div
28TESTS+=clst
29TESTS+=long-double
30TESTS+=cdsg
31
32cdsg: CFLAGS+=-pthread
33cdsg: LDFLAGS+=-pthread
34
35Z13_TESTS=vistr
36$(Z13_TESTS): CFLAGS+=-march=z13 -O2
37TESTS+=$(Z13_TESTS)
38
39ifneq ($(CROSS_CC_HAS_Z14),)
40Z14_TESTS=vfminmax
41vfminmax: LDFLAGS+=-lm
42$(Z14_TESTS): CFLAGS+=-march=z14 -O2
43TESTS+=$(Z14_TESTS)
44endif
45
46ifneq ($(CROSS_CC_HAS_Z15),)
47Z15_TESTS=vxeh2_vs
48Z15_TESTS+=vxeh2_vcvt
49Z15_TESTS+=vxeh2_vlstr
50$(Z15_TESTS): CFLAGS+=-march=z15 -O2
51TESTS+=$(Z15_TESTS)
52endif
53
54ifneq ($(HAVE_GDB_BIN),)
55GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
56
57run-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)
63
64EXTRA_RUNS += run-gdbstub-signals-s390x
65endif
66
67# MVX versions of sha512
68sha512-mvx: CFLAGS=-march=z13 -mvx -O3
69sha512-mvx: sha512.c
70	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
71
72TESTS+=sha512-mvx
73