| VPATH += $(SRC_PATH)/tests/tcg/ppc64 |
| $(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \ |
| $(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak |
| ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) |
| PPC64_TESTS=bcdsub non_signalling_xscv |
| $(PPC64_TESTS): CFLAGS += -mpower8-vector |
| ifneq ($(CROSS_CC_HAS_POWER10),) |
| PPC64_TESTS += byte_reverse sha512-vector vector |
| byte_reverse: CFLAGS += -mcpu=power10 |
| run-byte_reverse: QEMU_OPTS+=-cpu POWER10 |
| sha512-vector: CFLAGS +=-mcpu=power10 -O3 |
| $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) |
| run-sha512-vector: QEMU_OPTS+=-cpu POWER10 |
| vector: CFLAGS += -mcpu=power10 -I$(SRC_PATH)/include |
| run-vector: QEMU_OPTS += -cpu POWER10 |
| PPC64_TESTS += signal_save_restore_xer |