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