1 S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
3 CFLAGS+=-march=zEC12 -m64
6 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
8 config-cc.mak: Makefile
10 $(call cc-option,-march=z14, CROSS_CC_HAS_Z14); \
11 $(call cc-option,-march=z15, CROSS_CC_HAS_Z15)) 3> config-cc.mak
12 -include config-cc.mak
28 TESTS+=branch-relative-long
36 TESTS+=ex-relative-long
46 TESTS+=add-logical-with-carry
53 cdsg: CFLAGS+=-pthread
54 cdsg: LDFLAGS+=-pthread
61 include $(S390X_SRC)/pgm-specification.mak
62 $(PGM_SPECIFICATION_TESTS): pgm-specification-user.o
63 $(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-user.o
64 TESTS += $(PGM_SPECIFICATION_TESTS)
72 Z13_TESTS+=precise-smc-user
73 $(Z13_TESTS): CFLAGS+=-march=z13 -O2
76 ifneq ($(CROSS_CC_HAS_Z14),)
78 vfminmax: LDFLAGS+=-lm
79 $(Z14_TESTS): CFLAGS+=-march=z14 -O2
83 ifneq ($(CROSS_CC_HAS_Z15),)
86 Z15_TESTS+=vxeh2_vlstr
87 Z15_TESTS+=vxeh2_vstrs
88 $(Z15_TESTS): CFLAGS+=-march=z15 -O2
93 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
95 run-gdbstub-signals-s390x: signals-s390x
96 $(call run-test, $@, $(GDB_SCRIPT) \
98 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
99 --bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
100 mixing signals and debugging)
102 hello-s390x-asm: CFLAGS+=-nostdlib
104 run-gdbstub-svc: hello-s390x-asm
105 $(call run-test, $@, $(GDB_SCRIPT) \
107 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
108 --bin $< --test $(S390X_SRC)/gdbstub/test-svc.py, \
111 EXTRA_RUNS += run-gdbstub-signals-s390x run-gdbstub-svc
114 # MVX versions of sha512
115 sha512-mvx: CFLAGS=-march=z13 -mvx -O3
117 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)