1# -*- Mode: makefile -*- 2# 3# ppc64 specific tweaks 4 5VPATH += $(SRC_PATH)/tests/tcg/ppc64 6VPATH += $(SRC_PATH)/tests/tcg/ppc64le 7 8ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) 9PPC64_TESTS=bcdsub non_signalling_xscv 10endif 11$(PPC64_TESTS): CFLAGS += -mpower8-vector 12 13PPC64_TESTS += mtfsf 14PPC64_TESTS += mffsce 15 16ifneq ($(CROSS_CC_HAS_POWER10),) 17PPC64_TESTS += byte_reverse sha512-vector 18endif 19byte_reverse: CFLAGS += -mcpu=power10 20run-byte_reverse: QEMU_OPTS+=-cpu POWER10 21run-plugin-byte_reverse-with-%: QEMU_OPTS+=-cpu POWER10 22 23sha512-vector: CFLAGS +=-mcpu=power10 -O3 24sha512-vector: sha512.c 25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) 26 27run-sha512-vector: QEMU_OPTS+=-cpu POWER10 28run-plugin-sha512-vector-with-%: QEMU_OPTS+=-cpu POWER10 29 30PPC64_TESTS += signal_save_restore_xer 31PPC64_TESTS += xxspltw 32 33TESTS += $(PPC64_TESTS) 34