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