Debian Codegraph @

clang/test/Preprocessor/init-ppc.c

raw
1 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-none-none -target-cpu 603e < /dev/null | FileCheck -match-full-lines -check-prefix PPC603E %s
2 // RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=powerpc-none-none -target-cpu 603e < /dev/null | FileCheck -match-full-lines -check-prefix PPC603E-CXX %s
3 //
4 // PPC603E:#define _ARCH_603 1
5 // PPC603E:#define _ARCH_603E 1
6 // PPC603E:#define _ARCH_PPC 1
7 // PPC603E:#define _ARCH_PPCGR 1
8 // PPC603E:#define _BIG_ENDIAN 1
9 // PPC603E-NOT:#define _LP64
10 // PPC603E:#define __BIGGEST_ALIGNMENT__ 16
11 // PPC603E:#define __BIG_ENDIAN__ 1
12 // PPC603E:#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
13 // PPC603E:#define __CHAR16_TYPE__ unsigned short
14 // PPC603E:#define __CHAR32_TYPE__ unsigned int
15 // PPC603E:#define __CHAR_BIT__ 8
16 // PPC603E:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
17 // PPC603E:#define __DBL_DIG__ 15
18 // PPC603E:#define __DBL_EPSILON__ 2.2204460492503131e-16
19 // PPC603E:#define __DBL_HAS_DENORM__ 1
20 // PPC603E:#define __DBL_HAS_INFINITY__ 1
21 // PPC603E:#define __DBL_HAS_QUIET_NAN__ 1
22 // PPC603E:#define __DBL_MANT_DIG__ 53
23 // PPC603E:#define __DBL_MAX_10_EXP__ 308
24 // PPC603E:#define __DBL_MAX_EXP__ 1024
25 // PPC603E:#define __DBL_MAX__ 1.7976931348623157e+308
26 // PPC603E:#define __DBL_MIN_10_EXP__ (-307)
27 // PPC603E:#define __DBL_MIN_EXP__ (-1021)
28 // PPC603E:#define __DBL_MIN__ 2.2250738585072014e-308
29 // PPC603E:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
30 // PPC603E:#define __FLT_DENORM_MIN__ 1.40129846e-45F
31 // PPC603E:#define __FLT_DIG__ 6
32 // PPC603E:#define __FLT_EPSILON__ 1.19209290e-7F
33 // PPC603E:#define __FLT_HAS_DENORM__ 1
34 // PPC603E:#define __FLT_HAS_INFINITY__ 1
35 // PPC603E:#define __FLT_HAS_QUIET_NAN__ 1
36 // PPC603E:#define __FLT_MANT_DIG__ 24
37 // PPC603E:#define __FLT_MAX_10_EXP__ 38
38 // PPC603E:#define __FLT_MAX_EXP__ 128
39 // PPC603E:#define __FLT_MAX__ 3.40282347e+38F
40 // PPC603E:#define __FLT_MIN_10_EXP__ (-37)
41 // PPC603E:#define __FLT_MIN_EXP__ (-125)
42 // PPC603E:#define __FLT_MIN__ 1.17549435e-38F
43 // PPC603E:#define __FLT_RADIX__ 2
44 // PPC603E:#define __INT16_C(c) c
45 // PPC603E:#define __INT16_C_SUFFIX__
46 // PPC603E:#define __INT16_FMTd__ "hd"
47 // PPC603E:#define __INT16_FMTi__ "hi"
48 // PPC603E:#define __INT16_MAX__ 32767
49 // PPC603E:#define __INT16_TYPE__ short
50 // PPC603E:#define __INT32_C(c) c
51 // PPC603E:#define __INT32_C_SUFFIX__
52 // PPC603E:#define __INT32_FMTd__ "d"
53 // PPC603E:#define __INT32_FMTi__ "i"
54 // PPC603E:#define __INT32_MAX__ 2147483647
55 // PPC603E:#define __INT32_TYPE__ int
56 // PPC603E:#define __INT64_C(c) c##LL
57 // PPC603E:#define __INT64_C_SUFFIX__ LL
58 // PPC603E:#define __INT64_FMTd__ "lld"
59 // PPC603E:#define __INT64_FMTi__ "lli"
60 // PPC603E:#define __INT64_MAX__ 9223372036854775807LL
61 // PPC603E:#define __INT64_TYPE__ long long int
62 // PPC603E:#define __INT8_C(c) c
63 // PPC603E:#define __INT8_C_SUFFIX__
64 // PPC603E:#define __INT8_FMTd__ "hhd"
65 // PPC603E:#define __INT8_FMTi__ "hhi"
66 // PPC603E:#define __INT8_MAX__ 127
67 // PPC603E:#define __INT8_TYPE__ signed char
68 // PPC603E:#define __INTMAX_C(c) c##LL
69 // PPC603E:#define __INTMAX_C_SUFFIX__ LL
70 // PPC603E:#define __INTMAX_FMTd__ "lld"
71 // PPC603E:#define __INTMAX_FMTi__ "lli"
72 // PPC603E:#define __INTMAX_MAX__ 9223372036854775807LL
73 // PPC603E:#define __INTMAX_TYPE__ long long int
74 // PPC603E:#define __INTMAX_WIDTH__ 64
75 // PPC603E:#define __INTPTR_FMTd__ "ld"
76 // PPC603E:#define __INTPTR_FMTi__ "li"
77 // PPC603E:#define __INTPTR_MAX__ 2147483647L
78 // PPC603E:#define __INTPTR_TYPE__ long int
79 // PPC603E:#define __INTPTR_WIDTH__ 32
80 // PPC603E:#define __INT_FAST16_FMTd__ "hd"
81 // PPC603E:#define __INT_FAST16_FMTi__ "hi"
82 // PPC603E:#define __INT_FAST16_MAX__ 32767
83 // PPC603E:#define __INT_FAST16_TYPE__ short
84 // PPC603E:#define __INT_FAST32_FMTd__ "d"
85 // PPC603E:#define __INT_FAST32_FMTi__ "i"
86 // PPC603E:#define __INT_FAST32_MAX__ 2147483647
87 // PPC603E:#define __INT_FAST32_TYPE__ int
88 // PPC603E:#define __INT_FAST64_FMTd__ "lld"
89 // PPC603E:#define __INT_FAST64_FMTi__ "lli"
90 // PPC603E:#define __INT_FAST64_MAX__ 9223372036854775807LL
91 // PPC603E:#define __INT_FAST64_TYPE__ long long int
92 // PPC603E:#define __INT_FAST8_FMTd__ "hhd"
93 // PPC603E:#define __INT_FAST8_FMTi__ "hhi"
94 // PPC603E:#define __INT_FAST8_MAX__ 127
95 // PPC603E:#define __INT_FAST8_TYPE__ signed char
96 // PPC603E:#define __INT_LEAST16_FMTd__ "hd"
97 // PPC603E:#define __INT_LEAST16_FMTi__ "hi"
98 // PPC603E:#define __INT_LEAST16_MAX__ 32767
99 // PPC603E:#define __INT_LEAST16_TYPE__ short
100 // PPC603E:#define __INT_LEAST32_FMTd__ "d"
101 // PPC603E:#define __INT_LEAST32_FMTi__ "i"
102 // PPC603E:#define __INT_LEAST32_MAX__ 2147483647
103 // PPC603E:#define __INT_LEAST32_TYPE__ int
104 // PPC603E:#define __INT_LEAST64_FMTd__ "lld"
105 // PPC603E:#define __INT_LEAST64_FMTi__ "lli"
106 // PPC603E:#define __INT_LEAST64_MAX__ 9223372036854775807LL
107 // PPC603E:#define __INT_LEAST64_TYPE__ long long int
108 // PPC603E:#define __INT_LEAST8_FMTd__ "hhd"
109 // PPC603E:#define __INT_LEAST8_FMTi__ "hhi"
110 // PPC603E:#define __INT_LEAST8_MAX__ 127
111 // PPC603E:#define __INT_LEAST8_TYPE__ signed char
112 // PPC603E:#define __INT_MAX__ 2147483647
113 // PPC603E:#define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L
114 // PPC603E:#define __LDBL_DIG__ 31
115 // PPC603E:#define __LDBL_EPSILON__ 4.94065645841246544176568792868221e-324L
116 // PPC603E:#define __LDBL_HAS_DENORM__ 1
117 // PPC603E:#define __LDBL_HAS_INFINITY__ 1
118 // PPC603E:#define __LDBL_HAS_QUIET_NAN__ 1
119 // PPC603E:#define __LDBL_MANT_DIG__ 106
120 // PPC603E:#define __LDBL_MAX_10_EXP__ 308
121 // PPC603E:#define __LDBL_MAX_EXP__ 1024
122 // PPC603E:#define __LDBL_MAX__ 1.79769313486231580793728971405301e+308L
123 // PPC603E:#define __LDBL_MIN_10_EXP__ (-291)
124 // PPC603E:#define __LDBL_MIN_EXP__ (-968)
125 // PPC603E:#define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L
126 // PPC603E:#define __LONGDOUBLE128 1
127 // PPC603E:#define __LONG_DOUBLE_128__ 1
128 // PPC603E:#define __LONG_LONG_MAX__ 9223372036854775807LL
129 // PPC603E:#define __LONG_MAX__ 2147483647L
130 // PPC603E-NOT:#define __LP64__
131 // PPC603E:#define __NATURAL_ALIGNMENT__ 1
132 // PPC603E:#define __POINTER_WIDTH__ 32
133 // PPC603E:#define __POWERPC__ 1
134 // PPC603E:#define __PPC__ 1
135 // PPC603E:#define __PTRDIFF_TYPE__ long int
136 // PPC603E:#define __PTRDIFF_WIDTH__ 32
137 // PPC603E:#define __REGISTER_PREFIX__
138 // PPC603E:#define __SCHAR_MAX__ 127
139 // PPC603E:#define __SHRT_MAX__ 32767
140 // PPC603E:#define __SIG_ATOMIC_MAX__ 2147483647
141 // PPC603E:#define __SIG_ATOMIC_WIDTH__ 32
142 // PPC603E:#define __SIZEOF_DOUBLE__ 8
143 // PPC603E:#define __SIZEOF_FLOAT__ 4
144 // PPC603E:#define __SIZEOF_INT__ 4
145 // PPC603E:#define __SIZEOF_LONG_DOUBLE__ 16
146 // PPC603E:#define __SIZEOF_LONG_LONG__ 8
147 // PPC603E:#define __SIZEOF_LONG__ 4
148 // PPC603E:#define __SIZEOF_POINTER__ 4
149 // PPC603E:#define __SIZEOF_PTRDIFF_T__ 4
150 // PPC603E:#define __SIZEOF_SHORT__ 2
151 // PPC603E:#define __SIZEOF_SIZE_T__ 4
152 // PPC603E:#define __SIZEOF_WCHAR_T__ 4
153 // PPC603E:#define __SIZEOF_WINT_T__ 4
154 // PPC603E:#define __SIZE_MAX__ 4294967295UL
155 // PPC603E:#define __SIZE_TYPE__ long unsigned int
156 // PPC603E:#define __SIZE_WIDTH__ 32
157 // PPC603E-CXX:#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16UL
158 // PPC603E:#define __UINT16_C(c) c
159 // PPC603E:#define __UINT16_C_SUFFIX__
160 // PPC603E:#define __UINT16_MAX__ 65535
161 // PPC603E:#define __UINT16_TYPE__ unsigned short
162 // PPC603E:#define __UINT32_C(c) c##U
163 // PPC603E:#define __UINT32_C_SUFFIX__ U
164 // PPC603E:#define __UINT32_MAX__ 4294967295U
165 // PPC603E:#define __UINT32_TYPE__ unsigned int
166 // PPC603E:#define __UINT64_C(c) c##ULL
167 // PPC603E:#define __UINT64_C_SUFFIX__ ULL
168 // PPC603E:#define __UINT64_MAX__ 18446744073709551615ULL
169 // PPC603E:#define __UINT64_TYPE__ long long unsigned int
170 // PPC603E:#define __UINT8_C(c) c
171 // PPC603E:#define __UINT8_C_SUFFIX__
172 // PPC603E:#define __UINT8_MAX__ 255
173 // PPC603E:#define __UINT8_TYPE__ unsigned char
174 // PPC603E:#define __UINTMAX_C(c) c##ULL
175 // PPC603E:#define __UINTMAX_C_SUFFIX__ ULL
176 // PPC603E:#define __UINTMAX_MAX__ 18446744073709551615ULL
177 // PPC603E:#define __UINTMAX_TYPE__ long long unsigned int
178 // PPC603E:#define __UINTMAX_WIDTH__ 64
179 // PPC603E:#define __UINTPTR_MAX__ 4294967295UL
180 // PPC603E:#define __UINTPTR_TYPE__ long unsigned int
181 // PPC603E:#define __UINTPTR_WIDTH__ 32
182 // PPC603E:#define __UINT_FAST16_MAX__ 65535
183 // PPC603E:#define __UINT_FAST16_TYPE__ unsigned short
184 // PPC603E:#define __UINT_FAST32_MAX__ 4294967295U
185 // PPC603E:#define __UINT_FAST32_TYPE__ unsigned int
186 // PPC603E:#define __UINT_FAST64_MAX__ 18446744073709551615ULL
187 // PPC603E:#define __UINT_FAST64_TYPE__ long long unsigned int
188 // PPC603E:#define __UINT_FAST8_MAX__ 255
189 // PPC603E:#define __UINT_FAST8_TYPE__ unsigned char
190 // PPC603E:#define __UINT_LEAST16_MAX__ 65535
191 // PPC603E:#define __UINT_LEAST16_TYPE__ unsigned short
192 // PPC603E:#define __UINT_LEAST32_MAX__ 4294967295U
193 // PPC603E:#define __UINT_LEAST32_TYPE__ unsigned int
194 // PPC603E:#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
195 // PPC603E:#define __UINT_LEAST64_TYPE__ long long unsigned int
196 // PPC603E:#define __UINT_LEAST8_MAX__ 255
197 // PPC603E:#define __UINT_LEAST8_TYPE__ unsigned char
198 // PPC603E:#define __USER_LABEL_PREFIX__
199 // PPC603E:#define __WCHAR_MAX__ 2147483647
200 // PPC603E:#define __WCHAR_TYPE__ int
201 // PPC603E:#define __WCHAR_WIDTH__ 32
202 // PPC603E:#define __WINT_TYPE__ int
203 // PPC603E:#define __WINT_WIDTH__ 32
204 // PPC603E:#define __powerpc__ 1
205 // PPC603E:#define __ppc__ 1
206
207 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-none-none -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC %s
208 //
209 // PPC:#define _ARCH_PPC 1
210 // PPC:#define _BIG_ENDIAN 1
211 // PPC-NOT:#define _LP64
212 // PPC:#define __BIGGEST_ALIGNMENT__ 16
213 // PPC:#define __BIG_ENDIAN__ 1
214 // PPC:#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
215 // PPC:#define __CHAR16_TYPE__ unsigned short
216 // PPC:#define __CHAR32_TYPE__ unsigned int
217 // PPC:#define __CHAR_BIT__ 8
218 // PPC:#define __CHAR_UNSIGNED__ 1
219 // PPC:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
220 // PPC:#define __DBL_DIG__ 15
221 // PPC:#define __DBL_EPSILON__ 2.2204460492503131e-16
222 // PPC:#define __DBL_HAS_DENORM__ 1
223 // PPC:#define __DBL_HAS_INFINITY__ 1
224 // PPC:#define __DBL_HAS_QUIET_NAN__ 1
225 // PPC:#define __DBL_MANT_DIG__ 53
226 // PPC:#define __DBL_MAX_10_EXP__ 308
227 // PPC:#define __DBL_MAX_EXP__ 1024
228 // PPC:#define __DBL_MAX__ 1.7976931348623157e+308
229 // PPC:#define __DBL_MIN_10_EXP__ (-307)
230 // PPC:#define __DBL_MIN_EXP__ (-1021)
231 // PPC:#define __DBL_MIN__ 2.2250738585072014e-308
232 // PPC:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
233 // PPC:#define __FLT_DENORM_MIN__ 1.40129846e-45F
234 // PPC:#define __FLT_DIG__ 6
235 // PPC:#define __FLT_EPSILON__ 1.19209290e-7F
236 // PPC:#define __FLT_HAS_DENORM__ 1
237 // PPC:#define __FLT_HAS_INFINITY__ 1
238 // PPC:#define __FLT_HAS_QUIET_NAN__ 1
239 // PPC:#define __FLT_MANT_DIG__ 24
240 // PPC:#define __FLT_MAX_10_EXP__ 38
241 // PPC:#define __FLT_MAX_EXP__ 128
242 // PPC:#define __FLT_MAX__ 3.40282347e+38F
243 // PPC:#define __FLT_MIN_10_EXP__ (-37)
244 // PPC:#define __FLT_MIN_EXP__ (-125)
245 // PPC:#define __FLT_MIN__ 1.17549435e-38F
246 // PPC:#define __FLT_RADIX__ 2
247 // PPC:#define __HAVE_BSWAP__ 1
248 // PPC:#define __INT16_C(c) c
249 // PPC:#define __INT16_C_SUFFIX__
250 // PPC:#define __INT16_FMTd__ "hd"
251 // PPC:#define __INT16_FMTi__ "hi"
252 // PPC:#define __INT16_MAX__ 32767
253 // PPC:#define __INT16_TYPE__ short
254 // PPC:#define __INT32_C(c) c
255 // PPC:#define __INT32_C_SUFFIX__
256 // PPC:#define __INT32_FMTd__ "d"
257 // PPC:#define __INT32_FMTi__ "i"
258 // PPC:#define __INT32_MAX__ 2147483647
259 // PPC:#define __INT32_TYPE__ int
260 // PPC:#define __INT64_C(c) c##LL
261 // PPC:#define __INT64_C_SUFFIX__ LL
262 // PPC:#define __INT64_FMTd__ "lld"
263 // PPC:#define __INT64_FMTi__ "lli"
264 // PPC:#define __INT64_MAX__ 9223372036854775807LL
265 // PPC:#define __INT64_TYPE__ long long int
266 // PPC:#define __INT8_C(c) c
267 // PPC:#define __INT8_C_SUFFIX__
268 // PPC:#define __INT8_FMTd__ "hhd"
269 // PPC:#define __INT8_FMTi__ "hhi"
270 // PPC:#define __INT8_MAX__ 127
271 // PPC:#define __INT8_TYPE__ signed char
272 // PPC:#define __INTMAX_C(c) c##LL
273 // PPC:#define __INTMAX_C_SUFFIX__ LL
274 // PPC:#define __INTMAX_FMTd__ "lld"
275 // PPC:#define __INTMAX_FMTi__ "lli"
276 // PPC:#define __INTMAX_MAX__ 9223372036854775807LL
277 // PPC:#define __INTMAX_TYPE__ long long int
278 // PPC:#define __INTMAX_WIDTH__ 64
279 // PPC:#define __INTPTR_FMTd__ "ld"
280 // PPC:#define __INTPTR_FMTi__ "li"
281 // PPC:#define __INTPTR_MAX__ 2147483647L
282 // PPC:#define __INTPTR_TYPE__ long int
283 // PPC:#define __INTPTR_WIDTH__ 32
284 // PPC:#define __INT_FAST16_FMTd__ "hd"
285 // PPC:#define __INT_FAST16_FMTi__ "hi"
286 // PPC:#define __INT_FAST16_MAX__ 32767
287 // PPC:#define __INT_FAST16_TYPE__ short
288 // PPC:#define __INT_FAST32_FMTd__ "d"
289 // PPC:#define __INT_FAST32_FMTi__ "i"
290 // PPC:#define __INT_FAST32_MAX__ 2147483647
291 // PPC:#define __INT_FAST32_TYPE__ int
292 // PPC:#define __INT_FAST64_FMTd__ "lld"
293 // PPC:#define __INT_FAST64_FMTi__ "lli"
294 // PPC:#define __INT_FAST64_MAX__ 9223372036854775807LL
295 // PPC:#define __INT_FAST64_TYPE__ long long int
296 // PPC:#define __INT_FAST8_FMTd__ "hhd"
297 // PPC:#define __INT_FAST8_FMTi__ "hhi"
298 // PPC:#define __INT_FAST8_MAX__ 127
299 // PPC:#define __INT_FAST8_TYPE__ signed char
300 // PPC:#define __INT_LEAST16_FMTd__ "hd"
301 // PPC:#define __INT_LEAST16_FMTi__ "hi"
302 // PPC:#define __INT_LEAST16_MAX__ 32767
303 // PPC:#define __INT_LEAST16_TYPE__ short
304 // PPC:#define __INT_LEAST32_FMTd__ "d"
305 // PPC:#define __INT_LEAST32_FMTi__ "i"
306 // PPC:#define __INT_LEAST32_MAX__ 2147483647
307 // PPC:#define __INT_LEAST32_TYPE__ int
308 // PPC:#define __INT_LEAST64_FMTd__ "lld"
309 // PPC:#define __INT_LEAST64_FMTi__ "lli"
310 // PPC:#define __INT_LEAST64_MAX__ 9223372036854775807LL
311 // PPC:#define __INT_LEAST64_TYPE__ long long int
312 // PPC:#define __INT_LEAST8_FMTd__ "hhd"
313 // PPC:#define __INT_LEAST8_FMTi__ "hhi"
314 // PPC:#define __INT_LEAST8_MAX__ 127
315 // PPC:#define __INT_LEAST8_TYPE__ signed char
316 // PPC:#define __INT_MAX__ 2147483647
317 // PPC:#define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L
318 // PPC:#define __LDBL_DIG__ 31
319 // PPC:#define __LDBL_EPSILON__ 4.94065645841246544176568792868221e-324L
320 // PPC:#define __LDBL_HAS_DENORM__ 1
321 // PPC:#define __LDBL_HAS_INFINITY__ 1
322 // PPC:#define __LDBL_HAS_QUIET_NAN__ 1
323 // PPC:#define __LDBL_MANT_DIG__ 106
324 // PPC:#define __LDBL_MAX_10_EXP__ 308
325 // PPC:#define __LDBL_MAX_EXP__ 1024
326 // PPC:#define __LDBL_MAX__ 1.79769313486231580793728971405301e+308L
327 // PPC:#define __LDBL_MIN_10_EXP__ (-291)
328 // PPC:#define __LDBL_MIN_EXP__ (-968)
329 // PPC:#define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L
330 // PPC:#define __LONGDOUBLE128 1
331 // PPC:#define __LONG_DOUBLE_128__ 1
332 // PPC:#define __LONG_LONG_MAX__ 9223372036854775807LL
333 // PPC:#define __LONG_MAX__ 2147483647L
334 // PPC-NOT:#define __LP64__
335 // PPC:#define __NATURAL_ALIGNMENT__ 1
336 // PPC:#define __POINTER_WIDTH__ 32
337 // PPC:#define __POWERPC__ 1
338 // PPC-NOT:#define __PPC 1
339 // PPC:#define __PPC__ 1
340 // PPC:#define __PTRDIFF_TYPE__ long int
341 // PPC:#define __PTRDIFF_WIDTH__ 32
342 // PPC:#define __REGISTER_PREFIX__
343 // PPC:#define __SCHAR_MAX__ 127
344 // PPC:#define __SHRT_MAX__ 32767
345 // PPC:#define __SIG_ATOMIC_MAX__ 2147483647
346 // PPC:#define __SIG_ATOMIC_WIDTH__ 32
347 // PPC:#define __SIZEOF_DOUBLE__ 8
348 // PPC:#define __SIZEOF_FLOAT__ 4
349 // PPC:#define __SIZEOF_INT__ 4
350 // PPC:#define __SIZEOF_LONG_DOUBLE__ 16
351 // PPC:#define __SIZEOF_LONG_LONG__ 8
352 // PPC:#define __SIZEOF_LONG__ 4
353 // PPC:#define __SIZEOF_POINTER__ 4
354 // PPC:#define __SIZEOF_PTRDIFF_T__ 4
355 // PPC:#define __SIZEOF_SHORT__ 2
356 // PPC:#define __SIZEOF_SIZE_T__ 4
357 // PPC:#define __SIZEOF_WCHAR_T__ 4
358 // PPC:#define __SIZEOF_WINT_T__ 4
359 // PPC:#define __SIZE_MAX__ 4294967295UL
360 // PPC:#define __SIZE_TYPE__ long unsigned int
361 // PPC:#define __SIZE_WIDTH__ 32
362 // PPC:#define __UINT16_C(c) c
363 // PPC:#define __UINT16_C_SUFFIX__
364 // PPC:#define __UINT16_MAX__ 65535
365 // PPC:#define __UINT16_TYPE__ unsigned short
366 // PPC:#define __UINT32_C(c) c##U
367 // PPC:#define __UINT32_C_SUFFIX__ U
368 // PPC:#define __UINT32_MAX__ 4294967295U
369 // PPC:#define __UINT32_TYPE__ unsigned int
370 // PPC:#define __UINT64_C(c) c##ULL
371 // PPC:#define __UINT64_C_SUFFIX__ ULL
372 // PPC:#define __UINT64_MAX__ 18446744073709551615ULL
373 // PPC:#define __UINT64_TYPE__ long long unsigned int
374 // PPC:#define __UINT8_C(c) c
375 // PPC:#define __UINT8_C_SUFFIX__
376 // PPC:#define __UINT8_MAX__ 255
377 // PPC:#define __UINT8_TYPE__ unsigned char
378 // PPC:#define __UINTMAX_C(c) c##ULL
379 // PPC:#define __UINTMAX_C_SUFFIX__ ULL
380 // PPC:#define __UINTMAX_MAX__ 18446744073709551615ULL
381 // PPC:#define __UINTMAX_TYPE__ long long unsigned int
382 // PPC:#define __UINTMAX_WIDTH__ 64
383 // PPC:#define __UINTPTR_MAX__ 4294967295UL
384 // PPC:#define __UINTPTR_TYPE__ long unsigned int
385 // PPC:#define __UINTPTR_WIDTH__ 32
386 // PPC:#define __UINT_FAST16_MAX__ 65535
387 // PPC:#define __UINT_FAST16_TYPE__ unsigned short
388 // PPC:#define __UINT_FAST32_MAX__ 4294967295U
389 // PPC:#define __UINT_FAST32_TYPE__ unsigned int
390 // PPC:#define __UINT_FAST64_MAX__ 18446744073709551615ULL
391 // PPC:#define __UINT_FAST64_TYPE__ long long unsigned int
392 // PPC:#define __UINT_FAST8_MAX__ 255
393 // PPC:#define __UINT_FAST8_TYPE__ unsigned char
394 // PPC:#define __UINT_LEAST16_MAX__ 65535
395 // PPC:#define __UINT_LEAST16_TYPE__ unsigned short
396 // PPC:#define __UINT_LEAST32_MAX__ 4294967295U
397 // PPC:#define __UINT_LEAST32_TYPE__ unsigned int
398 // PPC:#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
399 // PPC:#define __UINT_LEAST64_TYPE__ long long unsigned int
400 // PPC:#define __UINT_LEAST8_MAX__ 255
401 // PPC:#define __UINT_LEAST8_TYPE__ unsigned char
402 // PPC:#define __USER_LABEL_PREFIX__
403 // PPC:#define __WCHAR_MAX__ 2147483647
404 // PPC:#define __WCHAR_TYPE__ int
405 // PPC:#define __WCHAR_WIDTH__ 32
406 // PPC:#define __WINT_TYPE__ int
407 // PPC:#define __WINT_WIDTH__ 32
408 // PPC-NOT:#define __powerpc 1
409 // PPC:#define __ppc__ 1
410
411 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX %s
412 //
413 // PPC-AIX-NOT:#define __64BIT__ 1
414 // PPC-AIX:#define _AIX 1
415 // PPC-AIX:#define _ARCH_PPC 1
416 // PPC-AIX:#define _ARCH_PPC64 1
417 // PPC-AIX:#define _BIG_ENDIAN 1
418 // PPC-AIX:#define _IBMR2 1
419 // PPC-AIX:#define _LONG_LONG 1
420 // PPC-AIX-NOT:#define _LP64 1
421 // PPC-AIX:#define _POWER 1
422 // PPC-AIX:#define __BIGGEST_ALIGNMENT__ 16
423 // PPC-AIX:#define __BIG_ENDIAN__ 1
424 // PPC-AIX:#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
425 // PPC-AIX:#define __CHAR16_TYPE__ unsigned short
426 // PPC-AIX:#define __CHAR32_TYPE__ unsigned int
427 // PPC-AIX:#define __CHAR_BIT__ 8
428 // PPC-AIX:#define __CHAR_UNSIGNED__ 1
429 // PPC-AIX:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
430 // PPC-AIX:#define __DBL_DIG__ 15
431 // PPC-AIX:#define __DBL_EPSILON__ 2.2204460492503131e-16
432 // PPC-AIX:#define __DBL_HAS_DENORM__ 1
433 // PPC-AIX:#define __DBL_HAS_INFINITY__ 1
434 // PPC-AIX:#define __DBL_HAS_QUIET_NAN__ 1
435 // PPC-AIX:#define __DBL_MANT_DIG__ 53
436 // PPC-AIX:#define __DBL_MAX_10_EXP__ 308
437 // PPC-AIX:#define __DBL_MAX_EXP__ 1024
438 // PPC-AIX:#define __DBL_MAX__ 1.7976931348623157e+308
439 // PPC-AIX:#define __DBL_MIN_10_EXP__ (-307)
440 // PPC-AIX:#define __DBL_MIN_EXP__ (-1021)
441 // PPC-AIX:#define __DBL_MIN__ 2.2250738585072014e-308
442 // PPC-AIX:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
443 // PPC-AIX:#define __FLT_DENORM_MIN__ 1.40129846e-45F
444 // PPC-AIX:#define __FLT_DIG__ 6
445 // PPC-AIX:#define __FLT_EPSILON__ 1.19209290e-7F
446 // PPC-AIX:#define __FLT_HAS_DENORM__ 1
447 // PPC-AIX:#define __FLT_HAS_INFINITY__ 1
448 // PPC-AIX:#define __FLT_HAS_QUIET_NAN__ 1
449 // PPC-AIX:#define __FLT_MANT_DIG__ 24
450 // PPC-AIX:#define __FLT_MAX_10_EXP__ 38
451 // PPC-AIX:#define __FLT_MAX_EXP__ 128
452 // PPC-AIX:#define __FLT_MAX__ 3.40282347e+38F
453 // PPC-AIX:#define __FLT_MIN_10_EXP__ (-37)
454 // PPC-AIX:#define __FLT_MIN_EXP__ (-125)
455 // PPC-AIX:#define __FLT_MIN__ 1.17549435e-38F
456 // PPC-AIX:#define __FLT_RADIX__ 2
457 // PPC-AIX:#define __HOS_AIX__ 1
458 // PPC-AIX:#define __INT16_C(c) c
459 // PPC-AIX:#define __INT16_C_SUFFIX__
460 // PPC-AIX:#define __INT16_FMTd__ "hd"
461 // PPC-AIX:#define __INT16_FMTi__ "hi"
462 // PPC-AIX:#define __INT16_MAX__ 32767
463 // PPC-AIX:#define __INT16_TYPE__ short
464 // PPC-AIX:#define __INT32_C(c) c
465 // PPC-AIX:#define __INT32_C_SUFFIX__
466 // PPC-AIX:#define __INT32_FMTd__ "d"
467 // PPC-AIX:#define __INT32_FMTi__ "i"
468 // PPC-AIX:#define __INT32_MAX__ 2147483647
469 // PPC-AIX:#define __INT32_TYPE__ int
470 // PPC-AIX:#define __INT64_C(c) c##LL
471 // PPC-AIX:#define __INT64_C_SUFFIX__ LL
472 // PPC-AIX:#define __INT64_FMTd__ "lld"
473 // PPC-AIX:#define __INT64_FMTi__ "lli"
474 // PPC-AIX:#define __INT64_MAX__ 9223372036854775807LL
475 // PPC-AIX:#define __INT64_TYPE__ long long int
476 // PPC-AIX:#define __INT8_C(c) c
477 // PPC-AIX:#define __INT8_C_SUFFIX__
478 // PPC-AIX:#define __INT8_FMTd__ "hhd"
479 // PPC-AIX:#define __INT8_FMTi__ "hhi"
480 // PPC-AIX:#define __INT8_MAX__ 127
481 // PPC-AIX:#define __INT8_TYPE__ signed char
482 // PPC-AIX:#define __INTMAX_C(c) c##LL
483 // PPC-AIX:#define __INTMAX_C_SUFFIX__ LL
484 // PPC-AIX:#define __INTMAX_FMTd__ "lld"
485 // PPC-AIX:#define __INTMAX_FMTi__ "lli"
486 // PPC-AIX:#define __INTMAX_MAX__ 9223372036854775807LL
487 // PPC-AIX:#define __INTMAX_TYPE__ long long int
488 // PPC-AIX:#define __INTMAX_WIDTH__ 64
489 // PPC-AIX:#define __INTPTR_FMTd__ "ld"
490 // PPC-AIX:#define __INTPTR_FMTi__ "li"
491 // PPC-AIX:#define __INTPTR_MAX__ 2147483647L
492 // PPC-AIX:#define __INTPTR_TYPE__ long int
493 // PPC-AIX:#define __INTPTR_WIDTH__ 32
494 // PPC-AIX:#define __INT_FAST16_FMTd__ "hd"
495 // PPC-AIX:#define __INT_FAST16_FMTi__ "hi"
496 // PPC-AIX:#define __INT_FAST16_MAX__ 32767
497 // PPC-AIX:#define __INT_FAST16_TYPE__ short
498 // PPC-AIX:#define __INT_FAST32_FMTd__ "d"
499 // PPC-AIX:#define __INT_FAST32_FMTi__ "i"
500 // PPC-AIX:#define __INT_FAST32_MAX__ 2147483647
501 // PPC-AIX:#define __INT_FAST32_TYPE__ int
502 // PPC-AIX:#define __INT_FAST64_FMTd__ "lld"
503 // PPC-AIX:#define __INT_FAST64_FMTi__ "lli"
504 // PPC-AIX:#define __INT_FAST64_MAX__ 9223372036854775807LL
505 // PPC-AIX:#define __INT_FAST64_TYPE__ long long int
506 // PPC-AIX:#define __INT_FAST8_FMTd__ "hhd"
507 // PPC-AIX:#define __INT_FAST8_FMTi__ "hhi"
508 // PPC-AIX:#define __INT_FAST8_MAX__ 127
509 // PPC-AIX:#define __INT_FAST8_TYPE__ signed char
510 // PPC-AIX:#define __INT_LEAST16_FMTd__ "hd"
511 // PPC-AIX:#define __INT_LEAST16_FMTi__ "hi"
512 // PPC-AIX:#define __INT_LEAST16_MAX__ 32767
513 // PPC-AIX:#define __INT_LEAST16_TYPE__ short
514 // PPC-AIX:#define __INT_LEAST32_FMTd__ "d"
515 // PPC-AIX:#define __INT_LEAST32_FMTi__ "i"
516 // PPC-AIX:#define __INT_LEAST32_MAX__ 2147483647
517 // PPC-AIX:#define __INT_LEAST32_TYPE__ int
518 // PPC-AIX:#define __INT_LEAST64_FMTd__ "lld"
519 // PPC-AIX:#define __INT_LEAST64_FMTi__ "lli"
520 // PPC-AIX:#define __INT_LEAST64_MAX__ 9223372036854775807LL
521 // PPC-AIX:#define __INT_LEAST64_TYPE__ long long int
522 // PPC-AIX:#define __INT_LEAST8_FMTd__ "hhd"
523 // PPC-AIX:#define __INT_LEAST8_FMTi__ "hhi"
524 // PPC-AIX:#define __INT_LEAST8_MAX__ 127
525 // PPC-AIX:#define __INT_LEAST8_TYPE__ signed char
526 // PPC-AIX:#define __INT_MAX__ 2147483647
527 // PPC-AIX:#define __LDBL_DECIMAL_DIG__ 17
528 // PPC-AIX:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
529 // PPC-AIX:#define __LDBL_DIG__ 15
530 // PPC-AIX:#define __LDBL_EPSILON__ 2.2204460492503131e-16L
531 // PPC-AIX:#define __LDBL_HAS_DENORM__ 1
532 // PPC-AIX:#define __LDBL_HAS_INFINITY__ 1
533 // PPC-AIX:#define __LDBL_HAS_QUIET_NAN__ 1
534 // PPC-AIX:#define __LDBL_MANT_DIG__ 53
535 // PPC-AIX:#define __LDBL_MAX_10_EXP__ 308
536 // PPC-AIX:#define __LDBL_MAX_EXP__ 1024
537 // PPC-AIX:#define __LDBL_MAX__ 1.7976931348623157e+308L
538 // PPC-AIX:#define __LDBL_MIN_10_EXP__ (-307)
539 // PPC-AIX:#define __LDBL_MIN_EXP__ (-1021)
540 // PPC-AIX:#define __LDBL_MIN__ 2.2250738585072014e-308L
541 // PPC-AIX:#define __LONG_LONG_MAX__ 9223372036854775807LL
542 // PPC-AIX:#define __LONG_MAX__ 2147483647L
543 // PPC-AIX-NOT:#define __LP64__ 1
544 // PPC-AIX-NOT:#define __NATURAL_ALIGNMENT__ 1
545 // PPC-AIX:#define __POINTER_WIDTH__ 32
546 // PPC-AIX:#define __POWERPC__ 1
547 // PPC-AIX:#define __PPC 1
548 // PPC-AIX:#define __PPC__ 1
549 // PPC-AIX:#define __PTRDIFF_TYPE__ long int
550 // PPC-AIX:#define __PTRDIFF_WIDTH__ 32
551 // PPC-AIX:#define __REGISTER_PREFIX__
552 // PPC-AIX:#define __SCHAR_MAX__ 127
553 // PPC-AIX:#define __SHRT_MAX__ 32767
554 // PPC-AIX:#define __SIG_ATOMIC_MAX__ 2147483647
555 // PPC-AIX:#define __SIG_ATOMIC_WIDTH__ 32
556 // PPC-AIX:#define __SIZEOF_DOUBLE__ 8
557 // PPC-AIX:#define __SIZEOF_FLOAT__ 4
558 // PPC-AIX:#define __SIZEOF_INT__ 4
559 // PPC-AIX:#define __SIZEOF_LONG_DOUBLE__ 8
560 // PPC-AIX:#define __SIZEOF_LONG_LONG__ 8
561 // PPC-AIX:#define __SIZEOF_LONG__ 4
562 // PPC-AIX:#define __SIZEOF_POINTER__ 4
563 // PPC-AIX:#define __SIZEOF_PTRDIFF_T__ 4
564 // PPC-AIX:#define __SIZEOF_SHORT__ 2
565 // PPC-AIX:#define __SIZEOF_SIZE_T__ 4
566 // PPC-AIX:#define __SIZEOF_WCHAR_T__ 2
567 // PPC-AIX:#define __SIZEOF_WINT_T__ 4
568 // PPC-AIX:#define __SIZE_MAX__ 4294967295UL
569 // PPC-AIX:#define __SIZE_TYPE__ long unsigned int
570 // PPC-AIX:#define __SIZE_WIDTH__ 32
571 // PPC-AIX:#define __THW_BIG_ENDIAN__ 1
572 // PPC-AIX:#define __THW_PPC__ 1
573 // PPC-AIX:#define __TOS_AIX__ 1
574 // PPC-AIX:#define __UINT16_C(c) c
575 // PPC-AIX:#define __UINT16_C_SUFFIX__
576 // PPC-AIX:#define __UINT16_MAX__ 65535
577 // PPC-AIX:#define __UINT16_TYPE__ unsigned short
578 // PPC-AIX:#define __UINT32_C(c) c##U
579 // PPC-AIX:#define __UINT32_C_SUFFIX__ U
580 // PPC-AIX:#define __UINT32_MAX__ 4294967295U
581 // PPC-AIX:#define __UINT32_TYPE__ unsigned int
582 // PPC-AIX:#define __UINT64_C(c) c##ULL
583 // PPC-AIX:#define __UINT64_C_SUFFIX__ ULL
584 // PPC-AIX:#define __UINT64_MAX__ 18446744073709551615ULL
585 // PPC-AIX:#define __UINT64_TYPE__ long long unsigned int
586 // PPC-AIX:#define __UINT8_C(c) c
587 // PPC-AIX:#define __UINT8_C_SUFFIX__
588 // PPC-AIX:#define __UINT8_MAX__ 255
589 // PPC-AIX:#define __UINT8_TYPE__ unsigned char
590 // PPC-AIX:#define __UINTMAX_C(c) c##ULL
591 // PPC-AIX:#define __UINTMAX_C_SUFFIX__ ULL
592 // PPC-AIX:#define __UINTMAX_MAX__ 18446744073709551615ULL
593 // PPC-AIX:#define __UINTMAX_TYPE__ long long unsigned int
594 // PPC-AIX:#define __UINTMAX_WIDTH__ 64
595 // PPC-AIX:#define __UINTPTR_MAX__ 4294967295UL
596 // PPC-AIX:#define __UINTPTR_TYPE__ long unsigned int
597 // PPC-AIX:#define __UINTPTR_WIDTH__ 32
598 // PPC-AIX:#define __UINT_FAST16_MAX__ 65535
599 // PPC-AIX:#define __UINT_FAST16_TYPE__ unsigned short
600 // PPC-AIX:#define __UINT_FAST32_MAX__ 4294967295U
601 // PPC-AIX:#define __UINT_FAST32_TYPE__ unsigned int
602 // PPC-AIX:#define __UINT_FAST64_MAX__ 18446744073709551615ULL
603 // PPC-AIX:#define __UINT_FAST64_TYPE__ long long unsigned int
604 // PPC-AIX:#define __UINT_FAST8_MAX__ 255
605 // PPC-AIX:#define __UINT_FAST8_TYPE__ unsigned char
606 // PPC-AIX:#define __UINT_LEAST16_MAX__ 65535
607 // PPC-AIX:#define __UINT_LEAST16_TYPE__ unsigned short
608 // PPC-AIX:#define __UINT_LEAST32_MAX__ 4294967295U
609 // PPC-AIX:#define __UINT_LEAST32_TYPE__ unsigned int
610 // PPC-AIX:#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
611 // PPC-AIX:#define __UINT_LEAST64_TYPE__ long long unsigned int
612 // PPC-AIX:#define __UINT_LEAST8_MAX__ 255
613 // PPC-AIX:#define __UINT_LEAST8_TYPE__ unsigned char
614 // PPC-AIX:#define __USER_LABEL_PREFIX__
615 // PPC-AIX:#define __WCHAR_MAX__ 65535
616 // PPC-AIX:#define __WCHAR_TYPE__ unsigned short
617 // PPC-AIX:#define __WCHAR_WIDTH__ 16
618 // PPC-AIX:#define __WINT_TYPE__ int
619 // PPC-AIX:#define __WINT_WIDTH__ 32
620 // PPC-AIX:#define __powerpc 1
621 // PPC-AIX:#define __powerpc__ 1
622 // PPC-AIX:#define __ppc__ 1
623
624 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.3.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX73 %s
625 //
626 // PPC-AIX73:#define _AIX32 1
627 // PPC-AIX73:#define _AIX41 1
628 // PPC-AIX73:#define _AIX43 1
629 // PPC-AIX73:#define _AIX50 1
630 // PPC-AIX73:#define _AIX51 1
631 // PPC-AIX73:#define _AIX52 1
632 // PPC-AIX73:#define _AIX53 1
633 // PPC-AIX73:#define _AIX61 1
634 // PPC-AIX73:#define _AIX71 1
635 // PPC-AIX73:#define _AIX72 1
636 // PPC-AIX73:#define _AIX73 1
637
638 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.2.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX72 %s
639 //
640 // PPC-AIX72:#define _AIX32 1
641 // PPC-AIX72:#define _AIX41 1
642 // PPC-AIX72:#define _AIX43 1
643 // PPC-AIX72:#define _AIX50 1
644 // PPC-AIX72:#define _AIX51 1
645 // PPC-AIX72:#define _AIX52 1
646 // PPC-AIX72:#define _AIX53 1
647 // PPC-AIX72:#define _AIX61 1
648 // PPC-AIX72:#define _AIX71 1
649 // PPC-AIX72:#define _AIX72 1
650 // PPC-AIX72-NOT:#define _AIX73 1
651
652 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX71 %s
653 //
654 // PPC-AIX71:#define _AIX32 1
655 // PPC-AIX71:#define _AIX41 1
656 // PPC-AIX71:#define _AIX43 1
657 // PPC-AIX71:#define _AIX50 1
658 // PPC-AIX71:#define _AIX51 1
659 // PPC-AIX71:#define _AIX52 1
660 // PPC-AIX71:#define _AIX53 1
661 // PPC-AIX71:#define _AIX61 1
662 // PPC-AIX71:#define _AIX71 1
663 // PPC-AIX71-NOT:#define _AIX72 1
664 // PPC-AIX71-NOT:#define _AIX73 1
665
666 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix6.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX61 %s
667 //
668 // PPC-AIX61:#define _AIX32 1
669 // PPC-AIX61:#define _AIX41 1
670 // PPC-AIX61:#define _AIX43 1
671 // PPC-AIX61:#define _AIX50 1
672 // PPC-AIX61:#define _AIX51 1
673 // PPC-AIX61:#define _AIX52 1
674 // PPC-AIX61:#define _AIX53 1
675 // PPC-AIX61:#define _AIX61 1
676 // PPC-AIX61-NOT:#define _AIX71 1
677 // PPC-AIX61-NOT:#define _AIX72 1
678 // PPC-AIX61-NOT:#define _AIX73 1
679
680 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix5.3.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX53 %s
681 // PPC-AIX53:#define _AIX32 1
682 // PPC-AIX53:#define _AIX41 1
683 // PPC-AIX53:#define _AIX43 1
684 // PPC-AIX53:#define _AIX50 1
685 // PPC-AIX53:#define _AIX51 1
686 // PPC-AIX53:#define _AIX52 1
687 // PPC-AIX53:#define _AIX53 1
688 // PPC-AIX53-NOT:#define _AIX61 1
689 // PPC-AIX53-NOT:#define _AIX71 1
690 // PPC-AIX53-NOT:#define _AIX72 1
691 // PPC-AIX53-NOT:#define _AIX73 1
692
693 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix5.2.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX52 %s
694 // PPC-AIX52:#define _AIX32 1
695 // PPC-AIX52:#define _AIX41 1
696 // PPC-AIX52:#define _AIX43 1
697 // PPC-AIX52:#define _AIX50 1
698 // PPC-AIX52:#define _AIX51 1
699 // PPC-AIX52:#define _AIX52 1
700 // PPC-AIX52-NOT:#define _AIX53 1
701 // PPC-AIX52-NOT:#define _AIX61 1
702 // PPC-AIX52-NOT:#define _AIX71 1
703 // PPC-AIX52-NOT:#define _AIX72 1
704 // PPC-AIX52-NOT:#define _AIX73 1
705
706 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix5.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX51 %s
707 // PPC-AIX51:#define _AIX32 1
708 // PPC-AIX51:#define _AIX41 1
709 // PPC-AIX51:#define _AIX43 1
710 // PPC-AIX51:#define _AIX50 1
711 // PPC-AIX51:#define _AIX51 1
712 // PPC-AIX51-NOT:#define _AIX52 1
713 // PPC-AIX51-NOT:#define _AIX53 1
714 // PPC-AIX51-NOT:#define _AIX61 1
715 // PPC-AIX51-NOT:#define _AIX71 1
716 // PPC-AIX51-NOT:#define _AIX72 1
717 // PPC-AIX51-NOT:#define _AIX73 1
718
719 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix5.0.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX50 %s
720 // PPC-AIX50:#define _AIX32 1
721 // PPC-AIX50:#define _AIX41 1
722 // PPC-AIX50:#define _AIX43 1
723 // PPC-AIX50:#define _AIX50 1
724 // PPC-AIX50-NOT:#define _AIX51 1
725 // PPC-AIX50-NOT:#define _AIX52 1
726 // PPC-AIX50-NOT:#define _AIX53 1
727 // PPC-AIX50-NOT:#define _AIX61 1
728 // PPC-AIX50-NOT:#define _AIX71 1
729 // PPC-AIX50-NOT:#define _AIX72 1
730 // PPC-AIX50-NOT:#define _AIX73 1
731
732 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix4.3.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX43 %s
733 // PPC-AIX43:#define _AIX32 1
734 // PPC-AIX43:#define _AIX41 1
735 // PPC-AIX43:#define _AIX43 1
736 // PPC-AIX43-NOT:#define _AIX50 1
737 // PPC-AIX43-NOT:#define _AIX51 1
738 // PPC-AIX43-NOT:#define _AIX52 1
739 // PPC-AIX43-NOT:#define _AIX53 1
740 // PPC-AIX43-NOT:#define _AIX61 1
741 // PPC-AIX43-NOT:#define _AIX71 1
742 // PPC-AIX43-NOT:#define _AIX72 1
743 // PPC-AIX43-NOT:#define _AIX73 1
744
745 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix4.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX41 %s
746 // PPC-AIX41:#define _AIX32 1
747 // PPC-AIX41:#define _AIX41 1
748 // PPC-AIX41-NOT:#define _AIX43 1
749 // PPC-AIX41-NOT:#define _AIX50 1
750 // PPC-AIX41-NOT:#define _AIX51 1
751 // PPC-AIX41-NOT:#define _AIX52 1
752 // PPC-AIX41-NOT:#define _AIX53 1
753 // PPC-AIX41-NOT:#define _AIX61 1
754 // PPC-AIX41-NOT:#define _AIX71 1
755 // PPC-AIX41-NOT:#define _AIX72 1
756 // PPC-AIX41-NOT:#define _AIX73 1
757
758 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix3.2.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX32 %s
759 // PPC-AIX32:#define _AIX32 1
760 // PPC-AIX32-NOT:#define _AIX41 1
761 // PPC-AIX32-NOT:#define _AIX43 1
762 // PPC-AIX32-NOT:#define _AIX50 1
763 // PPC-AIX32-NOT:#define _AIX51 1
764 // PPC-AIX32-NOT:#define _AIX52 1
765 // PPC-AIX32-NOT:#define _AIX53 1
766 // PPC-AIX32-NOT:#define _AIX61 1
767 // PPC-AIX32-NOT:#define _AIX71 1
768 // PPC-AIX32-NOT:#define _AIX72 1
769 // PPC-AIX32-NOT:#define _AIX73 1
770
771 // RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-CXX %s
772 //
773 // PPC-AIX-CXX:#define _WCHAR_T 1
774
775 // RUN: %clang_cc1 -x c++ -fno-wchar -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-NOWCHAR %s
776 // RUN: %clang_cc1 -x c -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-NOWCHAR %s
777 //
778 // PPC-AIX-NOWCHAR-NOT:#define _WCHAR_T 1
779
780 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char -pthread < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-THREADSAFE %s
781 // PPC-AIX-THREADSAFE:#define _THREAD_SAFE 1
782
783 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-NOTHREADSAFE %s
784 // PPC-AIX-NOTHREADSAFE-NOT:#define _THREAD_SAFE 1
785
786 // RUN: %clang_cc1 -x c -std=c11 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-STDC %s
787 // RUN: %clang_cc1 -x c -std=gnu11 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-STDC %s
788 // RUN: %clang_cc1 -x c -std=c17 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-STDC %s
789 // PPC-AIX-STDC:#define __STDC_NO_ATOMICS__ 1
790 // PPC-AIX-STDC:#define __STDC_NO_THREADS__ 1
791
792 // RUN: %clang_cc1 -x c -std=c99 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-STDC-N %s
793 // PPC-AIX-STDC-N-NOT:#define __STDC_NO_ATOMICS__ 1
794 // PPC-AIX-STDC-N-NOT:#define __STDC_NO_THREADS__ 1
795
796 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-ibm-aix7.1.0.0 -mlong-double-64 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-AIX-LD64 %s
797 // PPC-AIX-LD64:#define __LONGDOUBLE64 1
798
799 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-LINUX %s
800 //
801 // PPC-LINUX:#define _ARCH_PPC 1
802 // PPC-LINUX:#define _BIG_ENDIAN 1
803 // PPC-LINUX-NOT:#define _LP64
804 // PPC-LINUX:#define __BIGGEST_ALIGNMENT__ 16
805 // PPC-LINUX:#define __BIG_ENDIAN__ 1
806 // PPC-LINUX:#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
807 // PPC-LINUX:#define __CHAR16_TYPE__ unsigned short
808 // PPC-LINUX:#define __CHAR32_TYPE__ unsigned int
809 // PPC-LINUX:#define __CHAR_BIT__ 8
810 // PPC-LINUX:#define __CHAR_UNSIGNED__ 1
811 // PPC-LINUX:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
812 // PPC-LINUX:#define __DBL_DIG__ 15
813 // PPC-LINUX:#define __DBL_EPSILON__ 2.2204460492503131e-16
814 // PPC-LINUX:#define __DBL_HAS_DENORM__ 1
815 // PPC-LINUX:#define __DBL_HAS_INFINITY__ 1
816 // PPC-LINUX:#define __DBL_HAS_QUIET_NAN__ 1
817 // PPC-LINUX:#define __DBL_MANT_DIG__ 53
818 // PPC-LINUX:#define __DBL_MAX_10_EXP__ 308
819 // PPC-LINUX:#define __DBL_MAX_EXP__ 1024
820 // PPC-LINUX:#define __DBL_MAX__ 1.7976931348623157e+308
821 // PPC-LINUX:#define __DBL_MIN_10_EXP__ (-307)
822 // PPC-LINUX:#define __DBL_MIN_EXP__ (-1021)
823 // PPC-LINUX:#define __DBL_MIN__ 2.2250738585072014e-308
824 // PPC-LINUX:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
825 // PPC-LINUX:#define __FLT_DENORM_MIN__ 1.40129846e-45F
826 // PPC-LINUX:#define __FLT_DIG__ 6
827 // PPC-LINUX:#define __FLT_EPSILON__ 1.19209290e-7F
828 // PPC-LINUX:#define __FLT_HAS_DENORM__ 1
829 // PPC-LINUX:#define __FLT_HAS_INFINITY__ 1
830 // PPC-LINUX:#define __FLT_HAS_QUIET_NAN__ 1
831 // PPC-LINUX:#define __FLT_MANT_DIG__ 24
832 // PPC-LINUX:#define __FLT_MAX_10_EXP__ 38
833 // PPC-LINUX:#define __FLT_MAX_EXP__ 128
834 // PPC-LINUX:#define __FLT_MAX__ 3.40282347e+38F
835 // PPC-LINUX:#define __FLT_MIN_10_EXP__ (-37)
836 // PPC-LINUX:#define __FLT_MIN_EXP__ (-125)
837 // PPC-LINUX:#define __FLT_MIN__ 1.17549435e-38F
838 // PPC-LINUX:#define __FLT_RADIX__ 2
839 // PPC-LINUX:#define __HAVE_BSWAP__ 1
840 // PPC-LINUX:#define __INT16_C(c) c
841 // PPC-LINUX:#define __INT16_C_SUFFIX__
842 // PPC-LINUX:#define __INT16_FMTd__ "hd"
843 // PPC-LINUX:#define __INT16_FMTi__ "hi"
844 // PPC-LINUX:#define __INT16_MAX__ 32767
845 // PPC-LINUX:#define __INT16_TYPE__ short
846 // PPC-LINUX:#define __INT32_C(c) c
847 // PPC-LINUX:#define __INT32_C_SUFFIX__
848 // PPC-LINUX:#define __INT32_FMTd__ "d"
849 // PPC-LINUX:#define __INT32_FMTi__ "i"
850 // PPC-LINUX:#define __INT32_MAX__ 2147483647
851 // PPC-LINUX:#define __INT32_TYPE__ int
852 // PPC-LINUX:#define __INT64_C(c) c##LL
853 // PPC-LINUX:#define __INT64_C_SUFFIX__ LL
854 // PPC-LINUX:#define __INT64_FMTd__ "lld"
855 // PPC-LINUX:#define __INT64_FMTi__ "lli"
856 // PPC-LINUX:#define __INT64_MAX__ 9223372036854775807LL
857 // PPC-LINUX:#define __INT64_TYPE__ long long int
858 // PPC-LINUX:#define __INT8_C(c) c
859 // PPC-LINUX:#define __INT8_C_SUFFIX__
860 // PPC-LINUX:#define __INT8_FMTd__ "hhd"
861 // PPC-LINUX:#define __INT8_FMTi__ "hhi"
862 // PPC-LINUX:#define __INT8_MAX__ 127
863 // PPC-LINUX:#define __INT8_TYPE__ signed char
864 // PPC-LINUX:#define __INTMAX_C(c) c##LL
865 // PPC-LINUX:#define __INTMAX_C_SUFFIX__ LL
866 // PPC-LINUX:#define __INTMAX_FMTd__ "lld"
867 // PPC-LINUX:#define __INTMAX_FMTi__ "lli"
868 // PPC-LINUX:#define __INTMAX_MAX__ 9223372036854775807LL
869 // PPC-LINUX:#define __INTMAX_TYPE__ long long int
870 // PPC-LINUX:#define __INTMAX_WIDTH__ 64
871 // PPC-LINUX:#define __INTPTR_FMTd__ "d"
872 // PPC-LINUX:#define __INTPTR_FMTi__ "i"
873 // PPC-LINUX:#define __INTPTR_MAX__ 2147483647
874 // PPC-LINUX:#define __INTPTR_TYPE__ int
875 // PPC-LINUX:#define __INTPTR_WIDTH__ 32
876 // PPC-LINUX:#define __INT_FAST16_FMTd__ "hd"
877 // PPC-LINUX:#define __INT_FAST16_FMTi__ "hi"
878 // PPC-LINUX:#define __INT_FAST16_MAX__ 32767
879 // PPC-LINUX:#define __INT_FAST16_TYPE__ short
880 // PPC-LINUX:#define __INT_FAST32_FMTd__ "d"
881 // PPC-LINUX:#define __INT_FAST32_FMTi__ "i"
882 // PPC-LINUX:#define __INT_FAST32_MAX__ 2147483647
883 // PPC-LINUX:#define __INT_FAST32_TYPE__ int
884 // PPC-LINUX:#define __INT_FAST64_FMTd__ "lld"
885 // PPC-LINUX:#define __INT_FAST64_FMTi__ "lli"
886 // PPC-LINUX:#define __INT_FAST64_MAX__ 9223372036854775807LL
887 // PPC-LINUX:#define __INT_FAST64_TYPE__ long long int
888 // PPC-LINUX:#define __INT_FAST8_FMTd__ "hhd"
889 // PPC-LINUX:#define __INT_FAST8_FMTi__ "hhi"
890 // PPC-LINUX:#define __INT_FAST8_MAX__ 127
891 // PPC-LINUX:#define __INT_FAST8_TYPE__ signed char
892 // PPC-LINUX:#define __INT_LEAST16_FMTd__ "hd"
893 // PPC-LINUX:#define __INT_LEAST16_FMTi__ "hi"
894 // PPC-LINUX:#define __INT_LEAST16_MAX__ 32767
895 // PPC-LINUX:#define __INT_LEAST16_TYPE__ short
896 // PPC-LINUX:#define __INT_LEAST32_FMTd__ "d"
897 // PPC-LINUX:#define __INT_LEAST32_FMTi__ "i"
898 // PPC-LINUX:#define __INT_LEAST32_MAX__ 2147483647
899 // PPC-LINUX:#define __INT_LEAST32_TYPE__ int
900 // PPC-LINUX:#define __INT_LEAST64_FMTd__ "lld"
901 // PPC-LINUX:#define __INT_LEAST64_FMTi__ "lli"
902 // PPC-LINUX:#define __INT_LEAST64_MAX__ 9223372036854775807LL
903 // PPC-LINUX:#define __INT_LEAST64_TYPE__ long long int
904 // PPC-LINUX:#define __INT_LEAST8_FMTd__ "hhd"
905 // PPC-LINUX:#define __INT_LEAST8_FMTi__ "hhi"
906 // PPC-LINUX:#define __INT_LEAST8_MAX__ 127
907 // PPC-LINUX:#define __INT_LEAST8_TYPE__ signed char
908 // PPC-LINUX:#define __INT_MAX__ 2147483647
909 // PPC-LINUX:#define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L
910 // PPC-LINUX:#define __LDBL_DIG__ 31
911 // PPC-LINUX:#define __LDBL_EPSILON__ 4.94065645841246544176568792868221e-324L
912 // PPC-LINUX:#define __LDBL_HAS_DENORM__ 1
913 // PPC-LINUX:#define __LDBL_HAS_INFINITY__ 1
914 // PPC-LINUX:#define __LDBL_HAS_QUIET_NAN__ 1
915 // PPC-LINUX:#define __LDBL_MANT_DIG__ 106
916 // PPC-LINUX:#define __LDBL_MAX_10_EXP__ 308
917 // PPC-LINUX:#define __LDBL_MAX_EXP__ 1024
918 // PPC-LINUX:#define __LDBL_MAX__ 1.79769313486231580793728971405301e+308L
919 // PPC-LINUX:#define __LDBL_MIN_10_EXP__ (-291)
920 // PPC-LINUX:#define __LDBL_MIN_EXP__ (-968)
921 // PPC-LINUX:#define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L
922 // PPC-LINUX:#define __LONGDOUBLE128 1
923 // PPC-LINUX:#define __LONG_DOUBLE_128__ 1
924 // PPC-LINUX:#define __LONG_LONG_MAX__ 9223372036854775807LL
925 // PPC-LINUX:#define __LONG_MAX__ 2147483647L
926 // PPC-LINUX-NOT:#define __LP64__
927 // PPC-LINUX:#define __NATURAL_ALIGNMENT__ 1
928 // PPC-LINUX:#define __POINTER_WIDTH__ 32
929 // PPC-LINUX:#define __POWERPC__ 1
930 // PPC-LINUX:#define __PPC__ 1
931 // PPC-LINUX:#define __PTRDIFF_TYPE__ int
932 // PPC-LINUX:#define __PTRDIFF_WIDTH__ 32
933 // PPC-LINUX:#define __REGISTER_PREFIX__
934 // PPC-LINUX:#define __SCHAR_MAX__ 127
935 // PPC-LINUX:#define __SHRT_MAX__ 32767
936 // PPC-LINUX:#define __SIG_ATOMIC_MAX__ 2147483647
937 // PPC-LINUX:#define __SIG_ATOMIC_WIDTH__ 32
938 // PPC-LINUX:#define __SIZEOF_DOUBLE__ 8
939 // PPC-LINUX:#define __SIZEOF_FLOAT__ 4
940 // PPC-LINUX:#define __SIZEOF_INT__ 4
941 // PPC-LINUX:#define __SIZEOF_LONG_DOUBLE__ 16
942 // PPC-LINUX:#define __SIZEOF_LONG_LONG__ 8
943 // PPC-LINUX:#define __SIZEOF_LONG__ 4
944 // PPC-LINUX:#define __SIZEOF_POINTER__ 4
945 // PPC-LINUX:#define __SIZEOF_PTRDIFF_T__ 4
946 // PPC-LINUX:#define __SIZEOF_SHORT__ 2
947 // PPC-LINUX:#define __SIZEOF_SIZE_T__ 4
948 // PPC-LINUX:#define __SIZEOF_WCHAR_T__ 4
949 // PPC-LINUX:#define __SIZEOF_WINT_T__ 4
950 // PPC-LINUX:#define __SIZE_MAX__ 4294967295U
951 // PPC-LINUX:#define __SIZE_TYPE__ unsigned int
952 // PPC-LINUX:#define __SIZE_WIDTH__ 32
953 // PPC-LINUX:#define __UINT16_C(c) c
954 // PPC-LINUX:#define __UINT16_C_SUFFIX__
955 // PPC-LINUX:#define __UINT16_MAX__ 65535
956 // PPC-LINUX:#define __UINT16_TYPE__ unsigned short
957 // PPC-LINUX:#define __UINT32_C(c) c##U
958 // PPC-LINUX:#define __UINT32_C_SUFFIX__ U
959 // PPC-LINUX:#define __UINT32_MAX__ 4294967295U
960 // PPC-LINUX:#define __UINT32_TYPE__ unsigned int
961 // PPC-LINUX:#define __UINT64_C(c) c##ULL
962 // PPC-LINUX:#define __UINT64_C_SUFFIX__ ULL
963 // PPC-LINUX:#define __UINT64_MAX__ 18446744073709551615ULL
964 // PPC-LINUX:#define __UINT64_TYPE__ long long unsigned int
965 // PPC-LINUX:#define __UINT8_C(c) c
966 // PPC-LINUX:#define __UINT8_C_SUFFIX__
967 // PPC-LINUX:#define __UINT8_MAX__ 255
968 // PPC-LINUX:#define __UINT8_TYPE__ unsigned char
969 // PPC-LINUX:#define __UINTMAX_C(c) c##ULL
970 // PPC-LINUX:#define __UINTMAX_C_SUFFIX__ ULL
971 // PPC-LINUX:#define __UINTMAX_MAX__ 18446744073709551615ULL
972 // PPC-LINUX:#define __UINTMAX_TYPE__ long long unsigned int
973 // PPC-LINUX:#define __UINTMAX_WIDTH__ 64
974 // PPC-LINUX:#define __UINTPTR_MAX__ 4294967295U
975 // PPC-LINUX:#define __UINTPTR_TYPE__ unsigned int
976 // PPC-LINUX:#define __UINTPTR_WIDTH__ 32
977 // PPC-LINUX:#define __UINT_FAST16_MAX__ 65535
978 // PPC-LINUX:#define __UINT_FAST16_TYPE__ unsigned short
979 // PPC-LINUX:#define __UINT_FAST32_MAX__ 4294967295U
980 // PPC-LINUX:#define __UINT_FAST32_TYPE__ unsigned int
981 // PPC-LINUX:#define __UINT_FAST64_MAX__ 18446744073709551615ULL
982 // PPC-LINUX:#define __UINT_FAST64_TYPE__ long long unsigned int
983 // PPC-LINUX:#define __UINT_FAST8_MAX__ 255
984 // PPC-LINUX:#define __UINT_FAST8_TYPE__ unsigned char
985 // PPC-LINUX:#define __UINT_LEAST16_MAX__ 65535
986 // PPC-LINUX:#define __UINT_LEAST16_TYPE__ unsigned short
987 // PPC-LINUX:#define __UINT_LEAST32_MAX__ 4294967295U
988 // PPC-LINUX:#define __UINT_LEAST32_TYPE__ unsigned int
989 // PPC-LINUX:#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
990 // PPC-LINUX:#define __UINT_LEAST64_TYPE__ long long unsigned int
991 // PPC-LINUX:#define __UINT_LEAST8_MAX__ 255
992 // PPC-LINUX:#define __UINT_LEAST8_TYPE__ unsigned char
993 // PPC-LINUX:#define __USER_LABEL_PREFIX__
994 // PPC-LINUX:#define __WCHAR_MAX__ 2147483647
995 // PPC-LINUX:#define __WCHAR_TYPE__ int
996 // PPC-LINUX:#define __WCHAR_WIDTH__ 32
997 // PPC-LINUX:#define __WINT_TYPE__ unsigned int
998 // PPC-LINUX:#define __WINT_UNSIGNED__ 1
999 // PPC-LINUX:#define __WINT_WIDTH__ 32
1000 // PPC-LINUX:#define __powerpc__ 1
1001 // PPC-LINUX:#define __ppc__ 1
1002
1003 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC32-LINUX %s
1004 //
1005 // PPC32-LINUX-NOT: _CALL_LINUX
1006
1007 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -target-feature +spe < /dev/null | FileCheck -match-full-lines -check-prefix PPC32-SPE %s
1008 //
1009 // PPC32-SPE:#define __NO_FPRS__ 1
1010 // PPC32-SPE:#define __SPE__ 1
1011
1012 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -target-cpu 8548 < /dev/null | FileCheck -match-full-lines -check-prefix PPC8548 %s
1013 //
1014 // PPC8548:#define __NO_FPRS__ 1
1015 // PPC8548:#define __NO_LWSYNC__ 1
1016 // PPC8548:#define __SPE__ 1
1017
1018 // RUN: %clang_cc1 -E -dM -triple=powerpc-unknown-openbsd -x c++ < /dev/null | FileCheck -match-full-lines -check-prefix PPC-OPENBSD-CXX %s
1019 // PPC-OPENBSD-CXX: #define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16UL
1020
1021 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-none-none < /dev/null | FileCheck -match-full-lines -check-prefix PPCPWR4-RSQRT %s
1022 //
1023 // PPCPWR4-RSQRT-NOT:#define __RSQRTEF__ 1
1024 // PPCPWR4-RSQRT-NOT:#define __RSQRTE__ 1
1025 //
1026 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-none-none -target-feature +frsqrte -target-feature +frsqrtes < /dev/null | FileCheck -match-full-lines -check-prefix PPCPWR5-RSQRT %s
1027 //
1028 // PPCPWR5-RSQRT:#define __RSQRTEF__ 1
1029 // PPCPWR5-RSQRT:#define __RSQRTE__ 1
1030
1031 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -target-feature -hard-float < /dev/null | FileCheck -match-full-lines -check-prefix PPC-SOFTFLT %s
1032 //
1033 // PPC-SOFTFLT:#define _SOFT_DOUBLE 1
1034 // PPC-SOFTFLT:#define _SOFT_FLOAT 1
1035 // PPC-SOFTFLT:#define __NO_FPRS__ 1
1036 // PPC-SOFTFLT-NOT:#define __RSQRTE__ 1
1037 // PPC-SOFTFLT-NOT:#define __RSQRTEF__ 1