Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / ppc64 / Makefile.target
blobf081f1c6835d92f96ff5a8cbda3a8b16b2c4b54d
1 # -*- Mode: makefile -*-
3 # ppc64 specific tweaks
5 VPATH += $(SRC_PATH)/tests/tcg/ppc64
7 config-cc.mak: Makefile
8         $(quiet-@)( \
9             $(call cc-option,-mpower8-vector,   CROSS_CC_HAS_POWER8_VECTOR); \
10             $(call cc-option,-mpower10,         CROSS_CC_HAS_POWER10)) 3> config-cc.mak
12 -include config-cc.mak
14 ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
15 PPC64_TESTS=bcdsub non_signalling_xscv
16 endif
17 $(PPC64_TESTS): CFLAGS += -mpower8-vector
19 PPC64_TESTS += mtfsf
20 PPC64_TESTS += mffsce
22 ifneq ($(CROSS_CC_HAS_POWER10),)
23 PPC64_TESTS += byte_reverse sha512-vector
24 endif
25 byte_reverse: CFLAGS += -mcpu=power10
26 run-byte_reverse: QEMU_OPTS+=-cpu POWER10
27 run-plugin-byte_reverse-with-%: QEMU_OPTS+=-cpu POWER10
29 sha512-vector: CFLAGS +=-mcpu=power10 -O3
30 sha512-vector: sha512.c
31         $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
33 run-sha512-vector: QEMU_OPTS+=-cpu POWER10
34 run-plugin-sha512-vector-with-%: QEMU_OPTS+=-cpu POWER10
36 PPC64_TESTS += signal_save_restore_xer
37 PPC64_TESTS += xxspltw
39 TESTS += $(PPC64_TESTS)