• Home
  • Raw
  • Download

Lines Matching +full:- +full:dm

1 // RUN: %clang -target armv8a-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
2 // CHECK-V8A: #define __ARMEL__ 1
3 // CHECK-V8A: #define __ARM_ARCH 8
4 // CHECK-V8A: #define __ARM_ARCH_8A__ 1
5 // CHECK-V8A: #define __ARM_FEATURE_CRC32 1
6 // CHECK-V8A: #define __ARM_FEATURE_DIRECTED_ROUNDING 1
7 // CHECK-V8A: #define __ARM_FEATURE_NUMERIC_MAXMIN 1
8 // CHECK-V8A: #define __ARM_FP 0xE
9 // CHECK-V8A: #define __ARM_FP16_ARGS 1
10 // CHECK-V8A: #define __ARM_FP16_FORMAT_IEEE 1
12 // RUN: %clang -target armv7a-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
13 // CHECK-V7: #define __ARMEL__ 1
14 // CHECK-V7: #define __ARM_ARCH 7
15 // CHECK-V7: #define __ARM_ARCH_7A__ 1
16 // CHECK-V7-NOT: __ARM_FEATURE_CRC32
17 // CHECK-V7-NOT: __ARM_FEATURE_NUMERIC_MAXMIN
18 // CHECK-V7-NOT: __ARM_FEATURE_DIRECTED_ROUNDING
19 // CHECK-V7: #define __ARM_FP 0xC
21 // RUN: %clang -target x86_64-apple-macosx10.10 -arch armv7s -x c -E -dM %s -o - | FileCheck -match
22 // CHECK-V7S: #define __ARMEL__ 1
23 // CHECK-V7S: #define __ARM_ARCH 7
24 // CHECK-V7S: #define __ARM_ARCH_7S__ 1
25 // CHECK-V7S-NOT: __ARM_FEATURE_CRC32
26 // CHECK-V7S-NOT: __ARM_FEATURE_NUMERIC_MAXMIN
27 // CHECK-V7S-NOT: __ARM_FEATURE_DIRECTED_ROUNDING
28 // CHECK-V7S: #define __ARM_FP 0xE
30 // RUN: %clang -target armv8a -mfloat-abi=hard -x c -E -dM %s | FileCheck -match-full-lines --check
31 // CHECK-V8-BAREHF: #define __ARMEL__ 1
32 // CHECK-V8-BAREHF: #define __ARM_ARCH 8
33 // CHECK-V8-BAREHF: #define __ARM_ARCH_8A__ 1
34 // CHECK-V8-BAREHF: #define __ARM_FEATURE_CRC32 1
35 // CHECK-V8-BAREHF: #define __ARM_FEATURE_DIRECTED_ROUNDING 1
36 // CHECK-V8-BAREHF: #define __ARM_FEATURE_NUMERIC_MAXMIN 1
37 // CHECK-V8-BAREHP: #define __ARM_FP 0xE
38 // CHECK-V8-BAREHF: #define __ARM_NEON__ 1
39 // CHECK-V8-BAREHF: #define __ARM_PCS_VFP 1
40 // CHECK-V8-BAREHF: #define __VFP_FP__ 1
42 // RUN: %clang -target armv8a -mfloat-abi=hard -mfpu=fp-armv8 -x c -E -dM %s | FileCheck -match-ful…
43 // CHECK-V8-BAREHF-FP-NOT: __ARM_NEON__ 1
44 // CHECK-V8-BAREHP-FP: #define __ARM_FP 0xE
45 // CHECK-V8-BAREHF-FP: #define __VFP_FP__ 1
47 …N: %clang -target armv8a -mfloat-abi=hard -mfpu=neon-fp-armv8 -x c -E -dM %s | FileCheck -match-fu…
48 …clang -target armv8a -mfloat-abi=hard -mfpu=crypto-neon-fp-armv8 -x c -E -dM %s | FileCheck -match
49 // CHECK-V8-BAREHP-NEON-FP: #define __ARM_FP 0xE
50 // CHECK-V8-BAREHF-NEON-FP: #define __ARM_NEON__ 1
51 // CHECK-V8-BAREHF-NEON-FP: #define __VFP_FP__ 1
53 // RUN: %clang -target armv8a -mnocrc -x c -E -dM %s | FileCheck -match-full-lines --check-prefix=C…
54 // CHECK-V8-NOCRC-NOT: __ARM_FEATURE_CRC32 1
56 // Check that -mhwdiv works properly for armv8/thumbv8 (enabled by default).
58 // RUN: %clang -target armv8 -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=V8 %s
59 // RUN: %clang -target armv8 -mthumb -x c -E -dM %s -o - | FileCheck -match-full-lines --check-pref…
60 // RUN: %clang -target armv8-eabi -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=…
61 // RUN: %clang -target armv8-eabi -mthumb -x c -E -dM %s -o - | FileCheck -match-full-lines --check
64 // RUN: %clang -target armv8 -mhwdiv=none -x c -E -dM %s -o - | FileCheck -match-full-lines --check
65 // RUN: %clang -target armv8 -mthumb -mhwdiv=none -x c -E -dM %s -o - | FileCheck -match-full-lines…
66 // RUN: %clang -target armv8 -mhwdiv=thumb -x c -E -dM %s -o - | FileCheck -match-full-lines --chec…
67 // RUN: %clang -target armv8 -mthumb -mhwdiv=arm -x c -E -dM %s -o - | FileCheck -match-full-lines
68 // NOHWDIV-V8-NOT:#define __ARM_ARCH_EXT_IDIV__
70 // RUN: %clang -target armv8a -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=V8A …
71 // RUN: %clang -target armv8a -mthumb -x c -E -dM %s -o - | FileCheck -match-full-lines --check-pre…
72 // RUN: %clang -target armv8a-eabi -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix…
73 // RUN: %clang -target armv8a-eabi -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix…
77 // RUN: %clang -target armv8m.base-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines…
81 // V8M_BASELINE-NOT: __ARM_ARCH_ISA_ARM
84 // V8M_BASELINE-NOT: __ARM_FEATURE_CRC32
85 // V8M_BASELINE-NOT: __ARM_FEATURE_DSP
86 // V8M_BASELINE-NOT: __ARM_FP 0x{{.*}}
87 // V8M_BASELINE-NOT: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
89 // RUN: %clang -target armv8m.main-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines…
93 // V8M_MAINLINE-NOT: __ARM_ARCH_ISA_ARM
96 // V8M_MAINLINE-NOT: __ARM_FEATURE_CRC32
97 // V8M_MAINLINE-NOT: __ARM_FEATURE_DSP
101 // RUN: %clang -target arm-none-linux-gnu -march=armv8-m.main+dsp -x c -E -dM %s -o - | FileCheck -
105 // V8M_MAINLINE_DSP-NOT: __ARM_ARCH_ISA_ARM
108 // V8M_MAINLINE_DSP-NOT: __ARM_FEATURE_CRC32
113 // RUN: %clang -target arm-none-linux-gnu -x c -E -dM %s -o - | FileCheck -match-full-lines --check
114 // CHECK-DEFS:#define __ARM_PCS 1
115 // CHECK-DEFS:#define __ARM_SIZEOF_MINIMAL_ENUM 4
116 // CHECK-DEFS:#define __ARM_SIZEOF_WCHAR_T 4
118 // RUN: %clang -target arm-none-linux-gnu -fno-math-errno -fno-signed-zeros\
119 // RUN: -fno-trapping-math -fassociative-math -freciprocal-math\
120 // RUN: -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=CHECK-FASTMATH %s
121 // RUN: %clang -target arm-none-linux-gnu -ffast-math -x c -E -dM %s -o -\
122 // RUN: | FileCheck -match-full-lines --check-prefix=CHECK-FASTMATH %s
123 // CHECK-FASTMATH: #define __ARM_FP_FAST 1
125 // RUN: %clang -target arm-none-linux-gnu -fshort-wchar -x c -E -dM %s -o - | FileCheck -match-full
126 // CHECK-SHORTWCHAR:#define __ARM_SIZEOF_WCHAR_T 2
128 // RUN: %clang -target arm-none-linux-gnu -fshort-enums -x c -E -dM %s -o - | FileCheck -match-full
129 // CHECK-SHORTENUMS:#define __ARM_SIZEOF_MINIMAL_ENUM 1
131 // Test that -mhwdiv has the right effect for a target CPU which has hwdiv enabled by default.
132 // RUN: %clang -target armv7 -mcpu=cortex-a15 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
133 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a15 -x c -E -dM %s -o - | FileCheck -match-full-l…
134 // RUN: %clang -target armv7 -mcpu=cortex-a15 -mhwdiv=arm -x c -E -dM %s -o - | FileCheck -match-fu…
135 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a15 -mhwdiv=thumb -x c -E -dM %s -o - | FileCheck…
138 // RUN: %clang -target arm -mcpu=cortex-a15 -mhwdiv=thumb -x c -E -dM %s -o - | FileCheck -match-fu…
139 // RUN: %clang -target arm -mthumb -mcpu=cortex-a15 -mhwdiv=arm -x c -E -dM %s -o - | FileCheck -ma…
140 // RUN: %clang -target arm -mcpu=cortex-a15 -mhwdiv=none -x c -E -dM %s -o - | FileCheck -match-ful…
141 // RUN: %clang -target arm -mthumb -mcpu=cortex-a15 -mhwdiv=none -x c -E -dM %s -o - | FileCheck -m…
142 // NOHWDIV-NOT:#define __ARM_ARCH_EXT_IDIV__
145 // Check that -mfpu works properly for Cortex-A7 (enabled by default).
146 …/ RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a7 -x c -E -dM %s -o - | FileCheck -ma…
147 …N: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a7 -x c -E -dM %s -o - | FileCheck…
148 // DEFAULTFPU-A7:#define __ARM_FP 0xE
149 // DEFAULTFPU-A7:#define __ARM_NEON__ 1
150 // DEFAULTFPU-A7:#define __ARM_VFPV4__ 1
152 …N: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a7 -mfpu=none -x c -E -dM %s -o - | FileCh…
153 …clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a7 -mfpu=none -x c -E -dM %s -o - | Fi…
154 // FPUNONE-A7-NOT:#define __ARM_FP 0x{{.*}}
155 // FPUNONE-A7-NOT:#define __ARM_NEON__ 1
156 // FPUNONE-A7-NOT:#define __ARM_VFPV4__ 1
158 …N: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a7 -mfpu=vfp4 -x c -E -dM %s -o - | FileCh…
159 …clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a7 -mfpu=vfp4 -x c -E -dM %s -o - | Fi…
160 // NONEON-A7:#define __ARM_FP 0xE
161 // NONEON-A7-NOT:#define __ARM_NEON__ 1
162 // NONEON-A7:#define __ARM_VFPV4__ 1
164 // Check that -mfpu works properly for Cortex-A5 (enabled by default).
165 …/ RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a5 -x c -E -dM %s -o - | FileCheck -ma…
166 …N: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a5 -x c -E -dM %s -o - | FileCheck…
167 // DEFAULTFPU-A5:#define __ARM_FP 0xE
168 // DEFAULTFPU-A5:#define __ARM_NEON__ 1
169 // DEFAULTFPU-A5:#define __ARM_VFPV4__ 1
171 …N: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a5 -mfpu=none -x c -E -dM %s -o - | FileCh…
172 …clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a5 -mfpu=none -x c -E -dM %s -o - | Fi…
173 // FPUNONE-A5-NOT:#define __ARM_FP 0x{{.*}}
174 // FPUNONE-A5-NOT:#define __ARM_NEON__ 1
175 // FPUNONE-A5-NOT:#define __ARM_VFPV4__ 1
177 … %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a5 -mfpu=vfp4-d16 -x c -E -dM %s -o - | File…
178 …ang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a5 -mfpu=vfp4-d16 -x c -E -dM %s -o - | …
179 // NONEON-A5:#define __ARM_FP 0xE
180 // NONEON-A5-NOT:#define __ARM_NEON__ 1
181 // NONEON-A5:#define __ARM_VFPV4__ 1
185 // RUN: %clang -target armv4t -mcpu=ep9312 -x c -E -dM %s -o - | FileCheck -match-full-lines --chec…
186 // A4T-NOT:#define __ARM_FEATURE_DSP
187 // A4T-NOT:#define __ARM_FP 0x{{.*}}
190 // RUN: %clang -target armv5 -mcpu=arm10tdmi -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
191 // A5T-NOT:#define __ARM_FEATURE_DSP
192 // A5T-NOT:#define __ARM_FP 0x{{.*}}
194 // Test whether predefines are as expected when targeting cortex-a5.
195 // RUN: %clang -target armv7 -mcpu=cortex-a5 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
196 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a5 -x c -E -dM %s -o - | FileCheck -match-full-li…
199 // A5-NOT:#define __ARM_ARCH_EXT_IDIV__
201 // A5-NOT: #define __ARM_FEATURE_DIRECTED_ROUNDING
203 // A5-NOT: #define __ARM_FEATURE_NUMERIC_MAXMIN
206 // Test whether predefines are as expected when targeting cortex-a7.
207 // RUN: %clang -target armv7k -mcpu=cortex-a7 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
208 // RUN: %clang -target armv7k -mthumb -mcpu=cortex-a7 -x c -E -dM %s -o - | FileCheck -match-full-l…
215 // Test whether predefines are as expected when targeting cortex-a7.
216 // RUN: %clang -target x86_64-apple-darwin -arch armv7k -x c -E -dM %s -o - | FileCheck -match-full
226 // Test whether predefines are as expected when targeting cortex-a8.
227 // RUN: %clang -target armv7 -mcpu=cortex-a8 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
228 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a8 -x c -E -dM %s -o - | FileCheck -match-full-li…
229 // A8-NOT:#define __ARM_ARCH_EXT_IDIV__
233 // Test whether predefines are as expected when targeting cortex-a9.
234 // RUN: %clang -target armv7 -mcpu=cortex-a9 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
235 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a9 -x c -E -dM %s -o - | FileCheck -match-full-li…
236 // A9-NOT:#define __ARM_ARCH_EXT_IDIV__
241 // Check that -mfpu works properly for Cortex-A12 (enabled by default).
242 … RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a12 -x c -E -dM %s -o - | FileCheck -ma…
243 …: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a12 -x c -E -dM %s -o - | FileCheck…
244 // DEFAULTFPU-A12:#define __ARM_FP 0xE
245 // DEFAULTFPU-A12:#define __ARM_NEON__ 1
246 // DEFAULTFPU-A12:#define __ARM_VFPV4__ 1
248 …: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a12 -mfpu=none -x c -E -dM %s -o - | FileCh…
249 …lang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a12 -mfpu=none -x c -E -dM %s -o - | Fi…
250 // FPUNONE-A12-NOT:#define __ARM_FP 0x{{.*}}
251 // FPUNONE-A12-NOT:#define __ARM_NEON__ 1
252 // FPUNONE-A12-NOT:#define __ARM_VFPV4__ 1
254 // Test whether predefines are as expected when targeting cortex-a12.
255 // RUN: %clang -target armv7 -mcpu=cortex-a12 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
256 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a12 -x c -E -dM %s -o - | FileCheck -match-full-l…
264 // Test whether predefines are as expected when targeting cortex-a15.
265 // RUN: %clang -target armv7 -mcpu=cortex-a15 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
266 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a15 -x c -E -dM %s -o - | FileCheck -match-full-l…
271 // Check that -mfpu works properly for Cortex-A17 (enabled by default).
272 … RUN: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a17 -x c -E -dM %s -o - | FileCheck -ma…
273 …: %clang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a17 -x c -E -dM %s -o - | FileCheck…
274 // DEFAULTFPU-A17:#define __ARM_FP 0xE
275 // DEFAULTFPU-A17:#define __ARM_NEON__ 1
276 // DEFAULTFPU-A17:#define __ARM_VFPV4__ 1
278 …: %clang -target armv7-none-linux-gnueabi -mcpu=cortex-a17 -mfpu=none -x c -E -dM %s -o - | FileCh…
279 …lang -target armv7-none-linux-gnueabi -mthumb -mcpu=cortex-a17 -mfpu=none -x c -E -dM %s -o - | Fi…
280 // FPUNONE-A17-NOT:#define __ARM_FP 0x{{.*}}
281 // FPUNONE-A17-NOT:#define __ARM_NEON__ 1
282 // FPUNONE-A17-NOT:#define __ARM_VFPV4__ 1
284 // Test whether predefines are as expected when targeting cortex-a17.
285 // RUN: %clang -target armv7 -mcpu=cortex-a17 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
286 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-a17 -x c -E -dM %s -o - | FileCheck -match-full-l…
295 // RUN: %clang -target armv7s -mcpu=swift -x c -E -dM %s -o - | FileCheck -match-full-lines --check
296 // RUN: %clang -target armv7s -mthumb -mcpu=swift -x c -E -dM %s -o - | FileCheck -match-full-lines…
301 // Test whether predefines are as expected when targeting ARMv8-A Cortex implementations
302 // RUN: %clang -target armv8 -mcpu=cortex-a32 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
303 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a32 -x c -E -dM %s -o - | FileCheck -match-full-l…
304 // RUN: %clang -target armv8 -mcpu=cortex-a35 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
305 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a35 -x c -E -dM %s -o - | FileCheck -match-full-l…
306 // RUN: %clang -target armv8 -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
307 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck -match-full-l…
308 // RUN: %clang -target armv8 -mcpu=cortex-a57 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
309 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a57 -x c -E -dM %s -o - | FileCheck -match-full-l…
310 // RUN: %clang -target armv8 -mcpu=cortex-a72 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
311 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a72 -x c -E -dM %s -o - | FileCheck -match-full-l…
312 // RUN: %clang -target armv8 -mcpu=cortex-a73 -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
313 // RUN: %clang -target armv8 -mthumb -mcpu=cortex-a73 -x c -E -dM %s -o - | FileCheck -match-full-l…
318 // Test whether predefines are as expected when targeting cortex-r4.
319 // RUN: %clang -target armv7 -mcpu=cortex-r4 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
320 // R4-ARM-NOT:#define __ARM_ARCH_EXT_IDIV__
321 // R4-ARM:#define __ARM_FEATURE_DSP 1
322 // R4-ARM-NOT:#define __ARM_FP 0x{{.*}}
324 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-r4 -x c -E -dM %s -o - | FileCheck -match-full-li…
325 // R4-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1
326 // R4-THUMB:#define __ARM_FEATURE_DSP 1
327 // R4-THUMB-NOT:#define __ARM_FP 0x{{.*}}
329 // Test whether predefines are as expected when targeting cortex-r4f.
330 // RUN: %clang -target armv7 -mcpu=cortex-r4f -x c -E -dM %s -o - | FileCheck -match-full-lines --c…
331 // R4F-ARM-NOT:#define __ARM_ARCH_EXT_IDIV__
332 // R4F-ARM:#define __ARM_FEATURE_DSP 1
333 // R4F-ARM:#define __ARM_FP 0xC
335 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-r4f -x c -E -dM %s -o - | FileCheck -match-full-l…
336 // R4F-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1
337 // R4F-THUMB:#define __ARM_FEATURE_DSP 1
338 // R4F-THUMB:#define __ARM_FP 0xC
340 // Test whether predefines are as expected when targeting cortex-r5.
341 // RUN: %clang -target armv7 -mcpu=cortex-r5 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
342 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-r5 -x c -E -dM %s -o - | FileCheck -match-full-li…
347 // Test whether predefines are as expected when targeting cortex-r7 and cortex-r8.
348 // RUN: %clang -target armv7 -mcpu=cortex-r7 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
349 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-r7 -x c -E -dM %s -o - | FileCheck -match-full-li…
350 // RUN: %clang -target armv7 -mcpu=cortex-r8 -x c -E -dM %s -o - | FileCheck -match-full-lines --ch…
351 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-r8 -x c -E -dM %s -o - | FileCheck -match-full-li…
352 // R7-R8:#define __ARM_ARCH_EXT_IDIV__ 1
353 // R7-R8:#define __ARM_FEATURE_DSP 1
354 // R7-R8:#define __ARM_FP 0xE
356 // Test whether predefines are as expected when targeting cortex-m0.
357 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m0 -x c -E -dM %s -o - | FileCheck -match-full-li…
358 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m0plus -x c -E -dM %s -o - | FileCheck -match-ful…
359 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m1 -x c -E -dM %s -o - | FileCheck -match-full-li…
360 // RUN: %clang -target armv7 -mthumb -mcpu=sc000 -x c -E -dM %s -o - | FileCheck -match-full-lines
361 // M0-THUMB-NOT:#define __ARM_ARCH_EXT_IDIV__
362 // M0-THUMB-NOT:#define __ARM_FEATURE_DSP
363 // M0-THUMB-NOT:#define __ARM_FP 0x{{.*}}
365 // Test whether predefines are as expected when targeting cortex-m3.
366 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m3 -x c -E -dM %s -o - | FileCheck -match-full-li…
367 // RUN: %clang -target armv7 -mthumb -mcpu=sc300 -x c -E -dM %s -o - | FileCheck -match-full-lines
368 // M3-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1
369 // M3-THUMB-NOT:#define __ARM_FEATURE_DSP
370 // M3-THUMB-NOT:#define __ARM_FP 0x{{.*}}
372 // Test whether predefines are as expected when targeting cortex-m4.
373 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m4 -x c -E -dM %s -o - | FileCheck -match-full-li…
374 // M4-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1
375 // M4-THUMB:#define __ARM_FEATURE_DSP 1
376 // M4-THUMB:#define __ARM_FP 0x6
378 // Test whether predefines are as expected when targeting cortex-m7.
379 // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m7 -x c -E -dM %s -o - | FileCheck -match-full-li…
380 // M7-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1
381 // M7-THUMB:#define __ARM_FEATURE_DSP 1
382 // M7-THUMB:#define __ARM_FP 0xE
385 // RUN: %clang -target armv7 -mcpu=krait -x c -E -dM %s -o - | FileCheck -match-full-lines --check-
386 // RUN: %clang -target armv7 -mthumb -mcpu=krait -x c -E -dM %s -o - | FileCheck -match-full-lines
391 // RUN: %clang -target armv8.1a-none-none-eabi -x c -E -dM %s -o - | FileCheck -match-full-lines --
392 // CHECK-V81A: #define __ARM_ARCH 8
393 // CHECK-V81A: #define __ARM_ARCH_8_1A__ 1
394 // CHECK-V81A: #define __ARM_ARCH_PROFILE 'A'
395 // CHECK-V81A: #define __ARM_FEATURE_QRDMX 1
396 // CHECK-V81A: #define __ARM_FP 0xE
398 // RUN: %clang -target armv8.2a-none-none-eabi -x c -E -dM %s -o - | FileCheck -match-full-lines --
399 // CHECK-V82A: #define __ARM_ARCH 8
400 // CHECK-V82A: #define __ARM_ARCH_8_2A__ 1
401 // CHECK-V82A: #define __ARM_ARCH_PROFILE 'A'
402 // CHECK-V82A: #define __ARM_FP 0xE