xref: /openbmc/qemu/tests/tcg/s390x/Makefile.target (revision e0091133)
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
27
28Z13_TESTS=vistr
29$(Z13_TESTS): CFLAGS+=-march=z13 -O2
30TESTS+=$(Z13_TESTS)
31
32ifneq ($(CROSS_CC_HAS_Z14),)
33Z14_TESTS=vfminmax
34vfminmax: LDFLAGS+=-lm
35$(Z14_TESTS): CFLAGS+=-march=z14 -O2
36TESTS+=$(Z14_TESTS)
37endif
38
39ifneq ($(CROSS_CC_HAS_Z15),)
40Z15_TESTS=vxeh2_vs
41Z15_TESTS+=vxeh2_vcvt
42Z15_TESTS+=vxeh2_vlstr
43$(Z15_TESTS): CFLAGS+=-march=z15 -O2
44TESTS+=$(Z15_TESTS)
45endif
46
47ifneq ($(HAVE_GDB_BIN),)
48GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
49
50run-gdbstub-signals-s390x: signals-s390x
51	$(call run-test, $@, $(GDB_SCRIPT) \
52		--gdb $(HAVE_GDB_BIN) \
53		--qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
54		--bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
55	mixing signals and debugging)
56
57EXTRA_RUNS += run-gdbstub-signals-s390x
58endif
59
60# MVX versions of sha512
61sha512-mvx: CFLAGS=-march=z13 -mvx -O3
62sha512-mvx: sha512.c
63	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
64
65TESTS+=sha512-mvx
66