2021-08-05 00:51:46 +02:00
|
|
|
S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
|
|
|
|
VPATH+=$(S390X_SRC)
|
2018-08-21 04:50:58 +02:00
|
|
|
CFLAGS+=-march=zEC12 -m64
|
2022-10-12 20:27:53 +02:00
|
|
|
|
2023-03-16 17:44:28 +01:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
|
|
|
|
|
2022-10-12 20:27:53 +02:00
|
|
|
config-cc.mak: Makefile
|
|
|
|
$(quiet-@)( \
|
|
|
|
$(call cc-option,-march=z14, CROSS_CC_HAS_Z14); \
|
|
|
|
$(call cc-option,-march=z15, CROSS_CC_HAS_Z15)) 3> config-cc.mak
|
|
|
|
-include config-cc.mak
|
|
|
|
|
2018-08-21 04:50:58 +02:00
|
|
|
TESTS+=hello-s390x
|
target/s390x: fix CSST decoding and runtime alignment check
CSST is defined as:
C(0xc802, CSST, SSF, CASS, la1, a2, 0, 0, csst, 0)
It means that the first parameter is handled by in1_la1().
in1_la1() fills addr1 field, and not in1.
Furthermore, when extract32() is used for the alignment check, the
third parameter should specify the number of trailing bits that must
be 0. For FC these numbers are:
FC=0 (word, 4 bytes): 2
FC=1 (double word, 8 bytes): 3
FC=2 (quad word, 16 bytes): 4
For SC these numbers correspond to the size:
SC=0: 0
SC=1: 1
SC=2: 2
SC=3: 3
SC=4: 4
Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Message-Id: <20180821025104.19604-4-pavel.zbitskiy@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-08-21 04:51:00 +02:00
|
|
|
TESTS+=csst
|
2018-08-21 04:51:01 +02:00
|
|
|
TESTS+=ipm
|
2018-08-21 04:51:02 +02:00
|
|
|
TESTS+=exrl-trt
|
|
|
|
TESTS+=exrl-trtr
|
2018-08-21 04:51:03 +02:00
|
|
|
TESTS+=pack
|
2022-02-23 23:31:16 +01:00
|
|
|
TESTS+=mie3-compl
|
|
|
|
TESTS+=mie3-mvcrl
|
|
|
|
TESTS+=mie3-sel
|
2019-09-05 20:18:51 +02:00
|
|
|
TESTS+=mvo
|
2019-09-19 11:21:48 +02:00
|
|
|
TESTS+=mvc
|
2022-01-12 17:50:16 +01:00
|
|
|
TESTS+=shift
|
2021-07-09 18:04:59 +02:00
|
|
|
TESTS+=trap
|
2021-08-05 00:51:46 +02:00
|
|
|
TESTS+=signals-s390x
|
2022-03-14 11:42:32 +01:00
|
|
|
TESTS+=branch-relative-long
|
2022-08-17 17:05:04 +02:00
|
|
|
TESTS+=noexec
|
2022-11-01 12:13:00 +01:00
|
|
|
TESTS+=div
|
2022-10-25 23:30:08 +02:00
|
|
|
TESTS+=clst
|
2022-10-21 08:09:30 +02:00
|
|
|
TESTS+=long-double
|
2023-02-01 14:32:57 +01:00
|
|
|
TESTS+=cdsg
|
2023-03-10 12:41:57 +01:00
|
|
|
TESTS+=chrl
|
2023-03-16 18:22:05 +01:00
|
|
|
TESTS+=rxsbg
|
2023-03-16 22:07:51 +01:00
|
|
|
TESTS+=ex-relative-long
|
2023-04-27 01:58:13 +02:00
|
|
|
TESTS+=ex-branch
|
2023-06-02 00:30:27 +02:00
|
|
|
TESTS+=mxdb
|
2023-07-04 10:12:32 +02:00
|
|
|
TESTS+=epsw
|
2023-07-04 10:12:33 +02:00
|
|
|
TESTS+=larl
|
2023-07-04 10:12:35 +02:00
|
|
|
TESTS+=mdeb
|
2023-07-24 10:16:02 +02:00
|
|
|
TESTS+=cgebra
|
|
|
|
TESTS+=clgebr
|
2023-02-01 14:32:57 +01:00
|
|
|
|
|
|
|
cdsg: CFLAGS+=-pthread
|
|
|
|
cdsg: LDFLAGS+=-pthread
|
2021-08-05 00:51:46 +02:00
|
|
|
|
2023-03-16 18:22:05 +01:00
|
|
|
rxsbg: CFLAGS+=-O2
|
|
|
|
|
2023-07-24 10:16:02 +02:00
|
|
|
cgebra: LDFLAGS+=-lm
|
|
|
|
clgebr: LDFLAGS+=-lm
|
|
|
|
|
2023-03-16 17:44:28 +01:00
|
|
|
include $(S390X_SRC)/pgm-specification.mak
|
|
|
|
$(PGM_SPECIFICATION_TESTS): pgm-specification-user.o
|
|
|
|
$(PGM_SPECIFICATION_TESTS): LDFLAGS+=pgm-specification-user.o
|
|
|
|
TESTS += $(PGM_SPECIFICATION_TESTS)
|
|
|
|
|
2022-10-12 20:27:55 +02:00
|
|
|
Z13_TESTS=vistr
|
2023-05-26 20:12:38 +02:00
|
|
|
Z13_TESTS+=lcbb
|
2023-05-26 20:12:40 +02:00
|
|
|
Z13_TESTS+=locfhr
|
2023-07-24 10:16:07 +02:00
|
|
|
Z13_TESTS+=vcksm
|
2023-08-05 01:55:34 +02:00
|
|
|
Z13_TESTS+=vstl
|
2023-08-07 18:34:32 +02:00
|
|
|
Z13_TESTS+=vrep
|
2023-08-07 13:48:21 +02:00
|
|
|
Z13_TESTS+=precise-smc-user
|
2022-10-12 20:27:55 +02:00
|
|
|
$(Z13_TESTS): CFLAGS+=-march=z13 -O2
|
|
|
|
TESTS+=$(Z13_TESTS)
|
|
|
|
|
2022-10-12 20:27:53 +02:00
|
|
|
ifneq ($(CROSS_CC_HAS_Z14),)
|
2022-07-13 20:26:12 +02:00
|
|
|
Z14_TESTS=vfminmax
|
|
|
|
vfminmax: LDFLAGS+=-lm
|
|
|
|
$(Z14_TESTS): CFLAGS+=-march=z14 -O2
|
2022-10-12 20:27:53 +02:00
|
|
|
TESTS+=$(Z14_TESTS)
|
|
|
|
endif
|
2022-07-13 20:26:12 +02:00
|
|
|
|
2022-10-12 20:27:53 +02:00
|
|
|
ifneq ($(CROSS_CC_HAS_Z15),)
|
|
|
|
Z15_TESTS=vxeh2_vs
|
|
|
|
Z15_TESTS+=vxeh2_vcvt
|
|
|
|
Z15_TESTS+=vxeh2_vlstr
|
2023-08-05 01:03:19 +02:00
|
|
|
Z15_TESTS+=vxeh2_vstrs
|
2022-10-12 20:27:53 +02:00
|
|
|
$(Z15_TESTS): CFLAGS+=-march=z15 -O2
|
|
|
|
TESTS+=$(Z15_TESTS)
|
|
|
|
endif
|
2022-04-28 11:47:08 +02:00
|
|
|
|
2023-09-28 10:44:56 +02:00
|
|
|
ifneq ($(GDB),)
|
2021-08-05 00:51:46 +02:00
|
|
|
GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
|
|
|
|
|
|
|
|
run-gdbstub-signals-s390x: signals-s390x
|
|
|
|
$(call run-test, $@, $(GDB_SCRIPT) \
|
2023-09-28 10:44:56 +02:00
|
|
|
--gdb $(GDB) \
|
2021-08-05 00:51:46 +02:00
|
|
|
--qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
|
|
|
|
--bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
|
2022-09-29 13:42:03 +02:00
|
|
|
mixing signals and debugging)
|
2021-08-05 00:51:46 +02:00
|
|
|
|
2023-05-11 01:02:13 +02:00
|
|
|
hello-s390x-asm: CFLAGS+=-nostdlib
|
|
|
|
|
|
|
|
run-gdbstub-svc: hello-s390x-asm
|
|
|
|
$(call run-test, $@, $(GDB_SCRIPT) \
|
2023-09-28 10:44:56 +02:00
|
|
|
--gdb $(GDB) \
|
2023-05-11 01:02:13 +02:00
|
|
|
--qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
|
|
|
|
--bin $< --test $(S390X_SRC)/gdbstub/test-svc.py, \
|
|
|
|
single-stepping svc)
|
|
|
|
|
|
|
|
EXTRA_RUNS += run-gdbstub-signals-s390x run-gdbstub-svc
|
2021-08-05 00:51:46 +02:00
|
|
|
endif
|
2022-02-25 18:20:16 +01:00
|
|
|
|
|
|
|
# MVX versions of sha512
|
|
|
|
sha512-mvx: CFLAGS=-march=z13 -mvx -O3
|
|
|
|
sha512-mvx: sha512.c
|
|
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
TESTS+=sha512-mvx
|