blob: e292bd3ec7e5a0e6f5be60015bf7303f22b035e1 [file] [log] [blame]
Chris Lattnerbceaf862009-10-29 04:55:36 +00001// RUN: clang-cc -E -ffreestanding -triple=arm-none-none %s | FileCheck -check-prefix ARM %s &&
2//
3// ARM:typedef signed char int8_t;
4// ARM:typedef short int16_t;
5// ARM:typedef int int32_t;
6// ARM:typedef long long int int64_t;
7//
8// ARM:typedef unsigned char uint8_t;
9// ARM:typedef int8_t int_least8_t;
10// ARM:typedef uint8_t uint_least8_t;
11// ARM:typedef int8_t int_fast8_t;
12// ARM:typedef uint8_t uint_fast8_t;
13//
14// ARM:typedef unsigned short uint16_t;
15// ARM:typedef int16_t int_least16_t;
16// ARM:typedef uint16_t uint_least16_t;
17// ARM:typedef int16_t int_fast16_t;
18// ARM:typedef uint16_t uint_fast16_t;
19//
20// ARM:typedef unsigned int uint32_t;
21// ARM:typedef int32_t int_least32_t;
22// ARM:typedef uint32_t uint_least32_t;
23// ARM:typedef int32_t int_fast32_t;
24// ARM:typedef uint32_t uint_fast32_t;
25//
26// ARM:typedef unsigned long long int uint64_t;
27// ARM:typedef int64_t int_least64_t;
28// ARM:typedef uint64_t uint_least64_t;
29// ARM:typedef int64_t int_fast64_t;
30// ARM:typedef uint64_t uint_fast64_t;
31//
32// ARM:typedef long int intptr_t;
33// ARM:typedef unsigned long int uintptr_t;
34//
35// ARM:typedef long long int intmax_t;
36// ARM:typedef long long unsigned int uintmax_t;
37//
38// ARM:INT8_MAX_ 127
39// ARM:INT8_MIN_ (-128)
40// ARM:UINT8_MAX_ 255
41// ARM:INT_LEAST8_MIN_ (-128)
42// ARM:INT_LEAST8_MAX_ 127
43// ARM:UINT_LEAST8_MAX_ 255
44// ARM:INT_FAST8_MIN_ (-128)
45// ARM:INT_FAST8_MAX_ 127
46// ARM:UINT_FAST8_MAX_ 255
47//
48// ARM:INT16_MAX_ 32767
49// ARM:INT16_MIN_ (-32768)
50// ARM:UINT16_MAX_ 65535
51// ARM:INT_LEAST16_MIN_ (-32768)
52// ARM:INT_LEAST16_MAX_ 32767
53// ARM:UINT_LEAST16_MAX_ 65535
54// ARM:INT_FAST16_MIN_ (-32768)
55// ARM:INT_FAST16_MAX_ 32767
56// ARM:UINT_FAST16_MAX_ 65535
57//
58// ARM:INT32_MAX_ 2147483647
59// ARM:INT32_MIN_ (-2147483647 -1)
60// ARM:UINT32_MAX_ 4294967295U
61// ARM:INT_LEAST32_MIN_ (-2147483647 -1)
62// ARM:INT_LEAST32_MAX_ 2147483647
63// ARM:UINT_LEAST32_MAX_ 4294967295U
64// ARM:INT_FAST32_MIN_ (-2147483647 -1)
65// ARM:INT_FAST32_MAX_ 2147483647
66// ARM:UINT_FAST32_MAX_ 4294967295U
67//
68// ARM:INT64_MAX_ 9223372036854775807LL
69// ARM:INT64_MIN_ (-9223372036854775807LL -1)
70// ARM:UINT64_MAX_ 18446744073709551615ULL
71// ARM:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
72// ARM:INT_LEAST64_MAX_ 9223372036854775807LL
73// ARM:UINT_LEAST64_MAX_ 18446744073709551615ULL
74// ARM:INT_FAST64_MIN_ (-9223372036854775807LL -1)
75// ARM:INT_FAST64_MAX_ 9223372036854775807LL
76// ARM:UINT_FAST64_MAX_ 18446744073709551615ULL
77//
78// ARM:INTPTR_MIN_ (-2147483647 -1)
79// ARM:INTPTR_MAX_ 2147483647
80// ARM:UINTPTR_MAX_ 4294967295U
81// ARM:PTRDIFF_MIN_ (-2147483647 -1)
82// ARM:PTRDIFF_MAX_ 2147483647
83// ARM:SIZE_MAX_ 4294967295U
84//
85// ARM:INTMAX_MIN_ (-9223372036854775807LL -1)
86// ARM:INTMAX_MAX_ 9223372036854775807LL
87// ARM:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
88//
89// ARM:SIG_ATOMIC_MIN_ (-2147483647 -1)
90// ARM:SIG_ATOMIC_MAX_ 2147483647
91// ARM:WINT_MIN_ (-2147483647 -1)
92// ARM:WINT_MAX_ 2147483647
93//
94// ARM:WCHAR_MAX_ 2147483647
95// ARM:WCHAR_MIN_ (-2147483647 -1)
96//
97// ARM:INT8_C_(0) (0)
98// ARM:UINT8_C_(0) (0U)
99// ARM:INT16_C_(0) (0)
100// ARM:UINT16_C_(0) (0U)
101// ARM:INT32_C_(0) (0)
102// ARM:UINT32_C_(0) (0U)
103// ARM:INT64_C_(0) (0LL)
104// ARM:UINT64_C_(0) (0ULL)
105//
106// ARM:INTMAX_C_(0) (0LL)
107// ARM:UINTMAX_C_(0) (0ULL)
108//
109//
110// RUN: clang-cc -E -ffreestanding -triple=bfin-none-none %s | FileCheck -check-prefix BFIN %s &&
111//
112// BFIN:typedef signed char int8_t;
113// BFIN:typedef short int16_t;
114// BFIN:typedef int int32_t;
115//
116// BFIN:typedef long long int int64_t;
117//
118// BFIN:typedef unsigned char uint8_t;
119// BFIN:typedef int8_t int_least8_t;
120// BFIN:typedef uint8_t uint_least8_t;
121// BFIN:typedef int8_t int_fast8_t;
122// BFIN:typedef uint8_t uint_fast8_t;
123//
124// BFIN:typedef unsigned short uint16_t;
125// BFIN:typedef int16_t int_least16_t;
126// BFIN:typedef uint16_t uint_least16_t;
127// BFIN:typedef int16_t int_fast16_t;
128// BFIN:typedef uint16_t uint_fast16_t;
129//
130// BFIN:typedef unsigned int uint32_t;
131// BFIN:typedef int32_t int_least32_t;
132// BFIN:typedef uint32_t uint_least32_t;
133// BFIN:typedef int32_t int_fast32_t;
134// BFIN:typedef uint32_t uint_fast32_t;
135//
136// BFIN:typedef unsigned long long int uint64_t;
137// BFIN:typedef int64_t int_least64_t;
138// BFIN:typedef uint64_t uint_least64_t;
139// BFIN:typedef int64_t int_fast64_t;
140// BFIN:typedef uint64_t uint_fast64_t;
141//
142// BFIN:typedef long int intptr_t;
143// BFIN:typedef unsigned long int uintptr_t;
144//
145// BFIN:typedef long long int intmax_t;
146// BFIN:typedef long long unsigned int uintmax_t;
147//
148// BFIN:INT8_MAX_ 127
149// BFIN:INT8_MIN_ (-128)
150// BFIN:UINT8_MAX_ 255
151// BFIN:INT_LEAST8_MIN_ (-128)
152// BFIN:INT_LEAST8_MAX_ 127
153// BFIN:UINT_LEAST8_MAX_ 255
154// BFIN:INT_FAST8_MIN_ (-128)
155// BFIN:INT_FAST8_MAX_ 127
156// BFIN:UINT_FAST8_MAX_ 255
157//
158// BFIN:INT16_MAX_ 32767
159// BFIN:INT16_MIN_ (-32768)
160// BFIN:UINT16_MAX_ 65535
161// BFIN:INT_LEAST16_MIN_ (-32768)
162// BFIN:INT_LEAST16_MAX_ 32767
163// BFIN:UINT_LEAST16_MAX_ 65535
164// BFIN:INT_FAST16_MIN_ (-32768)
165// BFIN:INT_FAST16_MAX_ 32767
166// BFIN:UINT_FAST16_MAX_ 65535
167//
168// BFIN:INT32_MAX_ 2147483647
169// BFIN:INT32_MIN_ (-2147483647 -1)
170// BFIN:UINT32_MAX_ 4294967295U
171// BFIN:INT_LEAST32_MIN_ (-2147483647 -1)
172// BFIN:INT_LEAST32_MAX_ 2147483647
173// BFIN:UINT_LEAST32_MAX_ 4294967295U
174// BFIN:INT_FAST32_MIN_ (-2147483647 -1)
175// BFIN:INT_FAST32_MAX_ 2147483647
176// BFIN:UINT_FAST32_MAX_ 4294967295U
177//
178// BFIN:INT64_MAX_ 9223372036854775807LL
179// BFIN:INT64_MIN_ (-9223372036854775807LL -1)
180// BFIN:UINT64_MAX_ 18446744073709551615ULL
181// BFIN:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
182// BFIN:INT_LEAST64_MAX_ 9223372036854775807LL
183// BFIN:UINT_LEAST64_MAX_ 18446744073709551615ULL
184// BFIN:INT_FAST64_MIN_ (-9223372036854775807LL -1)
185// BFIN:INT_FAST64_MAX_ 9223372036854775807LL
186// BFIN:UINT_FAST64_MAX_ 18446744073709551615ULL
187//
188// BFIN:INTPTR_MIN_ (-2147483647 -1)
189// BFIN:INTPTR_MAX_ 2147483647
190// BFIN:UINTPTR_MAX_ 4294967295U
191// BFIN:PTRDIFF_MIN_ (-2147483647 -1)
192// BFIN:PTRDIFF_MAX_ 2147483647
193// BFIN:SIZE_MAX_ 4294967295U
194//
195// BFIN:INTMAX_MIN_ (-9223372036854775807LL -1)
196// BFIN:INTMAX_MAX_ 9223372036854775807LL
197// BFIN:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
198//
199// BFIN:SIG_ATOMIC_MIN_ (-2147483647 -1)
200// BFIN:SIG_ATOMIC_MAX_ 2147483647
201// BFIN:WINT_MIN_ (-2147483647 -1)
202// BFIN:WINT_MAX_ 2147483647
203//
204// BFIN:WCHAR_MAX_ 2147483647
205// BFIN:WCHAR_MIN_ (-2147483647 -1)
206//
207// BFIN:INT8_C_(0) (0)
208// BFIN:UINT8_C_(0) (0U)
209// BFIN:INT16_C_(0) (0)
210// BFIN:UINT16_C_(0) (0U)
211// BFIN:INT32_C_(0) (0)
212// BFIN:UINT32_C_(0) (0U)
213// BFIN:INT64_C_(0) (0LL)
214// BFIN:UINT64_C_(0) (0ULL)
215//
216// BFIN:INTMAX_C_(0) (0LL)
217// BFIN:UINTMAX_C_(0) (0ULL)
218//
219//
220// RUN: clang-cc -E -ffreestanding -triple=i386-none-none %s | FileCheck -check-prefix I386 %s &&
221//
222// I386:typedef signed char int8_t;
223// I386:typedef short int16_t;
224// I386:typedef int int32_t;
225// I386:typedef long long int int64_t;
226//
227// I386:typedef unsigned char uint8_t;
228// I386:typedef int8_t int_least8_t;
229// I386:typedef uint8_t uint_least8_t;
230// I386:typedef int8_t int_fast8_t;
231// I386:typedef uint8_t uint_fast8_t;
232//
233// I386:typedef unsigned short uint16_t;
234// I386:typedef int16_t int_least16_t;
235// I386:typedef uint16_t uint_least16_t;
236// I386:typedef int16_t int_fast16_t;
237// I386:typedef uint16_t uint_fast16_t;
238//
239// I386:typedef unsigned int uint32_t;
240// I386:typedef int32_t int_least32_t;
241// I386:typedef uint32_t uint_least32_t;
242// I386:typedef int32_t int_fast32_t;
243// I386:typedef uint32_t uint_fast32_t;
244//
245// I386:typedef unsigned long long int uint64_t;
246// I386:typedef int64_t int_least64_t;
247// I386:typedef uint64_t uint_least64_t;
248// I386:typedef int64_t int_fast64_t;
249// I386:typedef uint64_t uint_fast64_t;
250//
251// I386:typedef int intptr_t;
252// I386:typedef unsigned int uintptr_t;
253//
254// I386:typedef long long int intmax_t;
255// I386:typedef long long unsigned int uintmax_t;
256//
257// I386:INT8_MAX_ 127
258// I386:INT8_MIN_ (-128)
259// I386:UINT8_MAX_ 255
260// I386:INT_LEAST8_MIN_ (-128)
261// I386:INT_LEAST8_MAX_ 127
262// I386:UINT_LEAST8_MAX_ 255
263// I386:INT_FAST8_MIN_ (-128)
264// I386:INT_FAST8_MAX_ 127
265// I386:UINT_FAST8_MAX_ 255
266//
267// I386:INT16_MAX_ 32767
268// I386:INT16_MIN_ (-32768)
269// I386:UINT16_MAX_ 65535
270// I386:INT_LEAST16_MIN_ (-32768)
271// I386:INT_LEAST16_MAX_ 32767
272// I386:UINT_LEAST16_MAX_ 65535
273// I386:INT_FAST16_MIN_ (-32768)
274// I386:INT_FAST16_MAX_ 32767
275// I386:UINT_FAST16_MAX_ 65535
276//
277// I386:INT32_MAX_ 2147483647
278// I386:INT32_MIN_ (-2147483647 -1)
279// I386:UINT32_MAX_ 4294967295U
280// I386:INT_LEAST32_MIN_ (-2147483647 -1)
281// I386:INT_LEAST32_MAX_ 2147483647
282// I386:UINT_LEAST32_MAX_ 4294967295U
283// I386:INT_FAST32_MIN_ (-2147483647 -1)
284// I386:INT_FAST32_MAX_ 2147483647
285// I386:UINT_FAST32_MAX_ 4294967295U
286//
287// I386:INT64_MAX_ 9223372036854775807LL
288// I386:INT64_MIN_ (-9223372036854775807LL -1)
289// I386:UINT64_MAX_ 18446744073709551615ULL
290// I386:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
291// I386:INT_LEAST64_MAX_ 9223372036854775807LL
292// I386:UINT_LEAST64_MAX_ 18446744073709551615ULL
293// I386:INT_FAST64_MIN_ (-9223372036854775807LL -1)
294// I386:INT_FAST64_MAX_ 9223372036854775807LL
295// I386:UINT_FAST64_MAX_ 18446744073709551615ULL
296//
297// I386:INTPTR_MIN_ (-2147483647 -1)
298// I386:INTPTR_MAX_ 2147483647
299// I386:UINTPTR_MAX_ 4294967295U
300// I386:PTRDIFF_MIN_ (-2147483647 -1)
301// I386:PTRDIFF_MAX_ 2147483647
302// I386:SIZE_MAX_ 4294967295U
303//
304// I386:INTMAX_MIN_ (-9223372036854775807LL -1)
305// I386:INTMAX_MAX_ 9223372036854775807LL
306// I386:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
307//
308// I386:SIG_ATOMIC_MIN_ (-2147483647 -1)
309// I386:SIG_ATOMIC_MAX_ 2147483647
310// I386:WINT_MIN_ (-2147483647 -1)
311// I386:WINT_MAX_ 2147483647
312//
313// I386:WCHAR_MAX_ 2147483647
314// I386:WCHAR_MIN_ (-2147483647 -1)
315//
316// I386:INT8_C_(0) (0)
317// I386:UINT8_C_(0) (0U)
318// I386:INT16_C_(0) (0)
319// I386:UINT16_C_(0) (0U)
320// I386:INT32_C_(0) (0)
321// I386:UINT32_C_(0) (0U)
322// I386:INT64_C_(0) (0LL)
323// I386:UINT64_C_(0) (0ULL)
324//
325// I386:INTMAX_C_(0) (0LL)
326// I386:UINTMAX_C_(0) (0ULL)
327//
328// RUN: clang-cc -E -ffreestanding -triple=msp430-none-none %s | FileCheck -check-prefix MSP430 %s &&
329//
330// MSP430:typedef signed char int8_t;
331// MSP430:typedef short int16_t;
332// MSP430:typedef long long int32_t;
333//
334// MSP430:typedef unsigned char uint8_t;
335// MSP430:typedef int8_t int_least8_t;
336// MSP430:typedef uint8_t uint_least8_t;
337// MSP430:typedef int8_t int_fast8_t;
338// MSP430:typedef uint8_t uint_fast8_t;
339//
340// MSP430:typedef unsigned short uint16_t;
341// MSP430:typedef int16_t int_least16_t;
342// MSP430:typedef uint16_t uint_least16_t;
343// MSP430:typedef int16_t int_fast16_t;
344// MSP430:typedef uint16_t uint_fast16_t;
345//
346// MSP430:typedef unsigned long long uint32_t;
347// MSP430:typedef int32_t int_least32_t;
348// MSP430:typedef uint32_t uint_least32_t;
349// MSP430:typedef int32_t int_fast32_t;
350// MSP430:typedef uint32_t uint_fast32_t;
351//
352// MSP430:typedef short intptr_t;
353// MSP430:typedef unsigned short uintptr_t;
354//
355// MSP430:typedef long int intmax_t;
356// MSP430:typedef long unsigned int uintmax_t;
357//
358// MSP430:INT8_MAX_ 127
359// MSP430:INT8_MIN_ (-128)
360// MSP430:UINT8_MAX_ 255
361// MSP430:INT_LEAST8_MIN_ (-128)
362// MSP430:INT_LEAST8_MAX_ 127
363// MSP430:UINT_LEAST8_MAX_ 255
364// MSP430:INT_FAST8_MIN_ (-128)
365// MSP430:INT_FAST8_MAX_ 127
366// MSP430:UINT_FAST8_MAX_ 255
367//
368// MSP430:INT16_MAX_ 32767
369// MSP430:INT16_MIN_ (-32768)
370// MSP430:UINT16_MAX_ 65535
371// MSP430:INT_LEAST16_MIN_ (-32768)
372// MSP430:INT_LEAST16_MAX_ 32767
373// MSP430:UINT_LEAST16_MAX_ 65535
374// MSP430:INT_FAST16_MIN_ (-32768)
375// MSP430:INT_FAST16_MAX_ 32767
376// MSP430:UINT_FAST16_MAX_ 65535
377//
378// MSP430:INT32_MAX_ 2147483647
379// MSP430:INT32_MIN_ (-2147483647 -1)
380// MSP430:UINT32_MAX_ 4294967295U
381// MSP430:INT_LEAST32_MIN_ (-2147483647 -1)
382// MSP430:INT_LEAST32_MAX_ 2147483647
383// MSP430:UINT_LEAST32_MAX_ 4294967295U
384// MSP430:INT_FAST32_MIN_ (-2147483647 -1)
385// MSP430:INT_FAST32_MAX_ 2147483647
386// MSP430:UINT_FAST32_MAX_ 4294967295U
387//
388// MSP430:INT64_MAX_ INT64_MAX
389// MSP430:INT64_MIN_ INT64_MIN
390// MSP430:UINT64_MAX_ UINT64_MAX
391// MSP430:INT_LEAST64_MIN_ INT_LEAST64_MIN
392// MSP430:INT_LEAST64_MAX_ INT_LEAST64_MAX
393// MSP430:UINT_LEAST64_MAX_ UINT_LEAST64_MAX
394// MSP430:INT_FAST64_MIN_ INT_FAST64_MIN
395// MSP430:INT_FAST64_MAX_ INT_FAST64_MAX
396// MSP430:UINT_FAST64_MAX_ UINT_FAST64_MAX
397//
398// MSP430:INTPTR_MIN_ (-32768)
399// MSP430:INTPTR_MAX_ 32767
400// MSP430:UINTPTR_MAX_ 65535
401// MSP430:PTRDIFF_MIN_ (-32768)
402// MSP430:PTRDIFF_MAX_ 32767
403// MSP430:SIZE_MAX_ 65535
404//
405// MSP430:INTMAX_MIN_ (-2147483647L -1)
406// MSP430:INTMAX_MAX_ 2147483647L
407// MSP430:UINTMAX_MAX_ (2147483647L*2ULL +1ULL)
408//
409// MSP430:SIG_ATOMIC_MIN_ (-2147483647 -1)
410// MSP430:SIG_ATOMIC_MAX_ 2147483647
411// MSP430:WINT_MIN_ (-2147483647 -1)
412// MSP430:WINT_MAX_ 2147483647
413//
414// MSP430:WCHAR_MAX_ 2147483647
415// MSP430:WCHAR_MIN_ (-2147483647 -1)
416//
417// MSP430:INT8_C_(0) (0)
418// MSP430:UINT8_C_(0) (0U)
419// MSP430:INT16_C_(0) (0)
420// MSP430:UINT16_C_(0) (0U)
421// MSP430:INT32_C_(0) (0)
422// MSP430:UINT32_C_(0) (0U)
423// MSP430:INT64_C_(0) INT64_C(0)
424// MSP430:UINT64_C_(0) UINT64_C(0)
425//
426// MSP430:INTMAX_C_(0) (0LL)
427// MSP430:UINTMAX_C_(0) (0ULL)
428//
429// RUN: clang-cc -E -ffreestanding -triple=pic16-none-none %s | FileCheck -check-prefix PIC16 %s &&
430//
431// PIC16:typedef signed char int8_t;
432// PIC16:typedef short int16_t;
433// PIC16:typedef long long int32_t;
434//
435// PIC16:typedef unsigned char uint8_t;
436// PIC16:typedef int8_t int_least8_t;
437// PIC16:typedef uint8_t uint_least8_t;
438// PIC16:typedef int8_t int_fast8_t;
439// PIC16:typedef uint8_t uint_fast8_t;
440//
441// PIC16:typedef unsigned short uint16_t;
442// PIC16:typedef int16_t int_least16_t;
443// PIC16:typedef uint16_t uint_least16_t;
444// PIC16:typedef int16_t int_fast16_t;
445// PIC16:typedef uint16_t uint_fast16_t;
446//
447// PIC16:typedef unsigned long long uint32_t;
448// PIC16:typedef int32_t int_least32_t;
449// PIC16:typedef uint32_t uint_least32_t;
450// PIC16:typedef int32_t int_fast32_t;
451// PIC16:typedef uint32_t uint_fast32_t;
452//
453// PIC16:typedef short intptr_t;
454// PIC16:typedef unsigned short uintptr_t;
455//
456// PIC16:typedef long int intmax_t;
457// PIC16:typedef long unsigned int uintmax_t;
458//
459// PIC16:INT8_MAX_ 127
460// PIC16:INT8_MIN_ (-128)
461// PIC16:UINT8_MAX_ 255
462// PIC16:INT_LEAST8_MIN_ (-128)
463// PIC16:INT_LEAST8_MAX_ 127
464// PIC16:UINT_LEAST8_MAX_ 255
465// PIC16:INT_FAST8_MIN_ (-128)
466// PIC16:INT_FAST8_MAX_ 127
467// PIC16:UINT_FAST8_MAX_ 255
468//
469// PIC16:INT16_MAX_ 32767
470// PIC16:INT16_MIN_ (-32768)
471// PIC16:UINT16_MAX_ 65535
472// PIC16:INT_LEAST16_MIN_ (-32768)
473// PIC16:INT_LEAST16_MAX_ 32767
474// PIC16:UINT_LEAST16_MAX_ 65535
475// PIC16:INT_FAST16_MIN_ (-32768)
476// PIC16:INT_FAST16_MAX_ 32767
477// PIC16:UINT_FAST16_MAX_ 65535
478//
479// PIC16:INT32_MAX_ 2147483647
480// PIC16:INT32_MIN_ (-2147483647 -1)
481// PIC16:UINT32_MAX_ 4294967295U
482// PIC16:INT_LEAST32_MIN_ (-2147483647 -1)
483// PIC16:INT_LEAST32_MAX_ 2147483647
484// PIC16:UINT_LEAST32_MAX_ 4294967295U
485// PIC16:INT_FAST32_MIN_ (-2147483647 -1)
486// PIC16:INT_FAST32_MAX_ 2147483647
487// PIC16:UINT_FAST32_MAX_ 4294967295U
488//
489// PIC16:INT64_MAX_ INT64_MAX
490// PIC16:INT64_MIN_ INT64_MIN
491// PIC16:UINT64_MAX_ UINT64_MAX
492// PIC16:INT_LEAST64_MIN_ INT_LEAST64_MIN
493// PIC16:INT_LEAST64_MAX_ INT_LEAST64_MAX
494// PIC16:UINT_LEAST64_MAX_ UINT_LEAST64_MAX
495// PIC16:INT_FAST64_MIN_ INT_FAST64_MIN
496// PIC16:INT_FAST64_MAX_ INT_FAST64_MAX
497// PIC16:UINT_FAST64_MAX_ UINT_FAST64_MAX
498//
499// PIC16:INTPTR_MIN_ (-32768)
500// PIC16:INTPTR_MAX_ 32767
501// PIC16:UINTPTR_MAX_ 65535
502// PIC16:PTRDIFF_MIN_ (-32768)
503// PIC16:PTRDIFF_MAX_ 32767
504// PIC16:SIZE_MAX_ 65535
505//
506// PIC16:INTMAX_MIN_ (-2147483647L -1)
507// PIC16:INTMAX_MAX_ 2147483647L
508// PIC16:UINTMAX_MAX_ (2147483647L*2ULL +1ULL)
509//
510// PIC16:SIG_ATOMIC_MIN_ (-2147483647 -1)
511// PIC16:SIG_ATOMIC_MAX_ 2147483647
512// PIC16:WINT_MIN_ (-2147483647 -1)
513// PIC16:WINT_MAX_ 2147483647
514//
515// PIC16:WCHAR_MAX_ 2147483647
516// PIC16:WCHAR_MIN_ (-2147483647 -1)
517//
518// PIC16:INT8_C_(0) (0)
519// PIC16:UINT8_C_(0) (0U)
520// PIC16:INT16_C_(0) (0)
521// PIC16:UINT16_C_(0) (0U)
522// PIC16:INT32_C_(0) (0)
523// PIC16:UINT32_C_(0) (0U)
524// PIC16:INT64_C_(0) INT64_C(0)
525// PIC16:UINT64_C_(0) UINT64_C(0)
526//
527// PIC16:INTMAX_C_(0) (0LL)
528// PIC16:UINTMAX_C_(0) (0ULL)
529//
530// RUN: clang-cc -E -ffreestanding -triple=powerpc64-none-none %s | FileCheck -check-prefix PPC64 %s &&
531//
532// PPC64:typedef signed char int8_t;
533// PPC64:typedef short int16_t;
534// PPC64:typedef int int32_t;
535// PPC64:typedef long int int64_t;
536//
537// PPC64:typedef unsigned char uint8_t;
538// PPC64:typedef int8_t int_least8_t;
539// PPC64:typedef uint8_t uint_least8_t;
540// PPC64:typedef int8_t int_fast8_t;
541// PPC64:typedef uint8_t uint_fast8_t;
542//
543// PPC64:typedef unsigned short uint16_t;
544// PPC64:typedef int16_t int_least16_t;
545// PPC64:typedef uint16_t uint_least16_t;
546// PPC64:typedef int16_t int_fast16_t;
547// PPC64:typedef uint16_t uint_fast16_t;
548//
549// PPC64:typedef unsigned int uint32_t;
550// PPC64:typedef int32_t int_least32_t;
551// PPC64:typedef uint32_t uint_least32_t;
552// PPC64:typedef int32_t int_fast32_t;
553// PPC64:typedef uint32_t uint_fast32_t;
554//
555// PPC64:typedef unsigned long int uint64_t;
556// PPC64:typedef int64_t int_least64_t;
557// PPC64:typedef uint64_t uint_least64_t;
558// PPC64:typedef int64_t int_fast64_t;
559// PPC64:typedef uint64_t uint_fast64_t;
560//
561// PPC64:typedef long int intptr_t;
562// PPC64:typedef unsigned long int uintptr_t;
563//
564// PPC64:typedef long int intmax_t;
565// PPC64:typedef long unsigned int uintmax_t;
566//
567// PPC64:INT8_MAX_ 127
568// PPC64:INT8_MIN_ (-128)
569// PPC64:UINT8_MAX_ 255
570// PPC64:INT_LEAST8_MIN_ (-128)
571// PPC64:INT_LEAST8_MAX_ 127
572// PPC64:UINT_LEAST8_MAX_ 255
573// PPC64:INT_FAST8_MIN_ (-128)
574// PPC64:INT_FAST8_MAX_ 127
575// PPC64:UINT_FAST8_MAX_ 255
576//
577// PPC64:INT16_MAX_ 32767
578// PPC64:INT16_MIN_ (-32768)
579// PPC64:UINT16_MAX_ 65535
580// PPC64:INT_LEAST16_MIN_ (-32768)
581// PPC64:INT_LEAST16_MAX_ 32767
582// PPC64:UINT_LEAST16_MAX_ 65535
583// PPC64:INT_FAST16_MIN_ (-32768)
584// PPC64:INT_FAST16_MAX_ 32767
585// PPC64:UINT_FAST16_MAX_ 65535
586//
587// PPC64:INT32_MAX_ 2147483647
588// PPC64:INT32_MIN_ (-2147483647 -1)
589// PPC64:UINT32_MAX_ 4294967295U
590// PPC64:INT_LEAST32_MIN_ (-2147483647 -1)
591// PPC64:INT_LEAST32_MAX_ 2147483647
592// PPC64:UINT_LEAST32_MAX_ 4294967295U
593// PPC64:INT_FAST32_MIN_ (-2147483647 -1)
594// PPC64:INT_FAST32_MAX_ 2147483647
595// PPC64:UINT_FAST32_MAX_ 4294967295U
596//
597// PPC64:INT64_MAX_ 9223372036854775807LL
598// PPC64:INT64_MIN_ (-9223372036854775807LL -1)
599// PPC64:UINT64_MAX_ 18446744073709551615ULL
600// PPC64:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
601// PPC64:INT_LEAST64_MAX_ 9223372036854775807LL
602// PPC64:UINT_LEAST64_MAX_ 18446744073709551615ULL
603// PPC64:INT_FAST64_MIN_ (-9223372036854775807LL -1)
604// PPC64:INT_FAST64_MAX_ 9223372036854775807LL
605// PPC64:UINT_FAST64_MAX_ 18446744073709551615ULL
606//
607// PPC64:INTPTR_MIN_ (-9223372036854775807LL -1)
608// PPC64:INTPTR_MAX_ 9223372036854775807LL
609// PPC64:UINTPTR_MAX_ 18446744073709551615ULL
610// PPC64:PTRDIFF_MIN_ (-9223372036854775807LL -1)
611// PPC64:PTRDIFF_MAX_ 9223372036854775807LL
612// PPC64:SIZE_MAX_ 18446744073709551615ULL
613//
614// PPC64:INTMAX_MIN_ (-9223372036854775807L -1)
615// PPC64:INTMAX_MAX_ 9223372036854775807L
616// PPC64:UINTMAX_MAX_ (9223372036854775807L*2ULL +1ULL)
617//
618// PPC64:SIG_ATOMIC_MIN_ (-2147483647 -1)
619// PPC64:SIG_ATOMIC_MAX_ 2147483647
620// PPC64:WINT_MIN_ (-2147483647 -1)
621// PPC64:WINT_MAX_ 2147483647
622//
623// PPC64:WCHAR_MAX_ 2147483647
624// PPC64:WCHAR_MIN_ (-2147483647 -1)
625//
626// PPC64:INT8_C_(0) (0)
627// PPC64:UINT8_C_(0) (0U)
628// PPC64:INT16_C_(0) (0)
629// PPC64:UINT16_C_(0) (0U)
630// PPC64:INT32_C_(0) (0)
631// PPC64:UINT32_C_(0) (0U)
632// PPC64:INT64_C_(0) (0LL)
633// PPC64:UINT64_C_(0) (0ULL)
634//
635// PPC64:INTMAX_C_(0) (0LL)
636// PPC64:UINTMAX_C_(0) (0ULL)
637//
638// RUN: clang-cc -E -ffreestanding -triple=powerpc-none-none %s | FileCheck -check-prefix PPC %s &&
639//
640// PPC:typedef signed char int8_t;
641// PPC:typedef short int16_t;
642// PPC:typedef int int32_t;
643// PPC:typedef long long int int64_t;
644//
645// PPC:typedef unsigned char uint8_t;
646// PPC:typedef int8_t int_least8_t;
647// PPC:typedef uint8_t uint_least8_t;
648// PPC:typedef int8_t int_fast8_t;
649// PPC:typedef uint8_t uint_fast8_t;
650//
651// PPC:typedef unsigned short uint16_t;
652// PPC:typedef int16_t int_least16_t;
653// PPC:typedef uint16_t uint_least16_t;
654// PPC:typedef int16_t int_fast16_t;
655// PPC:typedef uint16_t uint_fast16_t;
656//
657// PPC:typedef unsigned int uint32_t;
658// PPC:typedef int32_t int_least32_t;
659// PPC:typedef uint32_t uint_least32_t;
660// PPC:typedef int32_t int_fast32_t;
661// PPC:typedef uint32_t uint_fast32_t;
662//
663// PPC:typedef unsigned long long int uint64_t;
664// PPC:typedef int64_t int_least64_t;
665// PPC:typedef uint64_t uint_least64_t;
666// PPC:typedef int64_t int_fast64_t;
667// PPC:typedef uint64_t uint_fast64_t;
668//
669// PPC:typedef long int intptr_t;
670// PPC:typedef unsigned long int uintptr_t;
671//
672// PPC:typedef long long int intmax_t;
673// PPC:typedef long long unsigned int uintmax_t;
674//
675// PPC:INT8_MAX_ 127
676// PPC:INT8_MIN_ (-128)
677// PPC:UINT8_MAX_ 255
678// PPC:INT_LEAST8_MIN_ (-128)
679// PPC:INT_LEAST8_MAX_ 127
680// PPC:UINT_LEAST8_MAX_ 255
681// PPC:INT_FAST8_MIN_ (-128)
682// PPC:INT_FAST8_MAX_ 127
683// PPC:UINT_FAST8_MAX_ 255
684//
685// PPC:INT16_MAX_ 32767
686// PPC:INT16_MIN_ (-32768)
687// PPC:UINT16_MAX_ 65535
688// PPC:INT_LEAST16_MIN_ (-32768)
689// PPC:INT_LEAST16_MAX_ 32767
690// PPC:UINT_LEAST16_MAX_ 65535
691// PPC:INT_FAST16_MIN_ (-32768)
692// PPC:INT_FAST16_MAX_ 32767
693// PPC:UINT_FAST16_MAX_ 65535
694//
695// PPC:INT32_MAX_ 2147483647
696// PPC:INT32_MIN_ (-2147483647 -1)
697// PPC:UINT32_MAX_ 4294967295U
698// PPC:INT_LEAST32_MIN_ (-2147483647 -1)
699// PPC:INT_LEAST32_MAX_ 2147483647
700// PPC:UINT_LEAST32_MAX_ 4294967295U
701// PPC:INT_FAST32_MIN_ (-2147483647 -1)
702// PPC:INT_FAST32_MAX_ 2147483647
703// PPC:UINT_FAST32_MAX_ 4294967295U
704//
705// PPC:INT64_MAX_ 9223372036854775807LL
706// PPC:INT64_MIN_ (-9223372036854775807LL -1)
707// PPC:UINT64_MAX_ 18446744073709551615ULL
708// PPC:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
709// PPC:INT_LEAST64_MAX_ 9223372036854775807LL
710// PPC:UINT_LEAST64_MAX_ 18446744073709551615ULL
711// PPC:INT_FAST64_MIN_ (-9223372036854775807LL -1)
712// PPC:INT_FAST64_MAX_ 9223372036854775807LL
713// PPC:UINT_FAST64_MAX_ 18446744073709551615ULL
714//
715// PPC:INTPTR_MIN_ (-2147483647 -1)
716// PPC:INTPTR_MAX_ 2147483647
717// PPC:UINTPTR_MAX_ 4294967295U
718// PPC:PTRDIFF_MIN_ (-2147483647 -1)
719// PPC:PTRDIFF_MAX_ 2147483647
720// PPC:SIZE_MAX_ 4294967295U
721//
722// PPC:INTMAX_MIN_ (-9223372036854775807LL -1)
723// PPC:INTMAX_MAX_ 9223372036854775807LL
724// PPC:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
725//
726// PPC:SIG_ATOMIC_MIN_ (-2147483647 -1)
727// PPC:SIG_ATOMIC_MAX_ 2147483647
728// PPC:WINT_MIN_ (-2147483647 -1)
729// PPC:WINT_MAX_ 2147483647
730//
731// PPC:WCHAR_MAX_ 2147483647
732// PPC:WCHAR_MIN_ (-2147483647 -1)
733//
734// PPC:INT8_C_(0) (0)
735// PPC:UINT8_C_(0) (0U)
736// PPC:INT16_C_(0) (0)
737// PPC:UINT16_C_(0) (0U)
738// PPC:INT32_C_(0) (0)
739// PPC:UINT32_C_(0) (0U)
740// PPC:INT64_C_(0) (0LL)
741// PPC:UINT64_C_(0) (0ULL)
742//
743// PPC:INTMAX_C_(0) (0LL)
744// PPC:UINTMAX_C_(0) (0ULL)
745//
746// RUN: clang-cc -E -ffreestanding -triple=s390x-none-none %s | FileCheck -check-prefix S390X %s &&
747//
748// S390X:typedef signed char int8_t;
749// S390X:typedef short int16_t;
750// S390X:typedef int int32_t;
751// S390X:typedef long long int int64_t;
752//
753// S390X:typedef unsigned char uint8_t;
754// S390X:typedef int8_t int_least8_t;
755// S390X:typedef uint8_t uint_least8_t;
756// S390X:typedef int8_t int_fast8_t;
757// S390X:typedef uint8_t uint_fast8_t;
758//
759// S390X:typedef unsigned short uint16_t;
760// S390X:typedef int16_t int_least16_t;
761// S390X:typedef uint16_t uint_least16_t;
762// S390X:typedef int16_t int_fast16_t;
763// S390X:typedef uint16_t uint_fast16_t;
764//
765// S390X:typedef unsigned int uint32_t;
766// S390X:typedef int32_t int_least32_t;
767// S390X:typedef uint32_t uint_least32_t;
768// S390X:typedef int32_t int_fast32_t;
769// S390X:typedef uint32_t uint_fast32_t;
770//
771// S390X:typedef unsigned long long int uint64_t;
772// S390X:typedef int64_t int_least64_t;
773// S390X:typedef uint64_t uint_least64_t;
774// S390X:typedef int64_t int_fast64_t;
775// S390X:typedef uint64_t uint_fast64_t;
776//
777// S390X:typedef long int intptr_t;
778// S390X:typedef unsigned long int uintptr_t;
779//
780// S390X:typedef long long int intmax_t;
781// S390X:typedef long long unsigned int uintmax_t;
782//
783// S390X:INT8_MAX_ 127
784// S390X:INT8_MIN_ (-128)
785// S390X:UINT8_MAX_ 255
786// S390X:INT_LEAST8_MIN_ (-128)
787// S390X:INT_LEAST8_MAX_ 127
788// S390X:UINT_LEAST8_MAX_ 255
789// S390X:INT_FAST8_MIN_ (-128)
790// S390X:INT_FAST8_MAX_ 127
791// S390X:UINT_FAST8_MAX_ 255
792//
793// S390X:INT16_MAX_ 32767
794// S390X:INT16_MIN_ (-32768)
795// S390X:UINT16_MAX_ 65535
796// S390X:INT_LEAST16_MIN_ (-32768)
797// S390X:INT_LEAST16_MAX_ 32767
798// S390X:UINT_LEAST16_MAX_ 65535
799// S390X:INT_FAST16_MIN_ (-32768)
800// S390X:INT_FAST16_MAX_ 32767
801// S390X:UINT_FAST16_MAX_ 65535
802//
803// S390X:INT32_MAX_ 2147483647
804// S390X:INT32_MIN_ (-2147483647 -1)
805// S390X:UINT32_MAX_ 4294967295U
806// S390X:INT_LEAST32_MIN_ (-2147483647 -1)
807// S390X:INT_LEAST32_MAX_ 2147483647
808// S390X:UINT_LEAST32_MAX_ 4294967295U
809// S390X:INT_FAST32_MIN_ (-2147483647 -1)
810// S390X:INT_FAST32_MAX_ 2147483647
811// S390X:UINT_FAST32_MAX_ 4294967295U
812//
813// S390X:INT64_MAX_ 9223372036854775807LL
814// S390X:INT64_MIN_ (-9223372036854775807LL -1)
815// S390X:UINT64_MAX_ 18446744073709551615ULL
816// S390X:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
817// S390X:INT_LEAST64_MAX_ 9223372036854775807LL
818// S390X:UINT_LEAST64_MAX_ 18446744073709551615ULL
819// S390X:INT_FAST64_MIN_ (-9223372036854775807LL -1)
820// S390X:INT_FAST64_MAX_ 9223372036854775807LL
821// S390X:UINT_FAST64_MAX_ 18446744073709551615ULL
822//
823// S390X:INTPTR_MIN_ (-9223372036854775807LL -1)
824// S390X:INTPTR_MAX_ 9223372036854775807LL
825// S390X:UINTPTR_MAX_ 18446744073709551615ULL
826// S390X:PTRDIFF_MIN_ (-9223372036854775807LL -1)
827// S390X:PTRDIFF_MAX_ 9223372036854775807LL
828// S390X:SIZE_MAX_ 18446744073709551615ULL
829//
830// S390X:INTMAX_MIN_ (-9223372036854775807LL -1)
831// S390X:INTMAX_MAX_ 9223372036854775807LL
832// S390X:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
833//
834// S390X:SIG_ATOMIC_MIN_ (-2147483647 -1)
835// S390X:SIG_ATOMIC_MAX_ 2147483647
836// S390X:WINT_MIN_ (-2147483647 -1)
837// S390X:WINT_MAX_ 2147483647
838//
839// S390X:WCHAR_MAX_ 2147483647
840// S390X:WCHAR_MIN_ (-2147483647 -1)
841//
842// S390X:INT8_C_(0) (0)
843// S390X:UINT8_C_(0) (0U)
844// S390X:INT16_C_(0) (0)
845// S390X:UINT16_C_(0) (0U)
846// S390X:INT32_C_(0) (0)
847// S390X:UINT32_C_(0) (0U)
848// S390X:INT64_C_(0) (0LL)
849// S390X:UINT64_C_(0) (0ULL)
850//
851// S390X:INTMAX_C_(0) (0LL)
852// S390X:UINTMAX_C_(0) (0ULL)
853//
854// RUN: clang-cc -E -ffreestanding -triple=sparc-none-none %s | FileCheck -check-prefix SPARC %s &&
855//
856// SPARC:typedef signed char int8_t;
857// SPARC:typedef short int16_t;
858// SPARC:typedef int int32_t;
859// SPARC:typedef long long int int64_t;
860//
861// SPARC:typedef unsigned char uint8_t;
862// SPARC:typedef int8_t int_least8_t;
863// SPARC:typedef uint8_t uint_least8_t;
864// SPARC:typedef int8_t int_fast8_t;
865// SPARC:typedef uint8_t uint_fast8_t;
866//
867// SPARC:typedef unsigned short uint16_t;
868// SPARC:typedef int16_t int_least16_t;
869// SPARC:typedef uint16_t uint_least16_t;
870// SPARC:typedef int16_t int_fast16_t;
871// SPARC:typedef uint16_t uint_fast16_t;
872//
873// SPARC:typedef unsigned int uint32_t;
874// SPARC:typedef int32_t int_least32_t;
875// SPARC:typedef uint32_t uint_least32_t;
876// SPARC:typedef int32_t int_fast32_t;
877// SPARC:typedef uint32_t uint_fast32_t;
878//
879// SPARC:typedef unsigned long long int uint64_t;
880// SPARC:typedef int64_t int_least64_t;
881// SPARC:typedef uint64_t uint_least64_t;
882// SPARC:typedef int64_t int_fast64_t;
883// SPARC:typedef uint64_t uint_fast64_t;
884//
885// SPARC:typedef long int intptr_t;
886// SPARC:typedef unsigned long int uintptr_t;
887//
888// SPARC:typedef long long int intmax_t;
889// SPARC:typedef long long unsigned int uintmax_t;
890//
891// SPARC:INT8_MAX_ 127
892// SPARC:INT8_MIN_ (-128)
893// SPARC:UINT8_MAX_ 255
894// SPARC:INT_LEAST8_MIN_ (-128)
895// SPARC:INT_LEAST8_MAX_ 127
896// SPARC:UINT_LEAST8_MAX_ 255
897// SPARC:INT_FAST8_MIN_ (-128)
898// SPARC:INT_FAST8_MAX_ 127
899// SPARC:UINT_FAST8_MAX_ 255
900//
901// SPARC:INT16_MAX_ 32767
902// SPARC:INT16_MIN_ (-32768)
903// SPARC:UINT16_MAX_ 65535
904// SPARC:INT_LEAST16_MIN_ (-32768)
905// SPARC:INT_LEAST16_MAX_ 32767
906// SPARC:UINT_LEAST16_MAX_ 65535
907// SPARC:INT_FAST16_MIN_ (-32768)
908// SPARC:INT_FAST16_MAX_ 32767
909// SPARC:UINT_FAST16_MAX_ 65535
910//
911// SPARC:INT32_MAX_ 2147483647
912// SPARC:INT32_MIN_ (-2147483647 -1)
913// SPARC:UINT32_MAX_ 4294967295U
914// SPARC:INT_LEAST32_MIN_ (-2147483647 -1)
915// SPARC:INT_LEAST32_MAX_ 2147483647
916// SPARC:UINT_LEAST32_MAX_ 4294967295U
917// SPARC:INT_FAST32_MIN_ (-2147483647 -1)
918// SPARC:INT_FAST32_MAX_ 2147483647
919// SPARC:UINT_FAST32_MAX_ 4294967295U
920//
921// SPARC:INT64_MAX_ 9223372036854775807LL
922// SPARC:INT64_MIN_ (-9223372036854775807LL -1)
923// SPARC:UINT64_MAX_ 18446744073709551615ULL
924// SPARC:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
925// SPARC:INT_LEAST64_MAX_ 9223372036854775807LL
926// SPARC:UINT_LEAST64_MAX_ 18446744073709551615ULL
927// SPARC:INT_FAST64_MIN_ (-9223372036854775807LL -1)
928// SPARC:INT_FAST64_MAX_ 9223372036854775807LL
929// SPARC:UINT_FAST64_MAX_ 18446744073709551615ULL
930//
931// SPARC:INTPTR_MIN_ (-2147483647 -1)
932// SPARC:INTPTR_MAX_ 2147483647
933// SPARC:UINTPTR_MAX_ 4294967295U
934// SPARC:PTRDIFF_MIN_ (-2147483647 -1)
935// SPARC:PTRDIFF_MAX_ 2147483647
936// SPARC:SIZE_MAX_ 4294967295U
937//
938// SPARC:INTMAX_MIN_ (-9223372036854775807LL -1)
939// SPARC:INTMAX_MAX_ 9223372036854775807LL
940// SPARC:UINTMAX_MAX_ (9223372036854775807LL*2ULL +1ULL)
941//
942// SPARC:SIG_ATOMIC_MIN_ (-2147483647 -1)
943// SPARC:SIG_ATOMIC_MAX_ 2147483647
944// SPARC:WINT_MIN_ (-2147483647 -1)
945// SPARC:WINT_MAX_ 2147483647
946//
947// SPARC:WCHAR_MAX_ 2147483647
948// SPARC:WCHAR_MIN_ (-2147483647 -1)
949//
950// SPARC:INT8_C_(0) (0)
951// SPARC:UINT8_C_(0) (0U)
952// SPARC:INT16_C_(0) (0)
953// SPARC:UINT16_C_(0) (0U)
954// SPARC:INT32_C_(0) (0)
955// SPARC:UINT32_C_(0) (0U)
956// SPARC:INT64_C_(0) (0LL)
957// SPARC:UINT64_C_(0) (0ULL)
958//
959// SPARC:INTMAX_C_(0) (0LL)
960// SPARC:UINTMAX_C_(0) (0ULL)
961//
962// RUN: clang-cc -E -ffreestanding -triple=tce-none-none %s | FileCheck -check-prefix TCE %s &&
963//
964// TCE:typedef signed char int8_t;
965// TCE:typedef short int16_t;
966// TCE:typedef int int32_t;
967//
968// TCE:typedef unsigned char uint8_t;
969// TCE:typedef int8_t int_least8_t;
970// TCE:typedef uint8_t uint_least8_t;
971// TCE:typedef int8_t int_fast8_t;
972// TCE:typedef uint8_t uint_fast8_t;
973//
974// TCE:typedef unsigned short uint16_t;
975// TCE:typedef int16_t int_least16_t;
976// TCE:typedef uint16_t uint_least16_t;
977// TCE:typedef int16_t int_fast16_t;
978// TCE:typedef uint16_t uint_fast16_t;
979//
980// TCE:typedef unsigned int uint32_t;
981// TCE:typedef int32_t int_least32_t;
982// TCE:typedef uint32_t uint_least32_t;
983// TCE:typedef int32_t int_fast32_t;
984// TCE:typedef uint32_t uint_fast32_t;
985//
986// TCE:typedef int intptr_t;
987// TCE:typedef unsigned int uintptr_t;
988//
989// TCE:typedef long int intmax_t;
990// TCE:typedef long unsigned int uintmax_t;
991//
992// TCE:INT8_MAX_ 127
993// TCE:INT8_MIN_ (-128)
994// TCE:UINT8_MAX_ 255
995// TCE:INT_LEAST8_MIN_ (-128)
996// TCE:INT_LEAST8_MAX_ 127
997// TCE:UINT_LEAST8_MAX_ 255
998// TCE:INT_FAST8_MIN_ (-128)
999// TCE:INT_FAST8_MAX_ 127
1000// TCE:UINT_FAST8_MAX_ 255
1001//
1002// TCE:INT16_MAX_ 32767
1003// TCE:INT16_MIN_ (-32768)
1004// TCE:UINT16_MAX_ 65535
1005// TCE:INT_LEAST16_MIN_ (-32768)
1006// TCE:INT_LEAST16_MAX_ 32767
1007// TCE:UINT_LEAST16_MAX_ 65535
1008// TCE:INT_FAST16_MIN_ (-32768)
1009// TCE:INT_FAST16_MAX_ 32767
1010// TCE:UINT_FAST16_MAX_ 65535
1011//
1012// TCE:INT32_MAX_ 2147483647
1013// TCE:INT32_MIN_ (-2147483647 -1)
1014// TCE:UINT32_MAX_ 4294967295U
1015// TCE:INT_LEAST32_MIN_ (-2147483647 -1)
1016// TCE:INT_LEAST32_MAX_ 2147483647
1017// TCE:UINT_LEAST32_MAX_ 4294967295U
1018// TCE:INT_FAST32_MIN_ (-2147483647 -1)
1019// TCE:INT_FAST32_MAX_ 2147483647
1020// TCE:UINT_FAST32_MAX_ 4294967295U
1021//
1022// TCE:INT64_MAX_ INT64_MAX
1023// TCE:INT64_MIN_ INT64_MIN
1024// TCE:UINT64_MAX_ UINT64_MAX
1025// TCE:INT_LEAST64_MIN_ INT_LEAST64_MIN
1026// TCE:INT_LEAST64_MAX_ INT_LEAST64_MAX
1027// TCE:UINT_LEAST64_MAX_ UINT_LEAST64_MAX
1028// TCE:INT_FAST64_MIN_ INT_FAST64_MIN
1029// TCE:INT_FAST64_MAX_ INT_FAST64_MAX
1030// TCE:UINT_FAST64_MAX_ UINT_FAST64_MAX
1031//
1032// TCE:INTPTR_MIN_ (-2147483647 -1)
1033// TCE:INTPTR_MAX_ 2147483647
1034// TCE:UINTPTR_MAX_ 4294967295U
1035// TCE:PTRDIFF_MIN_ (-2147483647 -1)
1036// TCE:PTRDIFF_MAX_ 2147483647
1037// TCE:SIZE_MAX_ 4294967295U
1038//
1039// TCE:INTMAX_MIN_ (-2147483647L -1)
1040// TCE:INTMAX_MAX_ 2147483647L
1041// TCE:UINTMAX_MAX_ (2147483647L*2ULL +1ULL)
1042//
1043// TCE:SIG_ATOMIC_MIN_ (-2147483647 -1)
1044// TCE:SIG_ATOMIC_MAX_ 2147483647
1045// TCE:WINT_MIN_ (-2147483647 -1)
1046// TCE:WINT_MAX_ 2147483647
1047//
1048// TCE:WCHAR_MAX_ 2147483647
1049// TCE:WCHAR_MIN_ (-2147483647 -1)
1050//
1051// TCE:INT8_C_(0) (0)
1052// TCE:UINT8_C_(0) (0U)
1053// TCE:INT16_C_(0) (0)
1054// TCE:UINT16_C_(0) (0U)
1055// TCE:INT32_C_(0) (0)
1056// TCE:UINT32_C_(0) (0U)
1057// TCE:INT64_C_(0) INT64_C(0)
1058// TCE:UINT64_C_(0) UINT64_C(0)
1059//
1060// TCE:INTMAX_C_(0) (0LL)
1061// TCE:UINTMAX_C_(0) (0ULL)
1062//
1063// RUN: clang-cc -E -ffreestanding -triple=x86_64-none-none %s | FileCheck -check-prefix X86_64 %s &&
1064//
1065// X86_64:typedef signed char int8_t;
1066// X86_64:typedef short int16_t;
1067// X86_64:typedef int int32_t;
1068// X86_64:typedef long int int64_t;
1069//
1070// X86_64:typedef unsigned char uint8_t;
1071// X86_64:typedef int8_t int_least8_t;
1072// X86_64:typedef uint8_t uint_least8_t;
1073// X86_64:typedef int8_t int_fast8_t;
1074// X86_64:typedef uint8_t uint_fast8_t;
1075//
1076// X86_64:typedef unsigned short uint16_t;
1077// X86_64:typedef int16_t int_least16_t;
1078// X86_64:typedef uint16_t uint_least16_t;
1079// X86_64:typedef int16_t int_fast16_t;
1080// X86_64:typedef uint16_t uint_fast16_t;
1081//
1082// X86_64:typedef unsigned int uint32_t;
1083// X86_64:typedef int32_t int_least32_t;
1084// X86_64:typedef uint32_t uint_least32_t;
1085// X86_64:typedef int32_t int_fast32_t;
1086// X86_64:typedef uint32_t uint_fast32_t;
1087//
1088// X86_64:typedef unsigned long int uint64_t;
1089// X86_64:typedef int64_t int_least64_t;
1090// X86_64:typedef uint64_t uint_least64_t;
1091// X86_64:typedef int64_t int_fast64_t;
1092// X86_64:typedef uint64_t uint_fast64_t;
1093//
1094// X86_64:typedef long int intptr_t;
1095// X86_64:typedef unsigned long int uintptr_t;
1096//
1097// X86_64:typedef long int intmax_t;
1098// X86_64:typedef long unsigned int uintmax_t;
1099//
1100// X86_64:INT8_MAX_ 127
1101// X86_64:INT8_MIN_ (-128)
1102// X86_64:UINT8_MAX_ 255
1103// X86_64:INT_LEAST8_MIN_ (-128)
1104// X86_64:INT_LEAST8_MAX_ 127
1105// X86_64:UINT_LEAST8_MAX_ 255
1106// X86_64:INT_FAST8_MIN_ (-128)
1107// X86_64:INT_FAST8_MAX_ 127
1108// X86_64:UINT_FAST8_MAX_ 255
1109//
1110// X86_64:INT16_MAX_ 32767
1111// X86_64:INT16_MIN_ (-32768)
1112// X86_64:UINT16_MAX_ 65535
1113// X86_64:INT_LEAST16_MIN_ (-32768)
1114// X86_64:INT_LEAST16_MAX_ 32767
1115// X86_64:UINT_LEAST16_MAX_ 65535
1116// X86_64:INT_FAST16_MIN_ (-32768)
1117// X86_64:INT_FAST16_MAX_ 32767
1118// X86_64:UINT_FAST16_MAX_ 65535
1119//
1120// X86_64:INT32_MAX_ 2147483647
1121// X86_64:INT32_MIN_ (-2147483647 -1)
1122// X86_64:UINT32_MAX_ 4294967295U
1123// X86_64:INT_LEAST32_MIN_ (-2147483647 -1)
1124// X86_64:INT_LEAST32_MAX_ 2147483647
1125// X86_64:UINT_LEAST32_MAX_ 4294967295U
1126// X86_64:INT_FAST32_MIN_ (-2147483647 -1)
1127// X86_64:INT_FAST32_MAX_ 2147483647
1128// X86_64:UINT_FAST32_MAX_ 4294967295U
1129//
1130// X86_64:INT64_MAX_ 9223372036854775807LL
1131// X86_64:INT64_MIN_ (-9223372036854775807LL -1)
1132// X86_64:UINT64_MAX_ 18446744073709551615ULL
1133// X86_64:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
1134// X86_64:INT_LEAST64_MAX_ 9223372036854775807LL
1135// X86_64:UINT_LEAST64_MAX_ 18446744073709551615ULL
1136// X86_64:INT_FAST64_MIN_ (-9223372036854775807LL -1)
1137// X86_64:INT_FAST64_MAX_ 9223372036854775807LL
1138// X86_64:UINT_FAST64_MAX_ 18446744073709551615ULL
1139//
1140// X86_64:INTPTR_MIN_ (-9223372036854775807LL -1)
1141// X86_64:INTPTR_MAX_ 9223372036854775807LL
1142// X86_64:UINTPTR_MAX_ 18446744073709551615ULL
1143// X86_64:PTRDIFF_MIN_ (-9223372036854775807LL -1)
1144// X86_64:PTRDIFF_MAX_ 9223372036854775807LL
1145// X86_64:SIZE_MAX_ 18446744073709551615ULL
1146//
1147// X86_64:INTMAX_MIN_ (-9223372036854775807L -1)
1148// X86_64:INTMAX_MAX_ 9223372036854775807L
1149// X86_64:UINTMAX_MAX_ (9223372036854775807L*2ULL +1ULL)
1150//
1151// X86_64:SIG_ATOMIC_MIN_ (-2147483647 -1)
1152// X86_64:SIG_ATOMIC_MAX_ 2147483647
1153// X86_64:WINT_MIN_ (-2147483647 -1)
1154// X86_64:WINT_MAX_ 2147483647
1155//
1156// X86_64:WCHAR_MAX_ 2147483647
1157// X86_64:WCHAR_MIN_ (-2147483647 -1)
1158//
1159// X86_64:INT8_C_(0) (0)
1160// X86_64:UINT8_C_(0) (0U)
1161// X86_64:INT16_C_(0) (0)
1162// X86_64:UINT16_C_(0) (0U)
1163// X86_64:INT32_C_(0) (0)
1164// X86_64:UINT32_C_(0) (0U)
1165// X86_64:INT64_C_(0) (0LL)
1166// X86_64:UINT64_C_(0) (0ULL)
1167//
1168// X86_64:INTMAX_C_(0) (0LL)
1169// X86_64:UINTMAX_C_(0) (0ULL)
1170//
1171// RUN: true
1172
1173#include <stdint.h>
1174
1175INT8_MAX_ INT8_MAX
1176INT8_MIN_ INT8_MIN
1177UINT8_MAX_ UINT8_MAX
1178INT_LEAST8_MIN_ INT_LEAST8_MIN
1179INT_LEAST8_MAX_ INT_LEAST8_MAX
1180UINT_LEAST8_MAX_ UINT_LEAST8_MAX
1181INT_FAST8_MIN_ INT_FAST8_MIN
1182INT_FAST8_MAX_ INT_FAST8_MAX
1183UINT_FAST8_MAX_ UINT_FAST8_MAX
1184
1185INT16_MAX_ INT16_MAX
1186INT16_MIN_ INT16_MIN
1187UINT16_MAX_ UINT16_MAX
1188INT_LEAST16_MIN_ INT_LEAST16_MIN
1189INT_LEAST16_MAX_ INT_LEAST16_MAX
1190UINT_LEAST16_MAX_ UINT_LEAST16_MAX
1191INT_FAST16_MIN_ INT_FAST16_MIN
1192INT_FAST16_MAX_ INT_FAST16_MAX
1193UINT_FAST16_MAX_ UINT_FAST16_MAX
1194
1195INT32_MAX_ INT32_MAX
1196INT32_MIN_ INT32_MIN
1197UINT32_MAX_ UINT32_MAX
1198INT_LEAST32_MIN_ INT_LEAST32_MIN
1199INT_LEAST32_MAX_ INT_LEAST32_MAX
1200UINT_LEAST32_MAX_ UINT_LEAST32_MAX
1201INT_FAST32_MIN_ INT_FAST32_MIN
1202INT_FAST32_MAX_ INT_FAST32_MAX
1203UINT_FAST32_MAX_ UINT_FAST32_MAX
1204
1205INT64_MAX_ INT64_MAX
1206INT64_MIN_ INT64_MIN
1207UINT64_MAX_ UINT64_MAX
1208INT_LEAST64_MIN_ INT_LEAST64_MIN
1209INT_LEAST64_MAX_ INT_LEAST64_MAX
1210UINT_LEAST64_MAX_ UINT_LEAST64_MAX
1211INT_FAST64_MIN_ INT_FAST64_MIN
1212INT_FAST64_MAX_ INT_FAST64_MAX
1213UINT_FAST64_MAX_ UINT_FAST64_MAX
1214
1215INTPTR_MIN_ INTPTR_MIN
1216INTPTR_MAX_ INTPTR_MAX
1217UINTPTR_MAX_ UINTPTR_MAX
1218PTRDIFF_MIN_ PTRDIFF_MIN
1219PTRDIFF_MAX_ PTRDIFF_MAX
1220SIZE_MAX_ SIZE_MAX
1221
1222INTMAX_MIN_ INTMAX_MIN
1223INTMAX_MAX_ INTMAX_MAX
1224UINTMAX_MAX_ UINTMAX_MAX
1225
1226SIG_ATOMIC_MIN_ SIG_ATOMIC_MIN
1227SIG_ATOMIC_MAX_ SIG_ATOMIC_MAX
1228WINT_MIN_ WINT_MIN
1229WINT_MAX_ WINT_MAX
1230
1231WCHAR_MAX_ WCHAR_MAX
1232WCHAR_MIN_ WCHAR_MIN
1233
1234INT8_C_(0) INT8_C(0)
1235UINT8_C_(0) UINT8_C(0)
1236INT16_C_(0) INT16_C(0)
1237UINT16_C_(0) UINT16_C(0)
1238INT32_C_(0) INT32_C(0)
1239UINT32_C_(0) UINT32_C(0)
1240INT64_C_(0) INT64_C(0)
1241UINT64_C_(0) UINT64_C(0)
1242
1243INTMAX_C_(0) INTMAX_C(0)
1244UINTMAX_C_(0) UINTMAX_C(0)