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