1 # -*- Mode: makefile -*-
3 # ppc64 specific tweaks
5 VPATH += $(SRC_PATH)/tests/tcg/ppc64
7 config-cc.mak: Makefile
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
17 $(PPC64_TESTS): CFLAGS += -mpower8-vector
22 ifneq ($(CROSS_CC_HAS_POWER10),)
23 PPC64_TESTS += byte_reverse sha512-vector
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)