6ef164188d
The reason the ppc64 and s390x test where failing was because gdb hides them although they are still accessible via regnum. We can re-arrange the test a little bit and include these two arches in our test. We also need to be a bit more careful handling remote-registers as the format isn't easily parsed with pure white space separation. Once we fold types like "long long" and "long double" into a single word we can now assert all registers are either listed or elided. Cc: Ilya Leoshkevich <iii@linux.ibm.com> Cc: <qemu-s390x@nongnu.org> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Daniel Henrique Barboza <danielhb413@gmail.com> Cc: <qemu-ppc@nongnu.org> Cc: Luis Machado <luis.machado@arm.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231121153606.542101-1-alex.bennee@linaro.org>
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# ppc64 specific tweaks
|
|
|
|
VPATH += $(SRC_PATH)/tests/tcg/ppc64
|
|
|
|
config-cc.mak: Makefile
|
|
$(quiet-@)( \
|
|
$(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \
|
|
$(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak
|
|
|
|
-include config-cc.mak
|
|
|
|
ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
|
|
PPC64_TESTS=bcdsub non_signalling_xscv
|
|
endif
|
|
$(PPC64_TESTS): CFLAGS += -mpower8-vector
|
|
|
|
ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
|
|
PPC64_TESTS += vsx_f2i_nan
|
|
endif
|
|
vsx_f2i_nan: CFLAGS += -mpower8-vector -I$(SRC_PATH)/include
|
|
|
|
PPC64_TESTS += mtfsf
|
|
PPC64_TESTS += mffsce
|
|
|
|
ifneq ($(CROSS_CC_HAS_POWER10),)
|
|
PPC64_TESTS += byte_reverse sha512-vector vector
|
|
endif
|
|
byte_reverse: CFLAGS += -mcpu=power10
|
|
run-byte_reverse: QEMU_OPTS+=-cpu POWER10
|
|
|
|
sha512-vector: CFLAGS +=-mcpu=power10 -O3
|
|
sha512-vector: sha512.c
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
|
|
|
|
run-sha512-vector: QEMU_OPTS+=-cpu POWER10
|
|
|
|
vector: CFLAGS += -mcpu=power10 -I$(SRC_PATH)/include
|
|
run-vector: QEMU_OPTS += -cpu POWER10
|
|
|
|
PPC64_TESTS += signal_save_restore_xer
|
|
PPC64_TESTS += xxspltw
|
|
PPC64_TESTS += test-aes
|
|
|
|
TESTS += $(PPC64_TESTS)
|