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 vector 24endif 25byte_reverse: CFLAGS += -mcpu=power10 26run-byte_reverse: QEMU_OPTS+=-cpu POWER10 27 28sha512-vector: CFLAGS +=-mcpu=power10 -O3 29sha512-vector: sha512.c 30 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) 31 32run-sha512-vector: QEMU_OPTS+=-cpu POWER10 33 34vector: CFLAGS += -mcpu=power10 -I$(SRC_PATH)/include 35run-vector: QEMU_OPTS += -cpu POWER10 36 37PPC64_TESTS += signal_save_restore_xer 38PPC64_TESTS += xxspltw 39PPC64_TESTS += test-aes 40 41TESTS += $(PPC64_TESTS) 42