blob: 8c3e4e4038170d674b8c9d30dd403a4b12609c26 [file] [log] [blame]
Fabiano Rosas936fda42021-02-22 16:40:35 -03001# -*- Mode: makefile -*-
2#
3# ppc64 specific tweaks
4
5VPATH += $(SRC_PATH)/tests/tcg/ppc64
Fabiano Rosas936fda42021-02-22 16:40:35 -03006
Paolo Bonzini15b273f2022-09-29 12:42:04 +01007config-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
Paolo Bonzinif0848392022-04-19 10:10:07 +010014ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
Matheus Ferst84ade982022-01-04 07:55:34 +010015PPC64_TESTS=bcdsub non_signalling_xscv
Fabiano Rosas936fda42021-02-22 16:40:35 -030016endif
Matheus Ferst84ade982022-01-04 07:55:34 +010017$(PPC64_TESTS): CFLAGS += -mpower8-vector
Fabiano Rosas936fda42021-02-22 16:40:35 -030018
John Plattsd18b0652023-11-10 18:41:42 +000019ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),)
20PPC64_TESTS += vsx_f2i_nan
21endif
22vsx_f2i_nan: CFLAGS += -mpower8-vector -I$(SRC_PATH)/include
23
Lucas Mateus Castro (alqotel)00d38802021-12-17 17:57:13 +010024PPC64_TESTS += mtfsf
Víctor Colombo7141a172022-06-29 13:29:00 -030025PPC64_TESTS += mffsce
Alex Bennée93f44892022-02-25 17:20:13 +000026
Paolo Bonzinif0848392022-04-19 10:10:07 +010027ifneq ($(CROSS_CC_HAS_POWER10),)
Shivaprasad G Bhat0eb9fcc2023-05-04 05:36:04 -040028PPC64_TESTS += byte_reverse sha512-vector vector
Alex Bennée93f44892022-02-25 17:20:13 +000029endif
30byte_reverse: CFLAGS += -mcpu=power10
Matheus Ferstec9ad112021-05-12 11:20:47 +010031run-byte_reverse: QEMU_OPTS+=-cpu POWER10
Matheus Ferstec9ad112021-05-12 11:20:47 +010032
Alex Bennéef8a4c6d2022-02-25 17:20:16 +000033sha512-vector: CFLAGS +=-mcpu=power10 -O3
34sha512-vector: sha512.c
35 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
36
37run-sha512-vector: QEMU_OPTS+=-cpu POWER10
Alex Bennéef8a4c6d2022-02-25 17:20:16 +000038
Shivaprasad G Bhat0eb9fcc2023-05-04 05:36:04 -040039vector: CFLAGS += -mcpu=power10 -I$(SRC_PATH)/include
40run-vector: QEMU_OPTS += -cpu POWER10
41
Matheus Ferst66c6b402021-10-14 19:32:31 -030042PPC64_TESTS += signal_save_restore_xer
Matheus Ferst52d324f2022-03-14 15:57:17 +010043PPC64_TESTS += xxspltw
Richard Hendersonca1e9c32023-06-01 11:28:17 -070044PPC64_TESTS += test-aes
Matheus Ferst66c6b402021-10-14 19:32:31 -030045
Fabiano Rosas936fda42021-02-22 16:40:35 -030046TESTS += $(PPC64_TESTS)