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