1 libmvec-supported-funcs
= acos \
18 float-advsimd-funcs
= $(libmvec-supported-funcs
)
19 double-advsimd-funcs
= $(libmvec-supported-funcs
)
20 float-sve-funcs
= $(libmvec-supported-funcs
)
21 double-sve-funcs
= $(libmvec-supported-funcs
)
23 ifeq ($(subdir
),mathvec
)
24 libmvec-support
= $(addsuffix f_advsimd
,$(float-advsimd-funcs
)) \
25 $(addsuffix _advsimd
,$(double-advsimd-funcs
)) \
26 $(addsuffix f_sve
,$(float-sve-funcs
)) \
27 $(addsuffix _sve
,$(double-sve-funcs
)) \
38 sve-cflags
= -march
=armv8-a
+sve
41 ifeq ($(build-mathvec
),yes
)
42 bench-libmvec
= $(addprefix float-advsimd-
,$(float-advsimd-funcs
)) \
43 $(addprefix double-advsimd-
,$(double-advsimd-funcs
)) \
44 $(addprefix float-sve-
,$(float-sve-funcs
)) \
45 $(addprefix double-sve-
,$(double-sve-funcs
))
48 $(objpfx
)bench-float-advsimd-
%.c
:
49 $(PYTHON
) $(..
)sysdeps
/aarch64
/fpu
/scripts
/bench_libmvec_advsimd.py
$(basename $(@F
)) > $@
50 $(objpfx
)bench-double-advsimd-
%.c
:
51 $(PYTHON
) $(..
)sysdeps
/aarch64
/fpu
/scripts
/bench_libmvec_advsimd.py
$(basename $(@F
)) > $@
52 $(objpfx
)bench-float-sve-
%.c
:
53 $(PYTHON
) $(..
)sysdeps
/aarch64
/fpu
/scripts
/bench_libmvec_sve.py
$(basename $(@F
)) > $@
54 $(objpfx
)bench-double-sve-
%.c
:
55 $(PYTHON
) $(..
)sysdeps
/aarch64
/fpu
/scripts
/bench_libmvec_sve.py
$(basename $(@F
)) > $@
57 ifeq (${STATIC-BENCHTESTS
},yes
)
58 libmvec-benchtests
= $(common-objpfx
)mathvec
/libmvec.a
$(common-objpfx
)math
/libm.a
60 libmvec-benchtests
= $(libmvec
) $(libm
)
63 $(addprefix $(objpfx
)bench-
,$(bench-libmvec
)): $(libmvec-benchtests
)
65 ifeq ($(build-mathvec
),yes
)
66 libmvec-tests
+= float-advsimd double-advsimd float-sve double-sve
69 define sve-float-cflags-template
70 CFLAGS-
$(1)f_sve.c
+= $(sve-cflags
)
71 CFLAGS-bench-float-sve-
$(1).c
+= $(sve-cflags
)
74 define sve-double-cflags-template
75 CFLAGS-
$(1)_sve.c
+= $(sve-cflags
)
76 CFLAGS-bench-double-sve-
$(1).c
+= $(sve-cflags
)
79 $(foreach f
,$(float-sve-funcs
), $(eval
$(call sve-float-cflags-template
,$(f
))))
80 $(foreach f
,$(double-sve-funcs
), $(eval
$(call sve-double-cflags-template
,$(f
))))
82 CFLAGS-test-float-sve-wrappers.c
= $(sve-cflags
)
83 CFLAGS-test-double-sve-wrappers.c
= $(sve-cflags
)