Vector sin for x86_64 and tests.
[glibc.git] / sysdeps / x86_64 / fpu / Makefile
blob25f8e336f58f4574feeafeae700a3e30109607a7
1 ifeq ($(subdir),mathvec)
2 libmvec-support += svml_d_cos2_core svml_d_cos4_core_avx \
3 svml_d_cos4_core svml_d_cos8_core \
4 svml_d_cos_data svml_d_sin2_core svml_d_sin4_core_avx \
5 svml_d_sin4_core svml_d_sin8_core svml_d_sin_data \
6 svml_s_cosf4_core svml_s_cosf8_core_avx \
7 svml_s_cosf8_core svml_s_cosf16_core svml_s_cosf_data \
8 init-arch
9 endif
11 # Variables for libmvec tests.
12 ifeq ($(subdir),math)
13 ifeq ($(build-mathvec),yes)
14 libmvec-tests += double-vlen2 double-vlen4 double-vlen4-avx2 \
15 float-vlen4 float-vlen8 float-vlen8-avx2
17 ifeq (yes,$(config-cflags-avx512))
18 libmvec-tests += double-vlen8 float-vlen16
19 endif
21 double-vlen2-arch-ext-cflags = -msse4
22 double-vlen4-arch-ext-cflags = -mavx
23 double-vlen4-arch-ext2-cflags = -mavx2
24 double-vlen8-arch-ext-cflags = -mavx512f
26 float-vlen4-arch-ext-cflags = -msse4
27 float-vlen8-arch-ext-cflags = -mavx
28 float-vlen8-arch-ext2-cflags = -mavx2
29 float-vlen16-arch-ext-cflags = -mavx512f
31 CFLAGS-test-double-vlen4-avx2.c = $(libm-test-vec-cflags)
32 CFLAGS-test-double-vlen4-avx2-wrappers.c = $(double-vlen4-arch-ext2-cflags)
34 CFLAGS-test-float-vlen8-avx2.c = $(libm-test-vec-cflags)
35 CFLAGS-test-float-vlen8-avx2-wrappers.c = $(float-vlen8-arch-ext2-cflags)
37 endif
38 endif