Translations: Regenerate libc.pot
[glibc.git] / sysdeps / x86 / Makefile
blob5311b594aff62f7cb69e88657383f5ddb3790c06
1 ifeq ($(subdir),csu)
2 gen-as-const-headers += cpu-features-offsets.sym features-offsets.sym
3 endif
5 ifeq ($(subdir),elf)
6 sysdep_routines += get-cpuid-feature-leaf
7 sysdep-dl-routines += dl-get-cpu-features
8 sysdep_headers += \
9 bits/platform/features.h \
10 bits/platform/x86.h \
11 sys/platform/x86.h \
12 # sysdep_headers
14 CFLAGS-dl-get-cpu-features.os += $(rtld-early-cflags)
15 CFLAGS-get-cpuid-feature-leaf.o += $(no-stack-protector)
17 tests += \
18 tst-cpu-features-cpuinfo \
19 tst-cpu-features-cpuinfo-static \
20 tst-cpu-features-supports \
21 tst-cpu-features-supports-static \
22 tst-get-cpu-features \
23 tst-get-cpu-features-static \
24 tst-hwcap-tunables \
25 # tests
26 tests-static += \
27 tst-cpu-features-cpuinfo-static \
28 tst-cpu-features-supports-static \
29 tst-get-cpu-features-static \
30 # tests-static
31 ifeq (yes,$(have-ifunc))
32 ifeq (yes,$(have-gcc-ifunc))
33 tests += \
34 tst-ifunc-isa-1 \
35 tst-ifunc-isa-1-static \
36 # tests
37 tests-static += \
38 tst-ifunc-isa-1-static \
39 # tests-static
40 test-xfail-tst-ifunc-isa-1 = $(with-lld)
41 test-xfail-tst-ifunc-isa-1-static = $(with-lld)
42 tests += \
43 tst-ifunc-isa-2 \
44 tst-ifunc-isa-2-static \
45 # tests
46 tests-static += \
47 tst-ifunc-isa-2-static \
48 # tests-static
49 test-xfail-tst-ifunc-isa-2 = $(with-lld)
50 test-xfail-tst-ifunc-isa-2-static = $(with-lld)
51 endif
52 endif
53 ifeq (yes,$(enable-x86-isa-level))
54 tests += \
55 tst-isa-level-1 \
56 # tests
57 modules-names += \
58 tst-isa-level-mod-1-baseline \
59 tst-isa-level-mod-1-v2 \
60 tst-isa-level-mod-1-v3 \
61 tst-isa-level-mod-1-v4 \
62 # modules-names
64 # X86 ISA level baseline
65 CFLAGS-tst-isa-level-mod-1-baseline.c += -DINCLUDE_X86_ISA_LEVEL \
66 -DISA_LEVEL=0x1 \
67 -march=x86-64
68 # X86 ISA level v2
69 CFLAGS-tst-isa-level-mod-1-v2.c += -DINCLUDE_X86_ISA_LEVEL \
70 -DISA_LEVEL=0x3 \
71 -march=x86-64
72 # X86 ISA level v3
73 CFLAGS-tst-isa-level-mod-1-v3.c += -DINCLUDE_X86_ISA_LEVEL \
74 -DISA_LEVEL=0x7 \
75 -march=x86-64
76 # X86 ISA level v4
77 CFLAGS-tst-isa-level-mod-1-v4.c += -DINCLUDE_X86_ISA_LEVEL \
78 -DISA_LEVEL=0xf \
79 -march=x86-64
81 $(objpfx)tst-isa-level-1.out: $(objpfx)tst-isa-level-mod-1-baseline.so \
82 $(objpfx)tst-isa-level-mod-1-v2.so \
83 $(objpfx)tst-isa-level-mod-1-v3.so \
84 $(objpfx)tst-isa-level-mod-1-v4.so
85 endif
86 tst-ifunc-isa-2-ENV = GLIBC_TUNABLES=glibc.cpu.hwcaps=-SSE4_2,-AVX,-AVX2,-AVX512F
87 tst-ifunc-isa-2-static-ENV = $(tst-ifunc-isa-2-ENV)
88 tst-hwcap-tunables-ARGS = -- $(host-test-program-cmd)
90 CFLAGS-tst-gnu2-tls2.c += -msse
91 CFLAGS-tst-gnu2-tls2mod0.c += -msse2 -mtune=haswell
92 CFLAGS-tst-gnu2-tls2mod1.c += -msse2 -mtune=haswell
93 CFLAGS-tst-gnu2-tls2mod2.c += -msse2 -mtune=haswell
94 endif
96 ifeq ($(subdir),math)
97 tests += \
98 tst-ldbl-nonnormal-printf \
99 # tests
100 endif # $(subdir) == math
102 ifeq ($(subdir),setjmp)
103 gen-as-const-headers += jmp_buf-ssp.sym
104 sysdep_routines += __longjmp_cancel
105 endif
107 ifeq ($(subdir),string)
108 sysdep_routines += cacheinfo
110 tests += \
111 tst-memchr-rtm \
112 tst-memcmp-rtm \
113 tst-memmove-rtm \
114 tst-memrchr-rtm \
115 tst-memset-rtm \
116 tst-strcasecmp-rtm \
117 tst-strchr-rtm \
118 tst-strcmp-rtm \
119 tst-strcpy-rtm \
120 tst-strlen-rtm \
121 tst-strncasecmp-rtm \
122 tst-strncmp-rtm \
123 tst-strrchr-rtm \
124 tst-wcscmp-rtm \
125 tst-wcsncmp-rtm \
126 # tests
128 CFLAGS-tst-memchr-rtm.c += -mrtm
129 CFLAGS-tst-memcmp-rtm.c += -mrtm
130 CFLAGS-tst-memmove-rtm.c += -mrtm
131 CFLAGS-tst-memrchr-rtm.c += -mrtm
132 CFLAGS-tst-memset-rtm.c += -mrtm
133 CFLAGS-tst-strcasecmp-rtm.c += -mrtm
134 CFLAGS-tst-strchr-rtm.c += -mrtm
135 CFLAGS-tst-strcmp-rtm.c += -mrtm
136 CFLAGS-tst-strcpy-rtm.c += -mrtm
137 CFLAGS-tst-strlen-rtm.c += -mrtm
138 CFLAGS-tst-strncasecmp-rtm.c += -mrtm -Wno-error
139 CFLAGS-tst-strncmp-rtm.c += -mrtm -Wno-error
140 CFLAGS-tst-strrchr-rtm.c += -mrtm
141 CFLAGS-tst-wcscmp-rtm.c += -mrtm
142 CFLAGS-tst-wcsncmp-rtm.c += -mrtm -Wno-error
143 endif
145 ifeq ($(subdir),posix)
146 tests += \
147 tst-sysconf-cache-linesize \
148 tst-sysconf-cache-linesize-static \
149 # tests
150 tests-static += \
151 tst-sysconf-cache-linesize-static \
152 # tests-static
153 endif