xref: /openbmc/qemu/tests/tcg/ppc64le/Makefile.target (revision 764ecf77)
1# -*- Mode: makefile -*-
2#
3# ppc64le specific tweaks
4
5VPATH += $(SRC_PATH)/tests/tcg/ppc64le
6
7ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER8_VECTOR),)
8PPC64LE_TESTS=bcdsub
9endif
10bcdsub: CFLAGS += -mpower8-vector
11
12PPC64LE_TESTS += byte_reverse
13ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER10),)
14run-byte_reverse: QEMU_OPTS+=-cpu POWER10
15run-plugin-byte_reverse-with-%: QEMU_OPTS+=-cpu POWER10
16else
17byte_reverse:
18	$(call skip-test, "BUILD of $@", "missing compiler support")
19run-byte_reverse:
20	$(call skip-test, "RUN of byte_reverse", "not built")
21run-plugin-byte_reverse-with-%:
22	$(call skip-test, "RUN of byte_reverse ($*)", "not built")
23endif
24
25PPC64LE_TESTS += signal_save_restore_xer
26
27TESTS += $(PPC64LE_TESTS)
28