xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/stdint.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=arm-none-none %s | FileCheck -check-prefix ARM %s
2f4a2713aSLionel Sambuc //
3*0a6a1f1dSLionel Sambuc // ARM:typedef long long int int64_t;
4*0a6a1f1dSLionel Sambuc // ARM:typedef long long unsigned int uint64_t;
5f4a2713aSLionel Sambuc // ARM:typedef int64_t int_least64_t;
6f4a2713aSLionel Sambuc // ARM:typedef uint64_t uint_least64_t;
7f4a2713aSLionel Sambuc // ARM:typedef int64_t int_fast64_t;
8f4a2713aSLionel Sambuc // ARM:typedef uint64_t uint_fast64_t;
9f4a2713aSLionel Sambuc //
10*0a6a1f1dSLionel Sambuc // ARM:typedef int int32_t;
11f4a2713aSLionel Sambuc // ARM:typedef unsigned int uint32_t;
12f4a2713aSLionel Sambuc // ARM:typedef int32_t int_least32_t;
13f4a2713aSLionel Sambuc // ARM:typedef uint32_t uint_least32_t;
14f4a2713aSLionel Sambuc // ARM:typedef int32_t int_fast32_t;
15f4a2713aSLionel Sambuc // ARM:typedef uint32_t uint_fast32_t;
16f4a2713aSLionel Sambuc //
17*0a6a1f1dSLionel Sambuc // ARM:typedef short int16_t;
18f4a2713aSLionel Sambuc // ARM:typedef unsigned short uint16_t;
19f4a2713aSLionel Sambuc // ARM:typedef int16_t int_least16_t;
20f4a2713aSLionel Sambuc // ARM:typedef uint16_t uint_least16_t;
21f4a2713aSLionel Sambuc // ARM:typedef int16_t int_fast16_t;
22f4a2713aSLionel Sambuc // ARM:typedef uint16_t uint_fast16_t;
23f4a2713aSLionel Sambuc //
24f4a2713aSLionel Sambuc // ARM:typedef signed char int8_t;
25f4a2713aSLionel Sambuc // ARM:typedef unsigned char uint8_t;
26f4a2713aSLionel Sambuc // ARM:typedef int8_t int_least8_t;
27f4a2713aSLionel Sambuc // ARM:typedef uint8_t uint_least8_t;
28f4a2713aSLionel Sambuc // ARM:typedef int8_t int_fast8_t;
29f4a2713aSLionel Sambuc // ARM:typedef uint8_t uint_fast8_t;
30f4a2713aSLionel Sambuc //
31f4a2713aSLionel Sambuc // ARM:typedef int32_t intptr_t;
32f4a2713aSLionel Sambuc // ARM:typedef uint32_t uintptr_t;
33f4a2713aSLionel Sambuc //
34f4a2713aSLionel Sambuc // ARM:typedef long long int intmax_t;
35f4a2713aSLionel Sambuc // ARM:typedef long long unsigned int uintmax_t;
36f4a2713aSLionel Sambuc //
37f4a2713aSLionel Sambuc // ARM:INT8_MAX_ 127
38f4a2713aSLionel Sambuc // ARM:INT8_MIN_ (-127 -1)
39f4a2713aSLionel Sambuc // ARM:UINT8_MAX_ 255
40f4a2713aSLionel Sambuc // ARM:INT_LEAST8_MIN_ (-127 -1)
41f4a2713aSLionel Sambuc // ARM:INT_LEAST8_MAX_ 127
42f4a2713aSLionel Sambuc // ARM:UINT_LEAST8_MAX_ 255
43f4a2713aSLionel Sambuc // ARM:INT_FAST8_MIN_ (-127 -1)
44f4a2713aSLionel Sambuc // ARM:INT_FAST8_MAX_ 127
45f4a2713aSLionel Sambuc // ARM:UINT_FAST8_MAX_ 255
46f4a2713aSLionel Sambuc //
47f4a2713aSLionel Sambuc // ARM:INT16_MAX_ 32767
48f4a2713aSLionel Sambuc // ARM:INT16_MIN_ (-32767 -1)
49f4a2713aSLionel Sambuc // ARM:UINT16_MAX_ 65535
50f4a2713aSLionel Sambuc // ARM:INT_LEAST16_MIN_ (-32767 -1)
51f4a2713aSLionel Sambuc // ARM:INT_LEAST16_MAX_ 32767
52f4a2713aSLionel Sambuc // ARM:UINT_LEAST16_MAX_ 65535
53f4a2713aSLionel Sambuc // ARM:INT_FAST16_MIN_ (-32767 -1)
54f4a2713aSLionel Sambuc // ARM:INT_FAST16_MAX_ 32767
55f4a2713aSLionel Sambuc // ARM:UINT_FAST16_MAX_ 65535
56f4a2713aSLionel Sambuc //
57f4a2713aSLionel Sambuc // ARM:INT32_MAX_ 2147483647
58f4a2713aSLionel Sambuc // ARM:INT32_MIN_ (-2147483647 -1)
59f4a2713aSLionel Sambuc // ARM:UINT32_MAX_ 4294967295U
60f4a2713aSLionel Sambuc // ARM:INT_LEAST32_MIN_ (-2147483647 -1)
61f4a2713aSLionel Sambuc // ARM:INT_LEAST32_MAX_ 2147483647
62f4a2713aSLionel Sambuc // ARM:UINT_LEAST32_MAX_ 4294967295U
63f4a2713aSLionel Sambuc // ARM:INT_FAST32_MIN_ (-2147483647 -1)
64f4a2713aSLionel Sambuc // ARM:INT_FAST32_MAX_ 2147483647
65f4a2713aSLionel Sambuc // ARM:UINT_FAST32_MAX_ 4294967295U
66f4a2713aSLionel Sambuc //
67f4a2713aSLionel Sambuc // ARM:INT64_MAX_ 9223372036854775807LL
68f4a2713aSLionel Sambuc // ARM:INT64_MIN_ (-9223372036854775807LL -1)
69f4a2713aSLionel Sambuc // ARM:UINT64_MAX_ 18446744073709551615ULL
70f4a2713aSLionel Sambuc // ARM:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
71f4a2713aSLionel Sambuc // ARM:INT_LEAST64_MAX_ 9223372036854775807LL
72f4a2713aSLionel Sambuc // ARM:UINT_LEAST64_MAX_ 18446744073709551615ULL
73f4a2713aSLionel Sambuc // ARM:INT_FAST64_MIN_ (-9223372036854775807LL -1)
74f4a2713aSLionel Sambuc // ARM:INT_FAST64_MAX_ 9223372036854775807LL
75f4a2713aSLionel Sambuc // ARM:UINT_FAST64_MAX_ 18446744073709551615ULL
76f4a2713aSLionel Sambuc //
77f4a2713aSLionel Sambuc // ARM:INTPTR_MIN_ (-2147483647 -1)
78f4a2713aSLionel Sambuc // ARM:INTPTR_MAX_ 2147483647
79f4a2713aSLionel Sambuc // ARM:UINTPTR_MAX_ 4294967295U
80f4a2713aSLionel Sambuc // ARM:PTRDIFF_MIN_ (-2147483647 -1)
81f4a2713aSLionel Sambuc // ARM:PTRDIFF_MAX_ 2147483647
82f4a2713aSLionel Sambuc // ARM:SIZE_MAX_ 4294967295U
83f4a2713aSLionel Sambuc //
84f4a2713aSLionel Sambuc // ARM:INTMAX_MIN_ (-9223372036854775807LL -1)
85f4a2713aSLionel Sambuc // ARM:INTMAX_MAX_ 9223372036854775807LL
86f4a2713aSLionel Sambuc // ARM:UINTMAX_MAX_ 18446744073709551615ULL
87f4a2713aSLionel Sambuc //
88f4a2713aSLionel Sambuc // ARM:SIG_ATOMIC_MIN_ (-2147483647 -1)
89f4a2713aSLionel Sambuc // ARM:SIG_ATOMIC_MAX_ 2147483647
90f4a2713aSLionel Sambuc // ARM:WINT_MIN_ (-2147483647 -1)
91f4a2713aSLionel Sambuc // ARM:WINT_MAX_ 2147483647
92f4a2713aSLionel Sambuc //
93f4a2713aSLionel Sambuc // ARM:WCHAR_MAX_ 4294967295U
94f4a2713aSLionel Sambuc // ARM:WCHAR_MIN_ 0U
95f4a2713aSLionel Sambuc //
96f4a2713aSLionel Sambuc // ARM:INT8_C_(0) 0
97f4a2713aSLionel Sambuc // ARM:UINT8_C_(0) 0U
98f4a2713aSLionel Sambuc // ARM:INT16_C_(0) 0
99f4a2713aSLionel Sambuc // ARM:UINT16_C_(0) 0U
100f4a2713aSLionel Sambuc // ARM:INT32_C_(0) 0
101f4a2713aSLionel Sambuc // ARM:UINT32_C_(0) 0U
102f4a2713aSLionel Sambuc // ARM:INT64_C_(0) 0LL
103f4a2713aSLionel Sambuc // ARM:UINT64_C_(0) 0ULL
104f4a2713aSLionel Sambuc //
105f4a2713aSLionel Sambuc // ARM:INTMAX_C_(0) 0LL
106f4a2713aSLionel Sambuc // ARM:UINTMAX_C_(0) 0ULL
107f4a2713aSLionel Sambuc //
108f4a2713aSLionel Sambuc //
109f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=i386-none-none %s | FileCheck -check-prefix I386 %s
110f4a2713aSLionel Sambuc //
111*0a6a1f1dSLionel Sambuc // I386:typedef long long int int64_t;
112*0a6a1f1dSLionel Sambuc // I386:typedef long long unsigned int uint64_t;
113f4a2713aSLionel Sambuc // I386:typedef int64_t int_least64_t;
114f4a2713aSLionel Sambuc // I386:typedef uint64_t uint_least64_t;
115f4a2713aSLionel Sambuc // I386:typedef int64_t int_fast64_t;
116f4a2713aSLionel Sambuc // I386:typedef uint64_t uint_fast64_t;
117f4a2713aSLionel Sambuc //
118*0a6a1f1dSLionel Sambuc // I386:typedef int int32_t;
119f4a2713aSLionel Sambuc // I386:typedef unsigned int uint32_t;
120f4a2713aSLionel Sambuc // I386:typedef int32_t int_least32_t;
121f4a2713aSLionel Sambuc // I386:typedef uint32_t uint_least32_t;
122f4a2713aSLionel Sambuc // I386:typedef int32_t int_fast32_t;
123f4a2713aSLionel Sambuc // I386:typedef uint32_t uint_fast32_t;
124f4a2713aSLionel Sambuc //
125*0a6a1f1dSLionel Sambuc // I386:typedef short int16_t;
126f4a2713aSLionel Sambuc // I386:typedef unsigned short uint16_t;
127f4a2713aSLionel Sambuc // I386:typedef int16_t int_least16_t;
128f4a2713aSLionel Sambuc // I386:typedef uint16_t uint_least16_t;
129f4a2713aSLionel Sambuc // I386:typedef int16_t int_fast16_t;
130f4a2713aSLionel Sambuc // I386:typedef uint16_t uint_fast16_t;
131f4a2713aSLionel Sambuc //
132f4a2713aSLionel Sambuc // I386:typedef signed char int8_t;
133f4a2713aSLionel Sambuc // I386:typedef unsigned char uint8_t;
134f4a2713aSLionel Sambuc // I386:typedef int8_t int_least8_t;
135f4a2713aSLionel Sambuc // I386:typedef uint8_t uint_least8_t;
136f4a2713aSLionel Sambuc // I386:typedef int8_t int_fast8_t;
137f4a2713aSLionel Sambuc // I386:typedef uint8_t uint_fast8_t;
138f4a2713aSLionel Sambuc //
139f4a2713aSLionel Sambuc // I386:typedef int32_t intptr_t;
140f4a2713aSLionel Sambuc // I386:typedef uint32_t uintptr_t;
141f4a2713aSLionel Sambuc //
142f4a2713aSLionel Sambuc // I386:typedef long long int intmax_t;
143f4a2713aSLionel Sambuc // I386:typedef long long unsigned int uintmax_t;
144f4a2713aSLionel Sambuc //
145f4a2713aSLionel Sambuc // I386:INT8_MAX_ 127
146f4a2713aSLionel Sambuc // I386:INT8_MIN_ (-127 -1)
147f4a2713aSLionel Sambuc // I386:UINT8_MAX_ 255
148f4a2713aSLionel Sambuc // I386:INT_LEAST8_MIN_ (-127 -1)
149f4a2713aSLionel Sambuc // I386:INT_LEAST8_MAX_ 127
150f4a2713aSLionel Sambuc // I386:UINT_LEAST8_MAX_ 255
151f4a2713aSLionel Sambuc // I386:INT_FAST8_MIN_ (-127 -1)
152f4a2713aSLionel Sambuc // I386:INT_FAST8_MAX_ 127
153f4a2713aSLionel Sambuc // I386:UINT_FAST8_MAX_ 255
154f4a2713aSLionel Sambuc //
155f4a2713aSLionel Sambuc // I386:INT16_MAX_ 32767
156f4a2713aSLionel Sambuc // I386:INT16_MIN_ (-32767 -1)
157f4a2713aSLionel Sambuc // I386:UINT16_MAX_ 65535
158f4a2713aSLionel Sambuc // I386:INT_LEAST16_MIN_ (-32767 -1)
159f4a2713aSLionel Sambuc // I386:INT_LEAST16_MAX_ 32767
160f4a2713aSLionel Sambuc // I386:UINT_LEAST16_MAX_ 65535
161f4a2713aSLionel Sambuc // I386:INT_FAST16_MIN_ (-32767 -1)
162f4a2713aSLionel Sambuc // I386:INT_FAST16_MAX_ 32767
163f4a2713aSLionel Sambuc // I386:UINT_FAST16_MAX_ 65535
164f4a2713aSLionel Sambuc //
165f4a2713aSLionel Sambuc // I386:INT32_MAX_ 2147483647
166f4a2713aSLionel Sambuc // I386:INT32_MIN_ (-2147483647 -1)
167f4a2713aSLionel Sambuc // I386:UINT32_MAX_ 4294967295U
168f4a2713aSLionel Sambuc // I386:INT_LEAST32_MIN_ (-2147483647 -1)
169f4a2713aSLionel Sambuc // I386:INT_LEAST32_MAX_ 2147483647
170f4a2713aSLionel Sambuc // I386:UINT_LEAST32_MAX_ 4294967295U
171f4a2713aSLionel Sambuc // I386:INT_FAST32_MIN_ (-2147483647 -1)
172f4a2713aSLionel Sambuc // I386:INT_FAST32_MAX_ 2147483647
173f4a2713aSLionel Sambuc // I386:UINT_FAST32_MAX_ 4294967295U
174f4a2713aSLionel Sambuc //
175f4a2713aSLionel Sambuc // I386:INT64_MAX_ 9223372036854775807LL
176f4a2713aSLionel Sambuc // I386:INT64_MIN_ (-9223372036854775807LL -1)
177f4a2713aSLionel Sambuc // I386:UINT64_MAX_ 18446744073709551615ULL
178f4a2713aSLionel Sambuc // I386:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
179f4a2713aSLionel Sambuc // I386:INT_LEAST64_MAX_ 9223372036854775807LL
180f4a2713aSLionel Sambuc // I386:UINT_LEAST64_MAX_ 18446744073709551615ULL
181f4a2713aSLionel Sambuc // I386:INT_FAST64_MIN_ (-9223372036854775807LL -1)
182f4a2713aSLionel Sambuc // I386:INT_FAST64_MAX_ 9223372036854775807LL
183f4a2713aSLionel Sambuc // I386:UINT_FAST64_MAX_ 18446744073709551615ULL
184f4a2713aSLionel Sambuc //
185f4a2713aSLionel Sambuc // I386:INTPTR_MIN_ (-2147483647 -1)
186f4a2713aSLionel Sambuc // I386:INTPTR_MAX_ 2147483647
187f4a2713aSLionel Sambuc // I386:UINTPTR_MAX_ 4294967295U
188f4a2713aSLionel Sambuc // I386:PTRDIFF_MIN_ (-2147483647 -1)
189f4a2713aSLionel Sambuc // I386:PTRDIFF_MAX_ 2147483647
190f4a2713aSLionel Sambuc // I386:SIZE_MAX_ 4294967295U
191f4a2713aSLionel Sambuc //
192f4a2713aSLionel Sambuc // I386:INTMAX_MIN_ (-9223372036854775807LL -1)
193f4a2713aSLionel Sambuc // I386:INTMAX_MAX_ 9223372036854775807LL
194f4a2713aSLionel Sambuc // I386:UINTMAX_MAX_ 18446744073709551615ULL
195f4a2713aSLionel Sambuc //
196f4a2713aSLionel Sambuc // I386:SIG_ATOMIC_MIN_ (-2147483647 -1)
197f4a2713aSLionel Sambuc // I386:SIG_ATOMIC_MAX_ 2147483647
198f4a2713aSLionel Sambuc // I386:WINT_MIN_ (-2147483647 -1)
199f4a2713aSLionel Sambuc // I386:WINT_MAX_ 2147483647
200f4a2713aSLionel Sambuc //
201f4a2713aSLionel Sambuc // I386:WCHAR_MAX_ 2147483647
202f4a2713aSLionel Sambuc // I386:WCHAR_MIN_ (-2147483647 -1)
203f4a2713aSLionel Sambuc //
204f4a2713aSLionel Sambuc // I386:INT8_C_(0) 0
205f4a2713aSLionel Sambuc // I386:UINT8_C_(0) 0U
206f4a2713aSLionel Sambuc // I386:INT16_C_(0) 0
207f4a2713aSLionel Sambuc // I386:UINT16_C_(0) 0U
208f4a2713aSLionel Sambuc // I386:INT32_C_(0) 0
209f4a2713aSLionel Sambuc // I386:UINT32_C_(0) 0U
210f4a2713aSLionel Sambuc // I386:INT64_C_(0) 0LL
211f4a2713aSLionel Sambuc // I386:UINT64_C_(0) 0ULL
212f4a2713aSLionel Sambuc //
213f4a2713aSLionel Sambuc // I386:INTMAX_C_(0) 0LL
214f4a2713aSLionel Sambuc // I386:UINTMAX_C_(0) 0ULL
215f4a2713aSLionel Sambuc //
216f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=mips-none-none %s | FileCheck -check-prefix MIPS %s
217f4a2713aSLionel Sambuc //
218*0a6a1f1dSLionel Sambuc // MIPS:typedef long long int int64_t;
219*0a6a1f1dSLionel Sambuc // MIPS:typedef long long unsigned int uint64_t;
220f4a2713aSLionel Sambuc // MIPS:typedef int64_t int_least64_t;
221f4a2713aSLionel Sambuc // MIPS:typedef uint64_t uint_least64_t;
222f4a2713aSLionel Sambuc // MIPS:typedef int64_t int_fast64_t;
223f4a2713aSLionel Sambuc // MIPS:typedef uint64_t uint_fast64_t;
224f4a2713aSLionel Sambuc //
225*0a6a1f1dSLionel Sambuc // MIPS:typedef int int32_t;
226f4a2713aSLionel Sambuc // MIPS:typedef unsigned int uint32_t;
227f4a2713aSLionel Sambuc // MIPS:typedef int32_t int_least32_t;
228f4a2713aSLionel Sambuc // MIPS:typedef uint32_t uint_least32_t;
229f4a2713aSLionel Sambuc // MIPS:typedef int32_t int_fast32_t;
230f4a2713aSLionel Sambuc // MIPS:typedef uint32_t uint_fast32_t;
231f4a2713aSLionel Sambuc //
232*0a6a1f1dSLionel Sambuc // MIPS:typedef short int16_t;
233f4a2713aSLionel Sambuc // MIPS:typedef unsigned short uint16_t;
234f4a2713aSLionel Sambuc // MIPS:typedef int16_t int_least16_t;
235f4a2713aSLionel Sambuc // MIPS:typedef uint16_t uint_least16_t;
236f4a2713aSLionel Sambuc // MIPS:typedef int16_t int_fast16_t;
237f4a2713aSLionel Sambuc // MIPS:typedef uint16_t uint_fast16_t;
238f4a2713aSLionel Sambuc //
239f4a2713aSLionel Sambuc // MIPS:typedef signed char int8_t;
240f4a2713aSLionel Sambuc // MIPS:typedef unsigned char uint8_t;
241f4a2713aSLionel Sambuc // MIPS:typedef int8_t int_least8_t;
242f4a2713aSLionel Sambuc // MIPS:typedef uint8_t uint_least8_t;
243f4a2713aSLionel Sambuc // MIPS:typedef int8_t int_fast8_t;
244f4a2713aSLionel Sambuc // MIPS:typedef uint8_t uint_fast8_t;
245f4a2713aSLionel Sambuc //
246f4a2713aSLionel Sambuc // MIPS:typedef int32_t intptr_t;
247f4a2713aSLionel Sambuc // MIPS:typedef uint32_t uintptr_t;
248f4a2713aSLionel Sambuc //
249f4a2713aSLionel Sambuc // MIPS:typedef long long int intmax_t;
250f4a2713aSLionel Sambuc // MIPS:typedef long long unsigned int uintmax_t;
251f4a2713aSLionel Sambuc //
252f4a2713aSLionel Sambuc // MIPS:INT8_MAX_ 127
253f4a2713aSLionel Sambuc // MIPS:INT8_MIN_ (-127 -1)
254f4a2713aSLionel Sambuc // MIPS:UINT8_MAX_ 255
255f4a2713aSLionel Sambuc // MIPS:INT_LEAST8_MIN_ (-127 -1)
256f4a2713aSLionel Sambuc // MIPS:INT_LEAST8_MAX_ 127
257f4a2713aSLionel Sambuc // MIPS:UINT_LEAST8_MAX_ 255
258f4a2713aSLionel Sambuc // MIPS:INT_FAST8_MIN_ (-127 -1)
259f4a2713aSLionel Sambuc // MIPS:INT_FAST8_MAX_ 127
260f4a2713aSLionel Sambuc // MIPS:UINT_FAST8_MAX_ 255
261f4a2713aSLionel Sambuc //
262f4a2713aSLionel Sambuc // MIPS:INT16_MAX_ 32767
263f4a2713aSLionel Sambuc // MIPS:INT16_MIN_ (-32767 -1)
264f4a2713aSLionel Sambuc // MIPS:UINT16_MAX_ 65535
265f4a2713aSLionel Sambuc // MIPS:INT_LEAST16_MIN_ (-32767 -1)
266f4a2713aSLionel Sambuc // MIPS:INT_LEAST16_MAX_ 32767
267f4a2713aSLionel Sambuc // MIPS:UINT_LEAST16_MAX_ 65535
268f4a2713aSLionel Sambuc // MIPS:INT_FAST16_MIN_ (-32767 -1)
269f4a2713aSLionel Sambuc // MIPS:INT_FAST16_MAX_ 32767
270f4a2713aSLionel Sambuc // MIPS:UINT_FAST16_MAX_ 65535
271f4a2713aSLionel Sambuc //
272f4a2713aSLionel Sambuc // MIPS:INT32_MAX_ 2147483647
273f4a2713aSLionel Sambuc // MIPS:INT32_MIN_ (-2147483647 -1)
274f4a2713aSLionel Sambuc // MIPS:UINT32_MAX_ 4294967295U
275f4a2713aSLionel Sambuc // MIPS:INT_LEAST32_MIN_ (-2147483647 -1)
276f4a2713aSLionel Sambuc // MIPS:INT_LEAST32_MAX_ 2147483647
277f4a2713aSLionel Sambuc // MIPS:UINT_LEAST32_MAX_ 4294967295U
278f4a2713aSLionel Sambuc // MIPS:INT_FAST32_MIN_ (-2147483647 -1)
279f4a2713aSLionel Sambuc // MIPS:INT_FAST32_MAX_ 2147483647
280f4a2713aSLionel Sambuc // MIPS:UINT_FAST32_MAX_ 4294967295U
281f4a2713aSLionel Sambuc //
282f4a2713aSLionel Sambuc // MIPS:INT64_MAX_ 9223372036854775807LL
283f4a2713aSLionel Sambuc // MIPS:INT64_MIN_ (-9223372036854775807LL -1)
284f4a2713aSLionel Sambuc // MIPS:UINT64_MAX_ 18446744073709551615ULL
285f4a2713aSLionel Sambuc // MIPS:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
286f4a2713aSLionel Sambuc // MIPS:INT_LEAST64_MAX_ 9223372036854775807LL
287f4a2713aSLionel Sambuc // MIPS:UINT_LEAST64_MAX_ 18446744073709551615ULL
288f4a2713aSLionel Sambuc // MIPS:INT_FAST64_MIN_ (-9223372036854775807LL -1)
289f4a2713aSLionel Sambuc // MIPS:INT_FAST64_MAX_ 9223372036854775807LL
290f4a2713aSLionel Sambuc // MIPS:UINT_FAST64_MAX_ 18446744073709551615ULL
291f4a2713aSLionel Sambuc //
292f4a2713aSLionel Sambuc // MIPS:INTPTR_MIN_ (-2147483647 -1)
293f4a2713aSLionel Sambuc // MIPS:INTPTR_MAX_ 2147483647
294f4a2713aSLionel Sambuc // MIPS:UINTPTR_MAX_ 4294967295U
295f4a2713aSLionel Sambuc // MIPS:PTRDIFF_MIN_ (-2147483647 -1)
296f4a2713aSLionel Sambuc // MIPS:PTRDIFF_MAX_ 2147483647
297f4a2713aSLionel Sambuc // MIPS:SIZE_MAX_ 4294967295U
298f4a2713aSLionel Sambuc //
299f4a2713aSLionel Sambuc // MIPS:INTMAX_MIN_ (-9223372036854775807LL -1)
300f4a2713aSLionel Sambuc // MIPS:INTMAX_MAX_ 9223372036854775807LL
301f4a2713aSLionel Sambuc // MIPS:UINTMAX_MAX_ 18446744073709551615ULL
302f4a2713aSLionel Sambuc //
303f4a2713aSLionel Sambuc // MIPS:SIG_ATOMIC_MIN_ (-2147483647 -1)
304f4a2713aSLionel Sambuc // MIPS:SIG_ATOMIC_MAX_ 2147483647
305f4a2713aSLionel Sambuc // MIPS:WINT_MIN_ (-2147483647 -1)
306f4a2713aSLionel Sambuc // MIPS:WINT_MAX_ 2147483647
307f4a2713aSLionel Sambuc //
308f4a2713aSLionel Sambuc // MIPS:WCHAR_MAX_ 2147483647
309f4a2713aSLionel Sambuc // MIPS:WCHAR_MIN_ (-2147483647 -1)
310f4a2713aSLionel Sambuc //
311f4a2713aSLionel Sambuc // MIPS:INT8_C_(0) 0
312f4a2713aSLionel Sambuc // MIPS:UINT8_C_(0) 0U
313f4a2713aSLionel Sambuc // MIPS:INT16_C_(0) 0
314f4a2713aSLionel Sambuc // MIPS:UINT16_C_(0) 0U
315f4a2713aSLionel Sambuc // MIPS:INT32_C_(0) 0
316f4a2713aSLionel Sambuc // MIPS:UINT32_C_(0) 0U
317f4a2713aSLionel Sambuc // MIPS:INT64_C_(0) 0LL
318f4a2713aSLionel Sambuc // MIPS:UINT64_C_(0) 0ULL
319f4a2713aSLionel Sambuc //
320f4a2713aSLionel Sambuc // MIPS:INTMAX_C_(0) 0LL
321f4a2713aSLionel Sambuc // MIPS:UINTMAX_C_(0) 0ULL
322f4a2713aSLionel Sambuc //
323f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=mips64-none-none %s | FileCheck -check-prefix MIPS64 %s
324f4a2713aSLionel Sambuc //
325*0a6a1f1dSLionel Sambuc // MIPS64:typedef long int int64_t;
326*0a6a1f1dSLionel Sambuc // MIPS64:typedef long unsigned int uint64_t;
327f4a2713aSLionel Sambuc // MIPS64:typedef int64_t int_least64_t;
328f4a2713aSLionel Sambuc // MIPS64:typedef uint64_t uint_least64_t;
329f4a2713aSLionel Sambuc // MIPS64:typedef int64_t int_fast64_t;
330f4a2713aSLionel Sambuc // MIPS64:typedef uint64_t uint_fast64_t;
331f4a2713aSLionel Sambuc //
332*0a6a1f1dSLionel Sambuc // MIPS64:typedef int int32_t;
333f4a2713aSLionel Sambuc // MIPS64:typedef unsigned int uint32_t;
334f4a2713aSLionel Sambuc // MIPS64:typedef int32_t int_least32_t;
335f4a2713aSLionel Sambuc // MIPS64:typedef uint32_t uint_least32_t;
336f4a2713aSLionel Sambuc // MIPS64:typedef int32_t int_fast32_t;
337f4a2713aSLionel Sambuc // MIPS64:typedef uint32_t uint_fast32_t;
338f4a2713aSLionel Sambuc //
339*0a6a1f1dSLionel Sambuc // MIPS64:typedef short int16_t;
340f4a2713aSLionel Sambuc // MIPS64:typedef unsigned short uint16_t;
341f4a2713aSLionel Sambuc // MIPS64:typedef int16_t int_least16_t;
342f4a2713aSLionel Sambuc // MIPS64:typedef uint16_t uint_least16_t;
343f4a2713aSLionel Sambuc // MIPS64:typedef int16_t int_fast16_t;
344f4a2713aSLionel Sambuc // MIPS64:typedef uint16_t uint_fast16_t;
345f4a2713aSLionel Sambuc //
346f4a2713aSLionel Sambuc // MIPS64:typedef signed char int8_t;
347f4a2713aSLionel Sambuc // MIPS64:typedef unsigned char uint8_t;
348f4a2713aSLionel Sambuc // MIPS64:typedef int8_t int_least8_t;
349f4a2713aSLionel Sambuc // MIPS64:typedef uint8_t uint_least8_t;
350f4a2713aSLionel Sambuc // MIPS64:typedef int8_t int_fast8_t;
351f4a2713aSLionel Sambuc // MIPS64:typedef uint8_t uint_fast8_t;
352f4a2713aSLionel Sambuc //
353f4a2713aSLionel Sambuc // MIPS64:typedef int64_t intptr_t;
354f4a2713aSLionel Sambuc // MIPS64:typedef uint64_t uintptr_t;
355f4a2713aSLionel Sambuc //
356*0a6a1f1dSLionel Sambuc // MIPS64:typedef long int intmax_t;
357*0a6a1f1dSLionel Sambuc // MIPS64:typedef long unsigned int uintmax_t;
358f4a2713aSLionel Sambuc //
359f4a2713aSLionel Sambuc // MIPS64:INT8_MAX_ 127
360f4a2713aSLionel Sambuc // MIPS64:INT8_MIN_ (-127 -1)
361f4a2713aSLionel Sambuc // MIPS64:UINT8_MAX_ 255
362f4a2713aSLionel Sambuc // MIPS64:INT_LEAST8_MIN_ (-127 -1)
363f4a2713aSLionel Sambuc // MIPS64:INT_LEAST8_MAX_ 127
364f4a2713aSLionel Sambuc // MIPS64:UINT_LEAST8_MAX_ 255
365f4a2713aSLionel Sambuc // MIPS64:INT_FAST8_MIN_ (-127 -1)
366f4a2713aSLionel Sambuc // MIPS64:INT_FAST8_MAX_ 127
367f4a2713aSLionel Sambuc // MIPS64:UINT_FAST8_MAX_ 255
368f4a2713aSLionel Sambuc //
369f4a2713aSLionel Sambuc // MIPS64:INT16_MAX_ 32767
370f4a2713aSLionel Sambuc // MIPS64:INT16_MIN_ (-32767 -1)
371f4a2713aSLionel Sambuc // MIPS64:UINT16_MAX_ 65535
372f4a2713aSLionel Sambuc // MIPS64:INT_LEAST16_MIN_ (-32767 -1)
373f4a2713aSLionel Sambuc // MIPS64:INT_LEAST16_MAX_ 32767
374f4a2713aSLionel Sambuc // MIPS64:UINT_LEAST16_MAX_ 65535
375f4a2713aSLionel Sambuc // MIPS64:INT_FAST16_MIN_ (-32767 -1)
376f4a2713aSLionel Sambuc // MIPS64:INT_FAST16_MAX_ 32767
377f4a2713aSLionel Sambuc // MIPS64:UINT_FAST16_MAX_ 65535
378f4a2713aSLionel Sambuc //
379f4a2713aSLionel Sambuc // MIPS64:INT32_MAX_ 2147483647
380f4a2713aSLionel Sambuc // MIPS64:INT32_MIN_ (-2147483647 -1)
381f4a2713aSLionel Sambuc // MIPS64:UINT32_MAX_ 4294967295U
382f4a2713aSLionel Sambuc // MIPS64:INT_LEAST32_MIN_ (-2147483647 -1)
383f4a2713aSLionel Sambuc // MIPS64:INT_LEAST32_MAX_ 2147483647
384f4a2713aSLionel Sambuc // MIPS64:UINT_LEAST32_MAX_ 4294967295U
385f4a2713aSLionel Sambuc // MIPS64:INT_FAST32_MIN_ (-2147483647 -1)
386f4a2713aSLionel Sambuc // MIPS64:INT_FAST32_MAX_ 2147483647
387f4a2713aSLionel Sambuc // MIPS64:UINT_FAST32_MAX_ 4294967295U
388f4a2713aSLionel Sambuc //
389*0a6a1f1dSLionel Sambuc // MIPS64:INT64_MAX_ 9223372036854775807L
390*0a6a1f1dSLionel Sambuc // MIPS64:INT64_MIN_ (-9223372036854775807L -1)
391*0a6a1f1dSLionel Sambuc // MIPS64:UINT64_MAX_ 18446744073709551615UL
392*0a6a1f1dSLionel Sambuc // MIPS64:INT_LEAST64_MIN_ (-9223372036854775807L -1)
393*0a6a1f1dSLionel Sambuc // MIPS64:INT_LEAST64_MAX_ 9223372036854775807L
394*0a6a1f1dSLionel Sambuc // MIPS64:UINT_LEAST64_MAX_ 18446744073709551615UL
395*0a6a1f1dSLionel Sambuc // MIPS64:INT_FAST64_MIN_ (-9223372036854775807L -1)
396*0a6a1f1dSLionel Sambuc // MIPS64:INT_FAST64_MAX_ 9223372036854775807L
397*0a6a1f1dSLionel Sambuc // MIPS64:UINT_FAST64_MAX_ 18446744073709551615UL
398f4a2713aSLionel Sambuc //
399*0a6a1f1dSLionel Sambuc // MIPS64:INTPTR_MIN_ (-9223372036854775807L -1)
400*0a6a1f1dSLionel Sambuc // MIPS64:INTPTR_MAX_ 9223372036854775807L
401*0a6a1f1dSLionel Sambuc // MIPS64:UINTPTR_MAX_ 18446744073709551615UL
402*0a6a1f1dSLionel Sambuc // MIPS64:PTRDIFF_MIN_ (-9223372036854775807L -1)
403*0a6a1f1dSLionel Sambuc // MIPS64:PTRDIFF_MAX_ 9223372036854775807L
404*0a6a1f1dSLionel Sambuc // MIPS64:SIZE_MAX_ 18446744073709551615UL
405f4a2713aSLionel Sambuc //
406*0a6a1f1dSLionel Sambuc // MIPS64:INTMAX_MIN_ (-9223372036854775807L -1)
407*0a6a1f1dSLionel Sambuc // MIPS64:INTMAX_MAX_ 9223372036854775807L
408*0a6a1f1dSLionel Sambuc // MIPS64:UINTMAX_MAX_ 18446744073709551615UL
409f4a2713aSLionel Sambuc //
410f4a2713aSLionel Sambuc // MIPS64:SIG_ATOMIC_MIN_ (-2147483647 -1)
411f4a2713aSLionel Sambuc // MIPS64:SIG_ATOMIC_MAX_ 2147483647
412f4a2713aSLionel Sambuc // MIPS64:WINT_MIN_ (-2147483647 -1)
413f4a2713aSLionel Sambuc // MIPS64:WINT_MAX_ 2147483647
414f4a2713aSLionel Sambuc //
415f4a2713aSLionel Sambuc // MIPS64:WCHAR_MAX_ 2147483647
416f4a2713aSLionel Sambuc // MIPS64:WCHAR_MIN_ (-2147483647 -1)
417f4a2713aSLionel Sambuc //
418f4a2713aSLionel Sambuc // MIPS64:INT8_C_(0) 0
419f4a2713aSLionel Sambuc // MIPS64:UINT8_C_(0) 0U
420f4a2713aSLionel Sambuc // MIPS64:INT16_C_(0) 0
421f4a2713aSLionel Sambuc // MIPS64:UINT16_C_(0) 0U
422f4a2713aSLionel Sambuc // MIPS64:INT32_C_(0) 0
423f4a2713aSLionel Sambuc // MIPS64:UINT32_C_(0) 0U
424*0a6a1f1dSLionel Sambuc // MIPS64:INT64_C_(0) 0L
425*0a6a1f1dSLionel Sambuc // MIPS64:UINT64_C_(0) 0UL
426f4a2713aSLionel Sambuc //
427*0a6a1f1dSLionel Sambuc // MIPS64:INTMAX_C_(0) 0L
428*0a6a1f1dSLionel Sambuc // MIPS64:UINTMAX_C_(0) 0UL
429f4a2713aSLionel Sambuc //
430f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=msp430-none-none %s | FileCheck -check-prefix MSP430 %s
431f4a2713aSLionel Sambuc //
432*0a6a1f1dSLionel Sambuc // MSP430:typedef long int int32_t;
433*0a6a1f1dSLionel Sambuc // MSP430:typedef long unsigned int uint32_t;
434f4a2713aSLionel Sambuc // MSP430:typedef int32_t int_least32_t;
435f4a2713aSLionel Sambuc // MSP430:typedef uint32_t uint_least32_t;
436f4a2713aSLionel Sambuc // MSP430:typedef int32_t int_fast32_t;
437f4a2713aSLionel Sambuc // MSP430:typedef uint32_t uint_fast32_t;
438f4a2713aSLionel Sambuc //
439*0a6a1f1dSLionel Sambuc // MSP430:typedef short int16_t;
440f4a2713aSLionel Sambuc // MSP430:typedef unsigned short uint16_t;
441f4a2713aSLionel Sambuc // MSP430:typedef int16_t int_least16_t;
442f4a2713aSLionel Sambuc // MSP430:typedef uint16_t uint_least16_t;
443f4a2713aSLionel Sambuc // MSP430:typedef int16_t int_fast16_t;
444f4a2713aSLionel Sambuc // MSP430:typedef uint16_t uint_fast16_t;
445f4a2713aSLionel Sambuc //
446f4a2713aSLionel Sambuc // MSP430:typedef signed char int8_t;
447f4a2713aSLionel Sambuc // MSP430:typedef unsigned char uint8_t;
448f4a2713aSLionel Sambuc // MSP430:typedef int8_t int_least8_t;
449f4a2713aSLionel Sambuc // MSP430:typedef uint8_t uint_least8_t;
450f4a2713aSLionel Sambuc // MSP430:typedef int8_t int_fast8_t;
451f4a2713aSLionel Sambuc // MSP430:typedef uint8_t uint_fast8_t;
452f4a2713aSLionel Sambuc //
453f4a2713aSLionel Sambuc // MSP430:typedef int16_t intptr_t;
454f4a2713aSLionel Sambuc // MSP430:typedef uint16_t uintptr_t;
455f4a2713aSLionel Sambuc //
456f4a2713aSLionel Sambuc // MSP430:typedef long long int intmax_t;
457f4a2713aSLionel Sambuc // MSP430:typedef long long unsigned int uintmax_t;
458f4a2713aSLionel Sambuc //
459f4a2713aSLionel Sambuc // MSP430:INT8_MAX_ 127
460f4a2713aSLionel Sambuc // MSP430:INT8_MIN_ (-127 -1)
461f4a2713aSLionel Sambuc // MSP430:UINT8_MAX_ 255
462f4a2713aSLionel Sambuc // MSP430:INT_LEAST8_MIN_ (-127 -1)
463f4a2713aSLionel Sambuc // MSP430:INT_LEAST8_MAX_ 127
464f4a2713aSLionel Sambuc // MSP430:UINT_LEAST8_MAX_ 255
465f4a2713aSLionel Sambuc // MSP430:INT_FAST8_MIN_ (-127 -1)
466f4a2713aSLionel Sambuc // MSP430:INT_FAST8_MAX_ 127
467f4a2713aSLionel Sambuc // MSP430:UINT_FAST8_MAX_ 255
468f4a2713aSLionel Sambuc //
469f4a2713aSLionel Sambuc // MSP430:INT16_MAX_ 32767
470f4a2713aSLionel Sambuc // MSP430:INT16_MIN_ (-32767 -1)
471f4a2713aSLionel Sambuc // MSP430:UINT16_MAX_ 65535
472f4a2713aSLionel Sambuc // MSP430:INT_LEAST16_MIN_ (-32767 -1)
473f4a2713aSLionel Sambuc // MSP430:INT_LEAST16_MAX_ 32767
474f4a2713aSLionel Sambuc // MSP430:UINT_LEAST16_MAX_ 65535
475f4a2713aSLionel Sambuc // MSP430:INT_FAST16_MIN_ (-32767 -1)
476f4a2713aSLionel Sambuc // MSP430:INT_FAST16_MAX_ 32767
477f4a2713aSLionel Sambuc // MSP430:UINT_FAST16_MAX_ 65535
478f4a2713aSLionel Sambuc //
479f4a2713aSLionel Sambuc // MSP430:INT32_MAX_ 2147483647L
480f4a2713aSLionel Sambuc // MSP430:INT32_MIN_ (-2147483647L -1)
481f4a2713aSLionel Sambuc // MSP430:UINT32_MAX_ 4294967295UL
482f4a2713aSLionel Sambuc // MSP430:INT_LEAST32_MIN_ (-2147483647L -1)
483f4a2713aSLionel Sambuc // MSP430:INT_LEAST32_MAX_ 2147483647L
484f4a2713aSLionel Sambuc // MSP430:UINT_LEAST32_MAX_ 4294967295UL
485f4a2713aSLionel Sambuc // MSP430:INT_FAST32_MIN_ (-2147483647L -1)
486f4a2713aSLionel Sambuc // MSP430:INT_FAST32_MAX_ 2147483647L
487f4a2713aSLionel Sambuc // MSP430:UINT_FAST32_MAX_ 4294967295UL
488f4a2713aSLionel Sambuc //
489f4a2713aSLionel Sambuc // MSP430:INT64_MAX_ 9223372036854775807LL
490f4a2713aSLionel Sambuc // MSP430:INT64_MIN_ (-9223372036854775807LL -1)
491f4a2713aSLionel Sambuc // MSP430:UINT64_MAX_ 18446744073709551615ULL
492f4a2713aSLionel Sambuc // MSP430:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
493f4a2713aSLionel Sambuc // MSP430:INT_LEAST64_MAX_ 9223372036854775807LL
494f4a2713aSLionel Sambuc // MSP430:UINT_LEAST64_MAX_ 18446744073709551615ULL
495f4a2713aSLionel Sambuc // MSP430:INT_FAST64_MIN_ (-9223372036854775807LL -1)
496f4a2713aSLionel Sambuc // MSP430:INT_FAST64_MAX_ 9223372036854775807LL
497f4a2713aSLionel Sambuc // MSP430:UINT_FAST64_MAX_ 18446744073709551615ULL
498f4a2713aSLionel Sambuc //
499f4a2713aSLionel Sambuc // MSP430:INTPTR_MIN_ (-32767 -1)
500f4a2713aSLionel Sambuc // MSP430:INTPTR_MAX_ 32767
501f4a2713aSLionel Sambuc // MSP430:UINTPTR_MAX_ 65535
502f4a2713aSLionel Sambuc // MSP430:PTRDIFF_MIN_ (-32767 -1)
503f4a2713aSLionel Sambuc // MSP430:PTRDIFF_MAX_ 32767
504f4a2713aSLionel Sambuc // MSP430:SIZE_MAX_ 65535
505f4a2713aSLionel Sambuc //
506f4a2713aSLionel Sambuc // MSP430:INTMAX_MIN_ (-9223372036854775807LL -1)
507f4a2713aSLionel Sambuc // MSP430:INTMAX_MAX_ 9223372036854775807LL
508f4a2713aSLionel Sambuc // MSP430:UINTMAX_MAX_ 18446744073709551615ULL
509f4a2713aSLionel Sambuc //
510f4a2713aSLionel Sambuc // MSP430:SIG_ATOMIC_MIN_ (-2147483647L -1)
511f4a2713aSLionel Sambuc // MSP430:SIG_ATOMIC_MAX_ 2147483647L
512f4a2713aSLionel Sambuc // MSP430:WINT_MIN_ (-32767 -1)
513f4a2713aSLionel Sambuc // MSP430:WINT_MAX_ 32767
514f4a2713aSLionel Sambuc //
515f4a2713aSLionel Sambuc // MSP430:WCHAR_MAX_ 32767
516f4a2713aSLionel Sambuc // MSP430:WCHAR_MIN_ (-32767 -1)
517f4a2713aSLionel Sambuc //
518f4a2713aSLionel Sambuc // MSP430:INT8_C_(0) 0
519f4a2713aSLionel Sambuc // MSP430:UINT8_C_(0) 0U
520f4a2713aSLionel Sambuc // MSP430:INT16_C_(0) 0
521f4a2713aSLionel Sambuc // MSP430:UINT16_C_(0) 0U
522f4a2713aSLionel Sambuc // MSP430:INT32_C_(0) 0L
523f4a2713aSLionel Sambuc // MSP430:UINT32_C_(0) 0UL
524f4a2713aSLionel Sambuc // MSP430:INT64_C_(0) 0LL
525f4a2713aSLionel Sambuc // MSP430:UINT64_C_(0) 0ULL
526f4a2713aSLionel Sambuc //
527f4a2713aSLionel Sambuc // MSP430:INTMAX_C_(0) 0L
528f4a2713aSLionel Sambuc // MSP430:UINTMAX_C_(0) 0UL
529f4a2713aSLionel Sambuc //
530f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=powerpc64-none-none %s | FileCheck -check-prefix PPC64 %s
531f4a2713aSLionel Sambuc //
532*0a6a1f1dSLionel Sambuc // PPC64:typedef long int int64_t;
533*0a6a1f1dSLionel Sambuc // PPC64:typedef long unsigned int uint64_t;
534f4a2713aSLionel Sambuc // PPC64:typedef int64_t int_least64_t;
535f4a2713aSLionel Sambuc // PPC64:typedef uint64_t uint_least64_t;
536f4a2713aSLionel Sambuc // PPC64:typedef int64_t int_fast64_t;
537f4a2713aSLionel Sambuc // PPC64:typedef uint64_t uint_fast64_t;
538f4a2713aSLionel Sambuc //
539*0a6a1f1dSLionel Sambuc // PPC64:typedef int int32_t;
540f4a2713aSLionel Sambuc // PPC64:typedef unsigned int uint32_t;
541f4a2713aSLionel Sambuc // PPC64:typedef int32_t int_least32_t;
542f4a2713aSLionel Sambuc // PPC64:typedef uint32_t uint_least32_t;
543f4a2713aSLionel Sambuc // PPC64:typedef int32_t int_fast32_t;
544f4a2713aSLionel Sambuc // PPC64:typedef uint32_t uint_fast32_t;
545f4a2713aSLionel Sambuc //
546*0a6a1f1dSLionel Sambuc // PPC64:typedef short int16_t;
547f4a2713aSLionel Sambuc // PPC64:typedef unsigned short uint16_t;
548f4a2713aSLionel Sambuc // PPC64:typedef int16_t int_least16_t;
549f4a2713aSLionel Sambuc // PPC64:typedef uint16_t uint_least16_t;
550f4a2713aSLionel Sambuc // PPC64:typedef int16_t int_fast16_t;
551f4a2713aSLionel Sambuc // PPC64:typedef uint16_t uint_fast16_t;
552f4a2713aSLionel Sambuc //
553f4a2713aSLionel Sambuc // PPC64:typedef signed char int8_t;
554f4a2713aSLionel Sambuc // PPC64:typedef unsigned char uint8_t;
555f4a2713aSLionel Sambuc // PPC64:typedef int8_t int_least8_t;
556f4a2713aSLionel Sambuc // PPC64:typedef uint8_t uint_least8_t;
557f4a2713aSLionel Sambuc // PPC64:typedef int8_t int_fast8_t;
558f4a2713aSLionel Sambuc // PPC64:typedef uint8_t uint_fast8_t;
559f4a2713aSLionel Sambuc //
560f4a2713aSLionel Sambuc // PPC64:typedef int64_t intptr_t;
561f4a2713aSLionel Sambuc // PPC64:typedef uint64_t uintptr_t;
562f4a2713aSLionel Sambuc //
563f4a2713aSLionel Sambuc // PPC64:typedef long int intmax_t;
564f4a2713aSLionel Sambuc // PPC64:typedef long unsigned int uintmax_t;
565f4a2713aSLionel Sambuc //
566f4a2713aSLionel Sambuc // PPC64:INT8_MAX_ 127
567f4a2713aSLionel Sambuc // PPC64:INT8_MIN_ (-127 -1)
568f4a2713aSLionel Sambuc // PPC64:UINT8_MAX_ 255
569f4a2713aSLionel Sambuc // PPC64:INT_LEAST8_MIN_ (-127 -1)
570f4a2713aSLionel Sambuc // PPC64:INT_LEAST8_MAX_ 127
571f4a2713aSLionel Sambuc // PPC64:UINT_LEAST8_MAX_ 255
572f4a2713aSLionel Sambuc // PPC64:INT_FAST8_MIN_ (-127 -1)
573f4a2713aSLionel Sambuc // PPC64:INT_FAST8_MAX_ 127
574f4a2713aSLionel Sambuc // PPC64:UINT_FAST8_MAX_ 255
575f4a2713aSLionel Sambuc //
576f4a2713aSLionel Sambuc // PPC64:INT16_MAX_ 32767
577f4a2713aSLionel Sambuc // PPC64:INT16_MIN_ (-32767 -1)
578f4a2713aSLionel Sambuc // PPC64:UINT16_MAX_ 65535
579f4a2713aSLionel Sambuc // PPC64:INT_LEAST16_MIN_ (-32767 -1)
580f4a2713aSLionel Sambuc // PPC64:INT_LEAST16_MAX_ 32767
581f4a2713aSLionel Sambuc // PPC64:UINT_LEAST16_MAX_ 65535
582f4a2713aSLionel Sambuc // PPC64:INT_FAST16_MIN_ (-32767 -1)
583f4a2713aSLionel Sambuc // PPC64:INT_FAST16_MAX_ 32767
584f4a2713aSLionel Sambuc // PPC64:UINT_FAST16_MAX_ 65535
585f4a2713aSLionel Sambuc //
586f4a2713aSLionel Sambuc // PPC64:INT32_MAX_ 2147483647
587f4a2713aSLionel Sambuc // PPC64:INT32_MIN_ (-2147483647 -1)
588f4a2713aSLionel Sambuc // PPC64:UINT32_MAX_ 4294967295U
589f4a2713aSLionel Sambuc // PPC64:INT_LEAST32_MIN_ (-2147483647 -1)
590f4a2713aSLionel Sambuc // PPC64:INT_LEAST32_MAX_ 2147483647
591f4a2713aSLionel Sambuc // PPC64:UINT_LEAST32_MAX_ 4294967295U
592f4a2713aSLionel Sambuc // PPC64:INT_FAST32_MIN_ (-2147483647 -1)
593f4a2713aSLionel Sambuc // PPC64:INT_FAST32_MAX_ 2147483647
594f4a2713aSLionel Sambuc // PPC64:UINT_FAST32_MAX_ 4294967295U
595f4a2713aSLionel Sambuc //
596f4a2713aSLionel Sambuc // PPC64:INT64_MAX_ 9223372036854775807L
597f4a2713aSLionel Sambuc // PPC64:INT64_MIN_ (-9223372036854775807L -1)
598f4a2713aSLionel Sambuc // PPC64:UINT64_MAX_ 18446744073709551615UL
599f4a2713aSLionel Sambuc // PPC64:INT_LEAST64_MIN_ (-9223372036854775807L -1)
600f4a2713aSLionel Sambuc // PPC64:INT_LEAST64_MAX_ 9223372036854775807L
601f4a2713aSLionel Sambuc // PPC64:UINT_LEAST64_MAX_ 18446744073709551615UL
602f4a2713aSLionel Sambuc // PPC64:INT_FAST64_MIN_ (-9223372036854775807L -1)
603f4a2713aSLionel Sambuc // PPC64:INT_FAST64_MAX_ 9223372036854775807L
604f4a2713aSLionel Sambuc // PPC64:UINT_FAST64_MAX_ 18446744073709551615UL
605f4a2713aSLionel Sambuc //
606f4a2713aSLionel Sambuc // PPC64:INTPTR_MIN_ (-9223372036854775807L -1)
607f4a2713aSLionel Sambuc // PPC64:INTPTR_MAX_ 9223372036854775807L
608f4a2713aSLionel Sambuc // PPC64:UINTPTR_MAX_ 18446744073709551615UL
609f4a2713aSLionel Sambuc // PPC64:PTRDIFF_MIN_ (-9223372036854775807L -1)
610f4a2713aSLionel Sambuc // PPC64:PTRDIFF_MAX_ 9223372036854775807L
611f4a2713aSLionel Sambuc // PPC64:SIZE_MAX_ 18446744073709551615UL
612f4a2713aSLionel Sambuc //
613f4a2713aSLionel Sambuc // PPC64:INTMAX_MIN_ (-9223372036854775807L -1)
614f4a2713aSLionel Sambuc // PPC64:INTMAX_MAX_ 9223372036854775807L
615f4a2713aSLionel Sambuc // PPC64:UINTMAX_MAX_ 18446744073709551615UL
616f4a2713aSLionel Sambuc //
617f4a2713aSLionel Sambuc // PPC64:SIG_ATOMIC_MIN_ (-2147483647 -1)
618f4a2713aSLionel Sambuc // PPC64:SIG_ATOMIC_MAX_ 2147483647
619f4a2713aSLionel Sambuc // PPC64:WINT_MIN_ (-2147483647 -1)
620f4a2713aSLionel Sambuc // PPC64:WINT_MAX_ 2147483647
621f4a2713aSLionel Sambuc //
622f4a2713aSLionel Sambuc // PPC64:WCHAR_MAX_ 2147483647
623f4a2713aSLionel Sambuc // PPC64:WCHAR_MIN_ (-2147483647 -1)
624f4a2713aSLionel Sambuc //
625f4a2713aSLionel Sambuc // PPC64:INT8_C_(0) 0
626f4a2713aSLionel Sambuc // PPC64:UINT8_C_(0) 0U
627f4a2713aSLionel Sambuc // PPC64:INT16_C_(0) 0
628f4a2713aSLionel Sambuc // PPC64:UINT16_C_(0) 0U
629f4a2713aSLionel Sambuc // PPC64:INT32_C_(0) 0
630f4a2713aSLionel Sambuc // PPC64:UINT32_C_(0) 0U
631f4a2713aSLionel Sambuc // PPC64:INT64_C_(0) 0L
632f4a2713aSLionel Sambuc // PPC64:UINT64_C_(0) 0UL
633f4a2713aSLionel Sambuc //
634f4a2713aSLionel Sambuc // PPC64:INTMAX_C_(0) 0L
635f4a2713aSLionel Sambuc // PPC64:UINTMAX_C_(0) 0UL
636f4a2713aSLionel Sambuc //
637*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=powerpc64-none-netbsd %s | FileCheck -check-prefix PPC64-NETBSD %s
638*0a6a1f1dSLionel Sambuc //
639*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef long long int int64_t;
640*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef long long unsigned int uint64_t;
641*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int64_t int_least64_t;
642*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint64_t uint_least64_t;
643*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int64_t int_fast64_t;
644*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint64_t uint_fast64_t;
645*0a6a1f1dSLionel Sambuc //
646*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int int32_t;
647*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef unsigned int uint32_t;
648*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int32_t int_least32_t;
649*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint32_t uint_least32_t;
650*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int32_t int_fast32_t;
651*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint32_t uint_fast32_t;
652*0a6a1f1dSLionel Sambuc //
653*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef short int16_t;
654*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef unsigned short uint16_t;
655*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int16_t int_least16_t;
656*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint16_t uint_least16_t;
657*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int16_t int_fast16_t;
658*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint16_t uint_fast16_t;
659*0a6a1f1dSLionel Sambuc //
660*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef signed char int8_t;
661*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef unsigned char uint8_t;
662*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int8_t int_least8_t;
663*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint8_t uint_least8_t;
664*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int8_t int_fast8_t;
665*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint8_t uint_fast8_t;
666*0a6a1f1dSLionel Sambuc //
667*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef int64_t intptr_t;
668*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef uint64_t uintptr_t;
669*0a6a1f1dSLionel Sambuc //
670*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef long long int intmax_t;
671*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:typedef long long unsigned int uintmax_t;
672*0a6a1f1dSLionel Sambuc //
673*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT8_MAX_ 127
674*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT8_MIN_ (-127 -1)
675*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT8_MAX_ 255
676*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST8_MIN_ (-127 -1)
677*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST8_MAX_ 127
678*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_LEAST8_MAX_ 255
679*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST8_MIN_ (-127 -1)
680*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST8_MAX_ 127
681*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_FAST8_MAX_ 255
682*0a6a1f1dSLionel Sambuc //
683*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT16_MAX_ 32767
684*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT16_MIN_ (-32767 -1)
685*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT16_MAX_ 65535
686*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST16_MIN_ (-32767 -1)
687*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST16_MAX_ 32767
688*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_LEAST16_MAX_ 65535
689*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST16_MIN_ (-32767 -1)
690*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST16_MAX_ 32767
691*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_FAST16_MAX_ 65535
692*0a6a1f1dSLionel Sambuc //
693*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT32_MAX_ 2147483647
694*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT32_MIN_ (-2147483647 -1)
695*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT32_MAX_ 4294967295U
696*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST32_MIN_ (-2147483647 -1)
697*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST32_MAX_ 2147483647
698*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_LEAST32_MAX_ 4294967295U
699*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST32_MIN_ (-2147483647 -1)
700*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST32_MAX_ 2147483647
701*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_FAST32_MAX_ 4294967295U
702*0a6a1f1dSLionel Sambuc //
703*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT64_MAX_ 9223372036854775807LL
704*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT64_MIN_ (-9223372036854775807LL -1)
705*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT64_MAX_ 18446744073709551615ULL
706*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
707*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_LEAST64_MAX_ 9223372036854775807LL
708*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_LEAST64_MAX_ 18446744073709551615ULL
709*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST64_MIN_ (-9223372036854775807LL -1)
710*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT_FAST64_MAX_ 9223372036854775807LL
711*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT_FAST64_MAX_ 18446744073709551615ULL
712*0a6a1f1dSLionel Sambuc //
713*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INTPTR_MIN_ (-9223372036854775807LL -1)
714*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INTPTR_MAX_ 9223372036854775807LL
715*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINTPTR_MAX_ 18446744073709551615ULL
716*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:PTRDIFF_MIN_ (-9223372036854775807LL -1)
717*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:PTRDIFF_MAX_ 9223372036854775807LL
718*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:SIZE_MAX_ 18446744073709551615ULL
719*0a6a1f1dSLionel Sambuc //
720*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INTMAX_MIN_ (-9223372036854775807LL -1)
721*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INTMAX_MAX_ 9223372036854775807LL
722*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINTMAX_MAX_ 18446744073709551615ULL
723*0a6a1f1dSLionel Sambuc //
724*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:SIG_ATOMIC_MIN_ (-2147483647 -1)
725*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:SIG_ATOMIC_MAX_ 2147483647
726*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:WINT_MIN_ (-2147483647 -1)
727*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:WINT_MAX_ 2147483647
728*0a6a1f1dSLionel Sambuc //
729*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:WCHAR_MAX_ 2147483647
730*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:WCHAR_MIN_ (-2147483647 -1)
731*0a6a1f1dSLionel Sambuc //
732*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT8_C_(0) 0
733*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT8_C_(0) 0U
734*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT16_C_(0) 0
735*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT16_C_(0) 0U
736*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT32_C_(0) 0
737*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT32_C_(0) 0U
738*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INT64_C_(0) 0LL
739*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINT64_C_(0) 0ULL
740*0a6a1f1dSLionel Sambuc //
741*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:INTMAX_C_(0) 0LL
742*0a6a1f1dSLionel Sambuc // PPC64-NETBSD:UINTMAX_C_(0) 0ULL
743*0a6a1f1dSLionel Sambuc //
744f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=powerpc-none-none %s | FileCheck -check-prefix PPC %s
745f4a2713aSLionel Sambuc //
746f4a2713aSLionel Sambuc //
747*0a6a1f1dSLionel Sambuc // PPC:typedef long long int int64_t;
748*0a6a1f1dSLionel Sambuc // PPC:typedef long long unsigned int uint64_t;
749f4a2713aSLionel Sambuc // PPC:typedef int64_t int_least64_t;
750f4a2713aSLionel Sambuc // PPC:typedef uint64_t uint_least64_t;
751f4a2713aSLionel Sambuc // PPC:typedef int64_t int_fast64_t;
752f4a2713aSLionel Sambuc // PPC:typedef uint64_t uint_fast64_t;
753f4a2713aSLionel Sambuc //
754*0a6a1f1dSLionel Sambuc // PPC:typedef int int32_t;
755f4a2713aSLionel Sambuc // PPC:typedef unsigned int uint32_t;
756f4a2713aSLionel Sambuc // PPC:typedef int32_t int_least32_t;
757f4a2713aSLionel Sambuc // PPC:typedef uint32_t uint_least32_t;
758f4a2713aSLionel Sambuc // PPC:typedef int32_t int_fast32_t;
759f4a2713aSLionel Sambuc // PPC:typedef uint32_t uint_fast32_t;
760f4a2713aSLionel Sambuc //
761*0a6a1f1dSLionel Sambuc // PPC:typedef short int16_t;
762f4a2713aSLionel Sambuc // PPC:typedef unsigned short uint16_t;
763f4a2713aSLionel Sambuc // PPC:typedef int16_t int_least16_t;
764f4a2713aSLionel Sambuc // PPC:typedef uint16_t uint_least16_t;
765f4a2713aSLionel Sambuc // PPC:typedef int16_t int_fast16_t;
766f4a2713aSLionel Sambuc // PPC:typedef uint16_t uint_fast16_t;
767f4a2713aSLionel Sambuc //
768f4a2713aSLionel Sambuc // PPC:typedef signed char int8_t;
769f4a2713aSLionel Sambuc // PPC:typedef unsigned char uint8_t;
770f4a2713aSLionel Sambuc // PPC:typedef int8_t int_least8_t;
771f4a2713aSLionel Sambuc // PPC:typedef uint8_t uint_least8_t;
772f4a2713aSLionel Sambuc // PPC:typedef int8_t int_fast8_t;
773f4a2713aSLionel Sambuc // PPC:typedef uint8_t uint_fast8_t;
774f4a2713aSLionel Sambuc //
775f4a2713aSLionel Sambuc // PPC:typedef int32_t intptr_t;
776f4a2713aSLionel Sambuc // PPC:typedef uint32_t uintptr_t;
777f4a2713aSLionel Sambuc //
778f4a2713aSLionel Sambuc // PPC:typedef long long int intmax_t;
779f4a2713aSLionel Sambuc // PPC:typedef long long unsigned int uintmax_t;
780f4a2713aSLionel Sambuc //
781f4a2713aSLionel Sambuc // PPC:INT8_MAX_ 127
782f4a2713aSLionel Sambuc // PPC:INT8_MIN_ (-127 -1)
783f4a2713aSLionel Sambuc // PPC:UINT8_MAX_ 255
784f4a2713aSLionel Sambuc // PPC:INT_LEAST8_MIN_ (-127 -1)
785f4a2713aSLionel Sambuc // PPC:INT_LEAST8_MAX_ 127
786f4a2713aSLionel Sambuc // PPC:UINT_LEAST8_MAX_ 255
787f4a2713aSLionel Sambuc // PPC:INT_FAST8_MIN_ (-127 -1)
788f4a2713aSLionel Sambuc // PPC:INT_FAST8_MAX_ 127
789f4a2713aSLionel Sambuc // PPC:UINT_FAST8_MAX_ 255
790f4a2713aSLionel Sambuc //
791f4a2713aSLionel Sambuc // PPC:INT16_MAX_ 32767
792f4a2713aSLionel Sambuc // PPC:INT16_MIN_ (-32767 -1)
793f4a2713aSLionel Sambuc // PPC:UINT16_MAX_ 65535
794f4a2713aSLionel Sambuc // PPC:INT_LEAST16_MIN_ (-32767 -1)
795f4a2713aSLionel Sambuc // PPC:INT_LEAST16_MAX_ 32767
796f4a2713aSLionel Sambuc // PPC:UINT_LEAST16_MAX_ 65535
797f4a2713aSLionel Sambuc // PPC:INT_FAST16_MIN_ (-32767 -1)
798f4a2713aSLionel Sambuc // PPC:INT_FAST16_MAX_ 32767
799f4a2713aSLionel Sambuc // PPC:UINT_FAST16_MAX_ 65535
800f4a2713aSLionel Sambuc //
801f4a2713aSLionel Sambuc // PPC:INT32_MAX_ 2147483647
802f4a2713aSLionel Sambuc // PPC:INT32_MIN_ (-2147483647 -1)
803f4a2713aSLionel Sambuc // PPC:UINT32_MAX_ 4294967295U
804f4a2713aSLionel Sambuc // PPC:INT_LEAST32_MIN_ (-2147483647 -1)
805f4a2713aSLionel Sambuc // PPC:INT_LEAST32_MAX_ 2147483647
806f4a2713aSLionel Sambuc // PPC:UINT_LEAST32_MAX_ 4294967295U
807f4a2713aSLionel Sambuc // PPC:INT_FAST32_MIN_ (-2147483647 -1)
808f4a2713aSLionel Sambuc // PPC:INT_FAST32_MAX_ 2147483647
809f4a2713aSLionel Sambuc // PPC:UINT_FAST32_MAX_ 4294967295U
810f4a2713aSLionel Sambuc //
811f4a2713aSLionel Sambuc // PPC:INT64_MAX_ 9223372036854775807LL
812f4a2713aSLionel Sambuc // PPC:INT64_MIN_ (-9223372036854775807LL -1)
813f4a2713aSLionel Sambuc // PPC:UINT64_MAX_ 18446744073709551615ULL
814f4a2713aSLionel Sambuc // PPC:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
815f4a2713aSLionel Sambuc // PPC:INT_LEAST64_MAX_ 9223372036854775807LL
816f4a2713aSLionel Sambuc // PPC:UINT_LEAST64_MAX_ 18446744073709551615ULL
817f4a2713aSLionel Sambuc // PPC:INT_FAST64_MIN_ (-9223372036854775807LL -1)
818f4a2713aSLionel Sambuc // PPC:INT_FAST64_MAX_ 9223372036854775807LL
819f4a2713aSLionel Sambuc // PPC:UINT_FAST64_MAX_ 18446744073709551615ULL
820f4a2713aSLionel Sambuc //
821f4a2713aSLionel Sambuc // PPC:INTPTR_MIN_ (-2147483647 -1)
822f4a2713aSLionel Sambuc // PPC:INTPTR_MAX_ 2147483647
823f4a2713aSLionel Sambuc // PPC:UINTPTR_MAX_ 4294967295U
824f4a2713aSLionel Sambuc // PPC:PTRDIFF_MIN_ (-2147483647 -1)
825f4a2713aSLionel Sambuc // PPC:PTRDIFF_MAX_ 2147483647
826f4a2713aSLionel Sambuc // PPC:SIZE_MAX_ 4294967295U
827f4a2713aSLionel Sambuc //
828f4a2713aSLionel Sambuc // PPC:INTMAX_MIN_ (-9223372036854775807LL -1)
829f4a2713aSLionel Sambuc // PPC:INTMAX_MAX_ 9223372036854775807LL
830f4a2713aSLionel Sambuc // PPC:UINTMAX_MAX_ 18446744073709551615ULL
831f4a2713aSLionel Sambuc //
832f4a2713aSLionel Sambuc // PPC:SIG_ATOMIC_MIN_ (-2147483647 -1)
833f4a2713aSLionel Sambuc // PPC:SIG_ATOMIC_MAX_ 2147483647
834f4a2713aSLionel Sambuc // PPC:WINT_MIN_ (-2147483647 -1)
835f4a2713aSLionel Sambuc // PPC:WINT_MAX_ 2147483647
836f4a2713aSLionel Sambuc //
837f4a2713aSLionel Sambuc // PPC:WCHAR_MAX_ 2147483647
838f4a2713aSLionel Sambuc // PPC:WCHAR_MIN_ (-2147483647 -1)
839f4a2713aSLionel Sambuc //
840f4a2713aSLionel Sambuc // PPC:INT8_C_(0) 0
841f4a2713aSLionel Sambuc // PPC:UINT8_C_(0) 0U
842f4a2713aSLionel Sambuc // PPC:INT16_C_(0) 0
843f4a2713aSLionel Sambuc // PPC:UINT16_C_(0) 0U
844f4a2713aSLionel Sambuc // PPC:INT32_C_(0) 0
845f4a2713aSLionel Sambuc // PPC:UINT32_C_(0) 0U
846f4a2713aSLionel Sambuc // PPC:INT64_C_(0) 0LL
847f4a2713aSLionel Sambuc // PPC:UINT64_C_(0) 0ULL
848f4a2713aSLionel Sambuc //
849f4a2713aSLionel Sambuc // PPC:INTMAX_C_(0) 0LL
850f4a2713aSLionel Sambuc // PPC:UINTMAX_C_(0) 0ULL
851f4a2713aSLionel Sambuc //
852f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=s390x-none-none %s | FileCheck -check-prefix S390X %s
853f4a2713aSLionel Sambuc //
854*0a6a1f1dSLionel Sambuc // S390X:typedef long long int int64_t;
855*0a6a1f1dSLionel Sambuc // S390X:typedef long long unsigned int uint64_t;
856f4a2713aSLionel Sambuc // S390X:typedef int64_t int_least64_t;
857f4a2713aSLionel Sambuc // S390X:typedef uint64_t uint_least64_t;
858f4a2713aSLionel Sambuc // S390X:typedef int64_t int_fast64_t;
859f4a2713aSLionel Sambuc // S390X:typedef uint64_t uint_fast64_t;
860f4a2713aSLionel Sambuc //
861*0a6a1f1dSLionel Sambuc // S390X:typedef int int32_t;
862f4a2713aSLionel Sambuc // S390X:typedef unsigned int uint32_t;
863f4a2713aSLionel Sambuc // S390X:typedef int32_t int_least32_t;
864f4a2713aSLionel Sambuc // S390X:typedef uint32_t uint_least32_t;
865f4a2713aSLionel Sambuc // S390X:typedef int32_t int_fast32_t;
866f4a2713aSLionel Sambuc // S390X:typedef uint32_t uint_fast32_t;
867f4a2713aSLionel Sambuc //
868*0a6a1f1dSLionel Sambuc // S390X:typedef short int16_t;
869f4a2713aSLionel Sambuc // S390X:typedef unsigned short uint16_t;
870f4a2713aSLionel Sambuc // S390X:typedef int16_t int_least16_t;
871f4a2713aSLionel Sambuc // S390X:typedef uint16_t uint_least16_t;
872f4a2713aSLionel Sambuc // S390X:typedef int16_t int_fast16_t;
873f4a2713aSLionel Sambuc // S390X:typedef uint16_t uint_fast16_t;
874f4a2713aSLionel Sambuc //
875f4a2713aSLionel Sambuc // S390X:typedef signed char int8_t;
876f4a2713aSLionel Sambuc // S390X:typedef unsigned char uint8_t;
877f4a2713aSLionel Sambuc // S390X:typedef int8_t int_least8_t;
878f4a2713aSLionel Sambuc // S390X:typedef uint8_t uint_least8_t;
879f4a2713aSLionel Sambuc // S390X:typedef int8_t int_fast8_t;
880f4a2713aSLionel Sambuc // S390X:typedef uint8_t uint_fast8_t;
881f4a2713aSLionel Sambuc //
882f4a2713aSLionel Sambuc // S390X:typedef int64_t intptr_t;
883f4a2713aSLionel Sambuc // S390X:typedef uint64_t uintptr_t;
884f4a2713aSLionel Sambuc //
885f4a2713aSLionel Sambuc // S390X:typedef long long int intmax_t;
886f4a2713aSLionel Sambuc // S390X:typedef long long unsigned int uintmax_t;
887f4a2713aSLionel Sambuc //
888f4a2713aSLionel Sambuc // S390X:INT8_MAX_ 127
889f4a2713aSLionel Sambuc // S390X:INT8_MIN_ (-127 -1)
890f4a2713aSLionel Sambuc // S390X:UINT8_MAX_ 255
891f4a2713aSLionel Sambuc // S390X:INT_LEAST8_MIN_ (-127 -1)
892f4a2713aSLionel Sambuc // S390X:INT_LEAST8_MAX_ 127
893f4a2713aSLionel Sambuc // S390X:UINT_LEAST8_MAX_ 255
894f4a2713aSLionel Sambuc // S390X:INT_FAST8_MIN_ (-127 -1)
895f4a2713aSLionel Sambuc // S390X:INT_FAST8_MAX_ 127
896f4a2713aSLionel Sambuc // S390X:UINT_FAST8_MAX_ 255
897f4a2713aSLionel Sambuc //
898f4a2713aSLionel Sambuc // S390X:INT16_MAX_ 32767
899f4a2713aSLionel Sambuc // S390X:INT16_MIN_ (-32767 -1)
900f4a2713aSLionel Sambuc // S390X:UINT16_MAX_ 65535
901f4a2713aSLionel Sambuc // S390X:INT_LEAST16_MIN_ (-32767 -1)
902f4a2713aSLionel Sambuc // S390X:INT_LEAST16_MAX_ 32767
903f4a2713aSLionel Sambuc // S390X:UINT_LEAST16_MAX_ 65535
904f4a2713aSLionel Sambuc // S390X:INT_FAST16_MIN_ (-32767 -1)
905f4a2713aSLionel Sambuc // S390X:INT_FAST16_MAX_ 32767
906f4a2713aSLionel Sambuc // S390X:UINT_FAST16_MAX_ 65535
907f4a2713aSLionel Sambuc //
908f4a2713aSLionel Sambuc // S390X:INT32_MAX_ 2147483647
909f4a2713aSLionel Sambuc // S390X:INT32_MIN_ (-2147483647 -1)
910f4a2713aSLionel Sambuc // S390X:UINT32_MAX_ 4294967295U
911f4a2713aSLionel Sambuc // S390X:INT_LEAST32_MIN_ (-2147483647 -1)
912f4a2713aSLionel Sambuc // S390X:INT_LEAST32_MAX_ 2147483647
913f4a2713aSLionel Sambuc // S390X:UINT_LEAST32_MAX_ 4294967295U
914f4a2713aSLionel Sambuc // S390X:INT_FAST32_MIN_ (-2147483647 -1)
915f4a2713aSLionel Sambuc // S390X:INT_FAST32_MAX_ 2147483647
916f4a2713aSLionel Sambuc // S390X:UINT_FAST32_MAX_ 4294967295U
917f4a2713aSLionel Sambuc //
918f4a2713aSLionel Sambuc // S390X:INT64_MAX_ 9223372036854775807L
919f4a2713aSLionel Sambuc // S390X:INT64_MIN_ (-9223372036854775807LL -1)
920f4a2713aSLionel Sambuc // S390X:UINT64_MAX_ 18446744073709551615UL
921f4a2713aSLionel Sambuc // S390X:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
922f4a2713aSLionel Sambuc // S390X:INT_LEAST64_MAX_ 9223372036854775807L
923f4a2713aSLionel Sambuc // S390X:UINT_LEAST64_MAX_ 18446744073709551615UL
924f4a2713aSLionel Sambuc // S390X:INT_FAST64_MIN_ (-9223372036854775807LL -1)
925f4a2713aSLionel Sambuc // S390X:INT_FAST64_MAX_ 9223372036854775807L
926f4a2713aSLionel Sambuc // S390X:UINT_FAST64_MAX_ 18446744073709551615UL
927f4a2713aSLionel Sambuc //
928f4a2713aSLionel Sambuc // S390X:INTPTR_MIN_ (-9223372036854775807LL -1)
929f4a2713aSLionel Sambuc // S390X:INTPTR_MAX_ 9223372036854775807L
930f4a2713aSLionel Sambuc // S390X:UINTPTR_MAX_ 18446744073709551615UL
931f4a2713aSLionel Sambuc // S390X:PTRDIFF_MIN_ (-9223372036854775807LL -1)
932f4a2713aSLionel Sambuc // S390X:PTRDIFF_MAX_ 9223372036854775807L
933f4a2713aSLionel Sambuc // S390X:SIZE_MAX_ 18446744073709551615UL
934f4a2713aSLionel Sambuc //
935f4a2713aSLionel Sambuc // S390X:INTMAX_MIN_ (-9223372036854775807LL -1)
936f4a2713aSLionel Sambuc // S390X:INTMAX_MAX_ 9223372036854775807L
937f4a2713aSLionel Sambuc // S390X:UINTMAX_MAX_ 18446744073709551615UL
938f4a2713aSLionel Sambuc //
939f4a2713aSLionel Sambuc // S390X:SIG_ATOMIC_MIN_ (-2147483647 -1)
940f4a2713aSLionel Sambuc // S390X:SIG_ATOMIC_MAX_ 2147483647
941f4a2713aSLionel Sambuc // S390X:WINT_MIN_ (-2147483647 -1)
942f4a2713aSLionel Sambuc // S390X:WINT_MAX_ 2147483647
943f4a2713aSLionel Sambuc //
944f4a2713aSLionel Sambuc // S390X:WCHAR_MAX_ 2147483647
945f4a2713aSLionel Sambuc // S390X:WCHAR_MIN_ (-2147483647 -1)
946f4a2713aSLionel Sambuc //
947f4a2713aSLionel Sambuc // S390X:INT8_C_(0) 0
948f4a2713aSLionel Sambuc // S390X:UINT8_C_(0) 0U
949f4a2713aSLionel Sambuc // S390X:INT16_C_(0) 0
950f4a2713aSLionel Sambuc // S390X:UINT16_C_(0) 0U
951f4a2713aSLionel Sambuc // S390X:INT32_C_(0) 0
952f4a2713aSLionel Sambuc // S390X:UINT32_C_(0) 0U
953f4a2713aSLionel Sambuc // S390X:INT64_C_(0) 0L
954f4a2713aSLionel Sambuc // S390X:UINT64_C_(0) 0UL
955f4a2713aSLionel Sambuc //
956f4a2713aSLionel Sambuc // S390X:INTMAX_C_(0) 0L
957f4a2713aSLionel Sambuc // S390X:UINTMAX_C_(0) 0UL
958f4a2713aSLionel Sambuc //
959f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=sparc-none-none %s | FileCheck -check-prefix SPARC %s
960f4a2713aSLionel Sambuc //
961*0a6a1f1dSLionel Sambuc // SPARC:typedef long long int int64_t;
962*0a6a1f1dSLionel Sambuc // SPARC:typedef long long unsigned int uint64_t;
963f4a2713aSLionel Sambuc // SPARC:typedef int64_t int_least64_t;
964f4a2713aSLionel Sambuc // SPARC:typedef uint64_t uint_least64_t;
965f4a2713aSLionel Sambuc // SPARC:typedef int64_t int_fast64_t;
966f4a2713aSLionel Sambuc // SPARC:typedef uint64_t uint_fast64_t;
967f4a2713aSLionel Sambuc //
968*0a6a1f1dSLionel Sambuc // SPARC:typedef int int32_t;
969f4a2713aSLionel Sambuc // SPARC:typedef unsigned int uint32_t;
970f4a2713aSLionel Sambuc // SPARC:typedef int32_t int_least32_t;
971f4a2713aSLionel Sambuc // SPARC:typedef uint32_t uint_least32_t;
972f4a2713aSLionel Sambuc // SPARC:typedef int32_t int_fast32_t;
973f4a2713aSLionel Sambuc // SPARC:typedef uint32_t uint_fast32_t;
974f4a2713aSLionel Sambuc //
975*0a6a1f1dSLionel Sambuc // SPARC:typedef short int16_t;
976f4a2713aSLionel Sambuc // SPARC:typedef unsigned short uint16_t;
977f4a2713aSLionel Sambuc // SPARC:typedef int16_t int_least16_t;
978f4a2713aSLionel Sambuc // SPARC:typedef uint16_t uint_least16_t;
979f4a2713aSLionel Sambuc // SPARC:typedef int16_t int_fast16_t;
980f4a2713aSLionel Sambuc // SPARC:typedef uint16_t uint_fast16_t;
981f4a2713aSLionel Sambuc //
982f4a2713aSLionel Sambuc // SPARC:typedef signed char int8_t;
983f4a2713aSLionel Sambuc // SPARC:typedef unsigned char uint8_t;
984f4a2713aSLionel Sambuc // SPARC:typedef int8_t int_least8_t;
985f4a2713aSLionel Sambuc // SPARC:typedef uint8_t uint_least8_t;
986f4a2713aSLionel Sambuc // SPARC:typedef int8_t int_fast8_t;
987f4a2713aSLionel Sambuc // SPARC:typedef uint8_t uint_fast8_t;
988f4a2713aSLionel Sambuc //
989f4a2713aSLionel Sambuc // SPARC:typedef int32_t intptr_t;
990f4a2713aSLionel Sambuc // SPARC:typedef uint32_t uintptr_t;
991f4a2713aSLionel Sambuc //
992f4a2713aSLionel Sambuc // SPARC:typedef long long int intmax_t;
993f4a2713aSLionel Sambuc // SPARC:typedef long long unsigned int uintmax_t;
994f4a2713aSLionel Sambuc //
995f4a2713aSLionel Sambuc // SPARC:INT8_MAX_ 127
996f4a2713aSLionel Sambuc // SPARC:INT8_MIN_ (-127 -1)
997f4a2713aSLionel Sambuc // SPARC:UINT8_MAX_ 255
998f4a2713aSLionel Sambuc // SPARC:INT_LEAST8_MIN_ (-127 -1)
999f4a2713aSLionel Sambuc // SPARC:INT_LEAST8_MAX_ 127
1000f4a2713aSLionel Sambuc // SPARC:UINT_LEAST8_MAX_ 255
1001f4a2713aSLionel Sambuc // SPARC:INT_FAST8_MIN_ (-127 -1)
1002f4a2713aSLionel Sambuc // SPARC:INT_FAST8_MAX_ 127
1003f4a2713aSLionel Sambuc // SPARC:UINT_FAST8_MAX_ 255
1004f4a2713aSLionel Sambuc //
1005f4a2713aSLionel Sambuc // SPARC:INT16_MAX_ 32767
1006f4a2713aSLionel Sambuc // SPARC:INT16_MIN_ (-32767 -1)
1007f4a2713aSLionel Sambuc // SPARC:UINT16_MAX_ 65535
1008f4a2713aSLionel Sambuc // SPARC:INT_LEAST16_MIN_ (-32767 -1)
1009f4a2713aSLionel Sambuc // SPARC:INT_LEAST16_MAX_ 32767
1010f4a2713aSLionel Sambuc // SPARC:UINT_LEAST16_MAX_ 65535
1011f4a2713aSLionel Sambuc // SPARC:INT_FAST16_MIN_ (-32767 -1)
1012f4a2713aSLionel Sambuc // SPARC:INT_FAST16_MAX_ 32767
1013f4a2713aSLionel Sambuc // SPARC:UINT_FAST16_MAX_ 65535
1014f4a2713aSLionel Sambuc //
1015f4a2713aSLionel Sambuc // SPARC:INT32_MAX_ 2147483647
1016f4a2713aSLionel Sambuc // SPARC:INT32_MIN_ (-2147483647 -1)
1017f4a2713aSLionel Sambuc // SPARC:UINT32_MAX_ 4294967295U
1018f4a2713aSLionel Sambuc // SPARC:INT_LEAST32_MIN_ (-2147483647 -1)
1019f4a2713aSLionel Sambuc // SPARC:INT_LEAST32_MAX_ 2147483647
1020f4a2713aSLionel Sambuc // SPARC:UINT_LEAST32_MAX_ 4294967295U
1021f4a2713aSLionel Sambuc // SPARC:INT_FAST32_MIN_ (-2147483647 -1)
1022f4a2713aSLionel Sambuc // SPARC:INT_FAST32_MAX_ 2147483647
1023f4a2713aSLionel Sambuc // SPARC:UINT_FAST32_MAX_ 4294967295U
1024f4a2713aSLionel Sambuc //
1025f4a2713aSLionel Sambuc // SPARC:INT64_MAX_ 9223372036854775807LL
1026f4a2713aSLionel Sambuc // SPARC:INT64_MIN_ (-9223372036854775807LL -1)
1027f4a2713aSLionel Sambuc // SPARC:UINT64_MAX_ 18446744073709551615ULL
1028f4a2713aSLionel Sambuc // SPARC:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
1029f4a2713aSLionel Sambuc // SPARC:INT_LEAST64_MAX_ 9223372036854775807LL
1030f4a2713aSLionel Sambuc // SPARC:UINT_LEAST64_MAX_ 18446744073709551615ULL
1031f4a2713aSLionel Sambuc // SPARC:INT_FAST64_MIN_ (-9223372036854775807LL -1)
1032f4a2713aSLionel Sambuc // SPARC:INT_FAST64_MAX_ 9223372036854775807LL
1033f4a2713aSLionel Sambuc // SPARC:UINT_FAST64_MAX_ 18446744073709551615ULL
1034f4a2713aSLionel Sambuc //
1035f4a2713aSLionel Sambuc // SPARC:INTPTR_MIN_ (-2147483647 -1)
1036f4a2713aSLionel Sambuc // SPARC:INTPTR_MAX_ 2147483647
1037f4a2713aSLionel Sambuc // SPARC:UINTPTR_MAX_ 4294967295U
1038f4a2713aSLionel Sambuc // SPARC:PTRDIFF_MIN_ (-2147483647 -1)
1039f4a2713aSLionel Sambuc // SPARC:PTRDIFF_MAX_ 2147483647
1040f4a2713aSLionel Sambuc // SPARC:SIZE_MAX_ 4294967295U
1041f4a2713aSLionel Sambuc //
1042f4a2713aSLionel Sambuc // SPARC:INTMAX_MIN_ (-9223372036854775807LL -1)
1043f4a2713aSLionel Sambuc // SPARC:INTMAX_MAX_ 9223372036854775807LL
1044f4a2713aSLionel Sambuc // SPARC:UINTMAX_MAX_ 18446744073709551615ULL
1045f4a2713aSLionel Sambuc //
1046f4a2713aSLionel Sambuc // SPARC:SIG_ATOMIC_MIN_ (-2147483647 -1)
1047f4a2713aSLionel Sambuc // SPARC:SIG_ATOMIC_MAX_ 2147483647
1048f4a2713aSLionel Sambuc // SPARC:WINT_MIN_ (-2147483647 -1)
1049f4a2713aSLionel Sambuc // SPARC:WINT_MAX_ 2147483647
1050f4a2713aSLionel Sambuc //
1051f4a2713aSLionel Sambuc // SPARC:WCHAR_MAX_ 2147483647
1052f4a2713aSLionel Sambuc // SPARC:WCHAR_MIN_ (-2147483647 -1)
1053f4a2713aSLionel Sambuc //
1054f4a2713aSLionel Sambuc // SPARC:INT8_C_(0) 0
1055f4a2713aSLionel Sambuc // SPARC:UINT8_C_(0) 0U
1056f4a2713aSLionel Sambuc // SPARC:INT16_C_(0) 0
1057f4a2713aSLionel Sambuc // SPARC:UINT16_C_(0) 0U
1058f4a2713aSLionel Sambuc // SPARC:INT32_C_(0) 0
1059f4a2713aSLionel Sambuc // SPARC:UINT32_C_(0) 0U
1060f4a2713aSLionel Sambuc // SPARC:INT64_C_(0) 0LL
1061f4a2713aSLionel Sambuc // SPARC:UINT64_C_(0) 0ULL
1062f4a2713aSLionel Sambuc //
1063f4a2713aSLionel Sambuc // SPARC:INTMAX_C_(0) 0LL
1064f4a2713aSLionel Sambuc // SPARC:UINTMAX_C_(0) 0ULL
1065f4a2713aSLionel Sambuc //
1066f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=tce-none-none %s | FileCheck -check-prefix TCE %s
1067f4a2713aSLionel Sambuc //
1068*0a6a1f1dSLionel Sambuc // TCE:typedef int int32_t;
1069f4a2713aSLionel Sambuc // TCE:typedef unsigned int uint32_t;
1070f4a2713aSLionel Sambuc // TCE:typedef int32_t int_least32_t;
1071f4a2713aSLionel Sambuc // TCE:typedef uint32_t uint_least32_t;
1072f4a2713aSLionel Sambuc // TCE:typedef int32_t int_fast32_t;
1073f4a2713aSLionel Sambuc // TCE:typedef uint32_t uint_fast32_t;
1074f4a2713aSLionel Sambuc //
1075*0a6a1f1dSLionel Sambuc // TCE:typedef short int16_t;
1076f4a2713aSLionel Sambuc // TCE:typedef unsigned short uint16_t;
1077f4a2713aSLionel Sambuc // TCE:typedef int16_t int_least16_t;
1078f4a2713aSLionel Sambuc // TCE:typedef uint16_t uint_least16_t;
1079f4a2713aSLionel Sambuc // TCE:typedef int16_t int_fast16_t;
1080f4a2713aSLionel Sambuc // TCE:typedef uint16_t uint_fast16_t;
1081f4a2713aSLionel Sambuc //
1082f4a2713aSLionel Sambuc // TCE:typedef signed char int8_t;
1083f4a2713aSLionel Sambuc // TCE:typedef unsigned char uint8_t;
1084f4a2713aSLionel Sambuc // TCE:typedef int8_t int_least8_t;
1085f4a2713aSLionel Sambuc // TCE:typedef uint8_t uint_least8_t;
1086f4a2713aSLionel Sambuc // TCE:typedef int8_t int_fast8_t;
1087f4a2713aSLionel Sambuc // TCE:typedef uint8_t uint_fast8_t;
1088f4a2713aSLionel Sambuc //
1089f4a2713aSLionel Sambuc // TCE:typedef int32_t intptr_t;
1090f4a2713aSLionel Sambuc // TCE:typedef uint32_t uintptr_t;
1091f4a2713aSLionel Sambuc //
1092f4a2713aSLionel Sambuc // TCE:typedef long int intmax_t;
1093f4a2713aSLionel Sambuc // TCE:typedef long unsigned int uintmax_t;
1094f4a2713aSLionel Sambuc //
1095f4a2713aSLionel Sambuc // TCE:INT8_MAX_ 127
1096f4a2713aSLionel Sambuc // TCE:INT8_MIN_ (-127 -1)
1097f4a2713aSLionel Sambuc // TCE:UINT8_MAX_ 255
1098f4a2713aSLionel Sambuc // TCE:INT_LEAST8_MIN_ (-127 -1)
1099f4a2713aSLionel Sambuc // TCE:INT_LEAST8_MAX_ 127
1100f4a2713aSLionel Sambuc // TCE:UINT_LEAST8_MAX_ 255
1101f4a2713aSLionel Sambuc // TCE:INT_FAST8_MIN_ (-127 -1)
1102f4a2713aSLionel Sambuc // TCE:INT_FAST8_MAX_ 127
1103f4a2713aSLionel Sambuc // TCE:UINT_FAST8_MAX_ 255
1104f4a2713aSLionel Sambuc //
1105f4a2713aSLionel Sambuc // TCE:INT16_MAX_ 32767
1106f4a2713aSLionel Sambuc // TCE:INT16_MIN_ (-32767 -1)
1107f4a2713aSLionel Sambuc // TCE:UINT16_MAX_ 65535
1108f4a2713aSLionel Sambuc // TCE:INT_LEAST16_MIN_ (-32767 -1)
1109f4a2713aSLionel Sambuc // TCE:INT_LEAST16_MAX_ 32767
1110f4a2713aSLionel Sambuc // TCE:UINT_LEAST16_MAX_ 65535
1111f4a2713aSLionel Sambuc // TCE:INT_FAST16_MIN_ (-32767 -1)
1112f4a2713aSLionel Sambuc // TCE:INT_FAST16_MAX_ 32767
1113f4a2713aSLionel Sambuc // TCE:UINT_FAST16_MAX_ 65535
1114f4a2713aSLionel Sambuc //
1115f4a2713aSLionel Sambuc // TCE:INT32_MAX_ 2147483647
1116f4a2713aSLionel Sambuc // TCE:INT32_MIN_ (-2147483647 -1)
1117f4a2713aSLionel Sambuc // TCE:UINT32_MAX_ 4294967295U
1118f4a2713aSLionel Sambuc // TCE:INT_LEAST32_MIN_ (-2147483647 -1)
1119f4a2713aSLionel Sambuc // TCE:INT_LEAST32_MAX_ 2147483647
1120f4a2713aSLionel Sambuc // TCE:UINT_LEAST32_MAX_ 4294967295U
1121f4a2713aSLionel Sambuc // TCE:INT_FAST32_MIN_ (-2147483647 -1)
1122f4a2713aSLionel Sambuc // TCE:INT_FAST32_MAX_ 2147483647
1123f4a2713aSLionel Sambuc // TCE:UINT_FAST32_MAX_ 4294967295U
1124f4a2713aSLionel Sambuc //
1125f4a2713aSLionel Sambuc // TCE:INT64_MAX_ INT64_MAX
1126f4a2713aSLionel Sambuc // TCE:INT64_MIN_ INT64_MIN
1127f4a2713aSLionel Sambuc // TCE:UINT64_MAX_ UINT64_MAX
1128f4a2713aSLionel Sambuc // TCE:INT_LEAST64_MIN_ INT_LEAST64_MIN
1129f4a2713aSLionel Sambuc // TCE:INT_LEAST64_MAX_ INT_LEAST64_MAX
1130f4a2713aSLionel Sambuc // TCE:UINT_LEAST64_MAX_ UINT_LEAST64_MAX
1131f4a2713aSLionel Sambuc // TCE:INT_FAST64_MIN_ INT_FAST64_MIN
1132f4a2713aSLionel Sambuc // TCE:INT_FAST64_MAX_ INT_FAST64_MAX
1133f4a2713aSLionel Sambuc // TCE:UINT_FAST64_MAX_ UINT_FAST64_MAX
1134f4a2713aSLionel Sambuc //
1135f4a2713aSLionel Sambuc // TCE:INTPTR_MIN_ (-2147483647 -1)
1136f4a2713aSLionel Sambuc // TCE:INTPTR_MAX_ 2147483647
1137f4a2713aSLionel Sambuc // TCE:UINTPTR_MAX_ 4294967295U
1138f4a2713aSLionel Sambuc // TCE:PTRDIFF_MIN_ (-2147483647 -1)
1139f4a2713aSLionel Sambuc // TCE:PTRDIFF_MAX_ 2147483647
1140f4a2713aSLionel Sambuc // TCE:SIZE_MAX_ 4294967295U
1141f4a2713aSLionel Sambuc //
1142f4a2713aSLionel Sambuc // TCE:INTMAX_MIN_ (-2147483647 -1)
1143f4a2713aSLionel Sambuc // TCE:INTMAX_MAX_ 2147483647
1144f4a2713aSLionel Sambuc // TCE:UINTMAX_MAX_ 4294967295U
1145f4a2713aSLionel Sambuc //
1146f4a2713aSLionel Sambuc // TCE:SIG_ATOMIC_MIN_ (-2147483647 -1)
1147f4a2713aSLionel Sambuc // TCE:SIG_ATOMIC_MAX_ 2147483647
1148f4a2713aSLionel Sambuc // TCE:WINT_MIN_ (-2147483647 -1)
1149f4a2713aSLionel Sambuc // TCE:WINT_MAX_ 2147483647
1150f4a2713aSLionel Sambuc //
1151f4a2713aSLionel Sambuc // TCE:WCHAR_MAX_ 2147483647
1152f4a2713aSLionel Sambuc // TCE:WCHAR_MIN_ (-2147483647 -1)
1153f4a2713aSLionel Sambuc //
1154f4a2713aSLionel Sambuc // TCE:INT8_C_(0) 0
1155f4a2713aSLionel Sambuc // TCE:UINT8_C_(0) 0U
1156f4a2713aSLionel Sambuc // TCE:INT16_C_(0) 0
1157f4a2713aSLionel Sambuc // TCE:UINT16_C_(0) 0U
1158f4a2713aSLionel Sambuc // TCE:INT32_C_(0) 0
1159f4a2713aSLionel Sambuc // TCE:UINT32_C_(0) 0U
1160f4a2713aSLionel Sambuc // TCE:INT64_C_(0) INT64_C(0)
1161f4a2713aSLionel Sambuc // TCE:UINT64_C_(0) UINT64_C(0)
1162f4a2713aSLionel Sambuc //
1163f4a2713aSLionel Sambuc // TCE:INTMAX_C_(0) 0
1164f4a2713aSLionel Sambuc // TCE:UINTMAX_C_(0) 0U
1165f4a2713aSLionel Sambuc //
1166f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=x86_64-none-none %s | FileCheck -check-prefix X86_64 %s
1167f4a2713aSLionel Sambuc //
1168f4a2713aSLionel Sambuc //
1169*0a6a1f1dSLionel Sambuc // X86_64:typedef long int int64_t;
1170*0a6a1f1dSLionel Sambuc // X86_64:typedef long unsigned int uint64_t;
1171f4a2713aSLionel Sambuc // X86_64:typedef int64_t int_least64_t;
1172f4a2713aSLionel Sambuc // X86_64:typedef uint64_t uint_least64_t;
1173f4a2713aSLionel Sambuc // X86_64:typedef int64_t int_fast64_t;
1174f4a2713aSLionel Sambuc // X86_64:typedef uint64_t uint_fast64_t;
1175f4a2713aSLionel Sambuc //
1176*0a6a1f1dSLionel Sambuc // X86_64:typedef int int32_t;
1177f4a2713aSLionel Sambuc // X86_64:typedef unsigned int uint32_t;
1178f4a2713aSLionel Sambuc // X86_64:typedef int32_t int_least32_t;
1179f4a2713aSLionel Sambuc // X86_64:typedef uint32_t uint_least32_t;
1180f4a2713aSLionel Sambuc // X86_64:typedef int32_t int_fast32_t;
1181f4a2713aSLionel Sambuc // X86_64:typedef uint32_t uint_fast32_t;
1182f4a2713aSLionel Sambuc //
1183*0a6a1f1dSLionel Sambuc // X86_64:typedef short int16_t;
1184f4a2713aSLionel Sambuc // X86_64:typedef unsigned short uint16_t;
1185f4a2713aSLionel Sambuc // X86_64:typedef int16_t int_least16_t;
1186f4a2713aSLionel Sambuc // X86_64:typedef uint16_t uint_least16_t;
1187f4a2713aSLionel Sambuc // X86_64:typedef int16_t int_fast16_t;
1188f4a2713aSLionel Sambuc // X86_64:typedef uint16_t uint_fast16_t;
1189f4a2713aSLionel Sambuc //
1190f4a2713aSLionel Sambuc // X86_64:typedef signed char int8_t;
1191f4a2713aSLionel Sambuc // X86_64:typedef unsigned char uint8_t;
1192f4a2713aSLionel Sambuc // X86_64:typedef int8_t int_least8_t;
1193f4a2713aSLionel Sambuc // X86_64:typedef uint8_t uint_least8_t;
1194f4a2713aSLionel Sambuc // X86_64:typedef int8_t int_fast8_t;
1195f4a2713aSLionel Sambuc // X86_64:typedef uint8_t uint_fast8_t;
1196f4a2713aSLionel Sambuc //
1197f4a2713aSLionel Sambuc // X86_64:typedef int64_t intptr_t;
1198f4a2713aSLionel Sambuc // X86_64:typedef uint64_t uintptr_t;
1199f4a2713aSLionel Sambuc //
1200f4a2713aSLionel Sambuc // X86_64:typedef long int intmax_t;
1201f4a2713aSLionel Sambuc // X86_64:typedef long unsigned int uintmax_t;
1202f4a2713aSLionel Sambuc //
1203f4a2713aSLionel Sambuc // X86_64:INT8_MAX_ 127
1204f4a2713aSLionel Sambuc // X86_64:INT8_MIN_ (-127 -1)
1205f4a2713aSLionel Sambuc // X86_64:UINT8_MAX_ 255
1206f4a2713aSLionel Sambuc // X86_64:INT_LEAST8_MIN_ (-127 -1)
1207f4a2713aSLionel Sambuc // X86_64:INT_LEAST8_MAX_ 127
1208f4a2713aSLionel Sambuc // X86_64:UINT_LEAST8_MAX_ 255
1209f4a2713aSLionel Sambuc // X86_64:INT_FAST8_MIN_ (-127 -1)
1210f4a2713aSLionel Sambuc // X86_64:INT_FAST8_MAX_ 127
1211f4a2713aSLionel Sambuc // X86_64:UINT_FAST8_MAX_ 255
1212f4a2713aSLionel Sambuc //
1213f4a2713aSLionel Sambuc // X86_64:INT16_MAX_ 32767
1214f4a2713aSLionel Sambuc // X86_64:INT16_MIN_ (-32767 -1)
1215f4a2713aSLionel Sambuc // X86_64:UINT16_MAX_ 65535
1216f4a2713aSLionel Sambuc // X86_64:INT_LEAST16_MIN_ (-32767 -1)
1217f4a2713aSLionel Sambuc // X86_64:INT_LEAST16_MAX_ 32767
1218f4a2713aSLionel Sambuc // X86_64:UINT_LEAST16_MAX_ 65535
1219f4a2713aSLionel Sambuc // X86_64:INT_FAST16_MIN_ (-32767 -1)
1220f4a2713aSLionel Sambuc // X86_64:INT_FAST16_MAX_ 32767
1221f4a2713aSLionel Sambuc // X86_64:UINT_FAST16_MAX_ 65535
1222f4a2713aSLionel Sambuc //
1223f4a2713aSLionel Sambuc // X86_64:INT32_MAX_ 2147483647
1224f4a2713aSLionel Sambuc // X86_64:INT32_MIN_ (-2147483647 -1)
1225f4a2713aSLionel Sambuc // X86_64:UINT32_MAX_ 4294967295U
1226f4a2713aSLionel Sambuc // X86_64:INT_LEAST32_MIN_ (-2147483647 -1)
1227f4a2713aSLionel Sambuc // X86_64:INT_LEAST32_MAX_ 2147483647
1228f4a2713aSLionel Sambuc // X86_64:UINT_LEAST32_MAX_ 4294967295U
1229f4a2713aSLionel Sambuc // X86_64:INT_FAST32_MIN_ (-2147483647 -1)
1230f4a2713aSLionel Sambuc // X86_64:INT_FAST32_MAX_ 2147483647
1231f4a2713aSLionel Sambuc // X86_64:UINT_FAST32_MAX_ 4294967295U
1232f4a2713aSLionel Sambuc //
1233f4a2713aSLionel Sambuc // X86_64:INT64_MAX_ 9223372036854775807L
1234f4a2713aSLionel Sambuc // X86_64:INT64_MIN_ (-9223372036854775807L -1)
1235f4a2713aSLionel Sambuc // X86_64:UINT64_MAX_ 18446744073709551615UL
1236f4a2713aSLionel Sambuc // X86_64:INT_LEAST64_MIN_ (-9223372036854775807L -1)
1237f4a2713aSLionel Sambuc // X86_64:INT_LEAST64_MAX_ 9223372036854775807L
1238f4a2713aSLionel Sambuc // X86_64:UINT_LEAST64_MAX_ 18446744073709551615UL
1239f4a2713aSLionel Sambuc // X86_64:INT_FAST64_MIN_ (-9223372036854775807L -1)
1240f4a2713aSLionel Sambuc // X86_64:INT_FAST64_MAX_ 9223372036854775807L
1241f4a2713aSLionel Sambuc // X86_64:UINT_FAST64_MAX_ 18446744073709551615UL
1242f4a2713aSLionel Sambuc //
1243f4a2713aSLionel Sambuc // X86_64:INTPTR_MIN_ (-9223372036854775807L -1)
1244f4a2713aSLionel Sambuc // X86_64:INTPTR_MAX_ 9223372036854775807L
1245f4a2713aSLionel Sambuc // X86_64:UINTPTR_MAX_ 18446744073709551615UL
1246f4a2713aSLionel Sambuc // X86_64:PTRDIFF_MIN_ (-9223372036854775807L -1)
1247f4a2713aSLionel Sambuc // X86_64:PTRDIFF_MAX_ 9223372036854775807L
1248f4a2713aSLionel Sambuc // X86_64:SIZE_MAX_ 18446744073709551615UL
1249f4a2713aSLionel Sambuc //
1250f4a2713aSLionel Sambuc // X86_64:INTMAX_MIN_ (-9223372036854775807L -1)
1251f4a2713aSLionel Sambuc // X86_64:INTMAX_MAX_ 9223372036854775807L
1252f4a2713aSLionel Sambuc // X86_64:UINTMAX_MAX_ 18446744073709551615UL
1253f4a2713aSLionel Sambuc //
1254f4a2713aSLionel Sambuc // X86_64:SIG_ATOMIC_MIN_ (-2147483647 -1)
1255f4a2713aSLionel Sambuc // X86_64:SIG_ATOMIC_MAX_ 2147483647
1256f4a2713aSLionel Sambuc // X86_64:WINT_MIN_ (-2147483647 -1)
1257f4a2713aSLionel Sambuc // X86_64:WINT_MAX_ 2147483647
1258f4a2713aSLionel Sambuc //
1259f4a2713aSLionel Sambuc // X86_64:WCHAR_MAX_ 2147483647
1260f4a2713aSLionel Sambuc // X86_64:WCHAR_MIN_ (-2147483647 -1)
1261f4a2713aSLionel Sambuc //
1262f4a2713aSLionel Sambuc // X86_64:INT8_C_(0) 0
1263f4a2713aSLionel Sambuc // X86_64:UINT8_C_(0) 0U
1264f4a2713aSLionel Sambuc // X86_64:INT16_C_(0) 0
1265f4a2713aSLionel Sambuc // X86_64:UINT16_C_(0) 0U
1266f4a2713aSLionel Sambuc // X86_64:INT32_C_(0) 0
1267f4a2713aSLionel Sambuc // X86_64:UINT32_C_(0) 0U
1268f4a2713aSLionel Sambuc // X86_64:INT64_C_(0) 0L
1269f4a2713aSLionel Sambuc // X86_64:UINT64_C_(0) 0UL
1270f4a2713aSLionel Sambuc //
1271f4a2713aSLionel Sambuc // X86_64:INTMAX_C_(0) 0L
1272f4a2713aSLionel Sambuc // X86_64:UINTMAX_C_(0) 0UL
1273f4a2713aSLionel Sambuc //
1274f4a2713aSLionel Sambuc //
1275f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=x86_64-pc-linux-gnu %s | FileCheck -check-prefix X86_64_LINUX %s
1276f4a2713aSLionel Sambuc //
1277f4a2713aSLionel Sambuc // X86_64_LINUX:WINT_MIN_ 0U
1278f4a2713aSLionel Sambuc // X86_64_LINUX:WINT_MAX_ 4294967295U
1279f4a2713aSLionel Sambuc //
1280f4a2713aSLionel Sambuc //
1281f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=i386-mingw32 %s | FileCheck -check-prefix I386_MINGW32 %s
1282f4a2713aSLionel Sambuc //
1283*0a6a1f1dSLionel Sambuc // I386_MINGW32:WCHAR_MAX_ 65535
1284*0a6a1f1dSLionel Sambuc // I386_MINGW32:WCHAR_MIN_ 0
1285f4a2713aSLionel Sambuc //
1286f4a2713aSLionel Sambuc //
1287f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -triple=xcore-none-none %s | FileCheck -check-prefix XCORE %s
1288f4a2713aSLionel Sambuc //
1289*0a6a1f1dSLionel Sambuc // XCORE:typedef long long int int64_t;
1290*0a6a1f1dSLionel Sambuc // XCORE:typedef long long unsigned int uint64_t;
1291f4a2713aSLionel Sambuc // XCORE:typedef int64_t int_least64_t;
1292f4a2713aSLionel Sambuc // XCORE:typedef uint64_t uint_least64_t;
1293f4a2713aSLionel Sambuc // XCORE:typedef int64_t int_fast64_t;
1294f4a2713aSLionel Sambuc // XCORE:typedef uint64_t uint_fast64_t;
1295f4a2713aSLionel Sambuc //
1296*0a6a1f1dSLionel Sambuc // XCORE:typedef int int32_t;
1297f4a2713aSLionel Sambuc // XCORE:typedef unsigned int uint32_t;
1298f4a2713aSLionel Sambuc // XCORE:typedef int32_t int_least32_t;
1299f4a2713aSLionel Sambuc // XCORE:typedef uint32_t uint_least32_t;
1300f4a2713aSLionel Sambuc // XCORE:typedef int32_t int_fast32_t;
1301f4a2713aSLionel Sambuc // XCORE:typedef uint32_t uint_fast32_t;
1302f4a2713aSLionel Sambuc //
1303*0a6a1f1dSLionel Sambuc // XCORE:typedef short int16_t;
1304f4a2713aSLionel Sambuc // XCORE:typedef unsigned short uint16_t;
1305f4a2713aSLionel Sambuc // XCORE:typedef int16_t int_least16_t;
1306f4a2713aSLionel Sambuc // XCORE:typedef uint16_t uint_least16_t;
1307f4a2713aSLionel Sambuc // XCORE:typedef int16_t int_fast16_t;
1308f4a2713aSLionel Sambuc // XCORE:typedef uint16_t uint_fast16_t;
1309f4a2713aSLionel Sambuc //
1310f4a2713aSLionel Sambuc // XCORE:typedef signed char int8_t;
1311f4a2713aSLionel Sambuc // XCORE:typedef unsigned char uint8_t;
1312f4a2713aSLionel Sambuc // XCORE:typedef int8_t int_least8_t;
1313f4a2713aSLionel Sambuc // XCORE:typedef uint8_t uint_least8_t;
1314f4a2713aSLionel Sambuc // XCORE:typedef int8_t int_fast8_t;
1315f4a2713aSLionel Sambuc // XCORE:typedef uint8_t uint_fast8_t;
1316f4a2713aSLionel Sambuc //
1317f4a2713aSLionel Sambuc // XCORE:typedef int32_t intptr_t;
1318f4a2713aSLionel Sambuc // XCORE:typedef uint32_t uintptr_t;
1319f4a2713aSLionel Sambuc //
1320f4a2713aSLionel Sambuc // XCORE:typedef long long int intmax_t;
1321f4a2713aSLionel Sambuc // XCORE:typedef long long unsigned int uintmax_t;
1322f4a2713aSLionel Sambuc //
1323f4a2713aSLionel Sambuc // XCORE:INT8_MAX_ 127
1324f4a2713aSLionel Sambuc // XCORE:INT8_MIN_ (-127 -1)
1325f4a2713aSLionel Sambuc // XCORE:UINT8_MAX_ 255
1326f4a2713aSLionel Sambuc // XCORE:INT_LEAST8_MIN_ (-127 -1)
1327f4a2713aSLionel Sambuc // XCORE:INT_LEAST8_MAX_ 127
1328f4a2713aSLionel Sambuc // XCORE:UINT_LEAST8_MAX_ 255
1329f4a2713aSLionel Sambuc // XCORE:INT_FAST8_MIN_ (-127 -1)
1330f4a2713aSLionel Sambuc // XCORE:INT_FAST8_MAX_ 127
1331f4a2713aSLionel Sambuc // XCORE:UINT_FAST8_MAX_ 255
1332f4a2713aSLionel Sambuc //
1333f4a2713aSLionel Sambuc // XCORE:INT16_MAX_ 32767
1334f4a2713aSLionel Sambuc // XCORE:INT16_MIN_ (-32767 -1)
1335f4a2713aSLionel Sambuc // XCORE:UINT16_MAX_ 65535
1336f4a2713aSLionel Sambuc // XCORE:INT_LEAST16_MIN_ (-32767 -1)
1337f4a2713aSLionel Sambuc // XCORE:INT_LEAST16_MAX_ 32767
1338f4a2713aSLionel Sambuc // XCORE:UINT_LEAST16_MAX_ 65535
1339f4a2713aSLionel Sambuc // XCORE:INT_FAST16_MIN_ (-32767 -1)
1340f4a2713aSLionel Sambuc // XCORE:INT_FAST16_MAX_ 32767
1341f4a2713aSLionel Sambuc // XCORE:UINT_FAST16_MAX_ 65535
1342f4a2713aSLionel Sambuc //
1343f4a2713aSLionel Sambuc // XCORE:INT32_MAX_ 2147483647
1344f4a2713aSLionel Sambuc // XCORE:INT32_MIN_ (-2147483647 -1)
1345f4a2713aSLionel Sambuc // XCORE:UINT32_MAX_ 4294967295U
1346f4a2713aSLionel Sambuc // XCORE:INT_LEAST32_MIN_ (-2147483647 -1)
1347f4a2713aSLionel Sambuc // XCORE:INT_LEAST32_MAX_ 2147483647
1348f4a2713aSLionel Sambuc // XCORE:UINT_LEAST32_MAX_ 4294967295U
1349f4a2713aSLionel Sambuc // XCORE:INT_FAST32_MIN_ (-2147483647 -1)
1350f4a2713aSLionel Sambuc // XCORE:INT_FAST32_MAX_ 2147483647
1351f4a2713aSLionel Sambuc // XCORE:UINT_FAST32_MAX_ 4294967295U
1352f4a2713aSLionel Sambuc //
1353f4a2713aSLionel Sambuc // XCORE:INT64_MAX_ 9223372036854775807LL
1354f4a2713aSLionel Sambuc // XCORE:INT64_MIN_ (-9223372036854775807LL -1)
1355f4a2713aSLionel Sambuc // XCORE:UINT64_MAX_ 18446744073709551615ULL
1356f4a2713aSLionel Sambuc // XCORE:INT_LEAST64_MIN_ (-9223372036854775807LL -1)
1357f4a2713aSLionel Sambuc // XCORE:INT_LEAST64_MAX_ 9223372036854775807LL
1358f4a2713aSLionel Sambuc // XCORE:UINT_LEAST64_MAX_ 18446744073709551615ULL
1359f4a2713aSLionel Sambuc // XCORE:INT_FAST64_MIN_ (-9223372036854775807LL -1)
1360f4a2713aSLionel Sambuc // XCORE:INT_FAST64_MAX_ 9223372036854775807LL
1361f4a2713aSLionel Sambuc // XCORE:UINT_FAST64_MAX_ 18446744073709551615ULL
1362f4a2713aSLionel Sambuc //
1363f4a2713aSLionel Sambuc // XCORE:INTPTR_MIN_ (-2147483647 -1)
1364f4a2713aSLionel Sambuc // XCORE:INTPTR_MAX_ 2147483647
1365f4a2713aSLionel Sambuc // XCORE:UINTPTR_MAX_ 4294967295U
1366f4a2713aSLionel Sambuc // XCORE:PTRDIFF_MIN_ (-2147483647 -1)
1367f4a2713aSLionel Sambuc // XCORE:PTRDIFF_MAX_ 2147483647
1368f4a2713aSLionel Sambuc // XCORE:SIZE_MAX_ 4294967295U
1369f4a2713aSLionel Sambuc //
1370f4a2713aSLionel Sambuc // XCORE:INTMAX_MIN_ (-9223372036854775807LL -1)
1371f4a2713aSLionel Sambuc // XCORE:INTMAX_MAX_ 9223372036854775807LL
1372f4a2713aSLionel Sambuc // XCORE:UINTMAX_MAX_ 18446744073709551615ULL
1373f4a2713aSLionel Sambuc //
1374f4a2713aSLionel Sambuc // XCORE:SIG_ATOMIC_MIN_ (-2147483647 -1)
1375f4a2713aSLionel Sambuc // XCORE:SIG_ATOMIC_MAX_ 2147483647
1376f4a2713aSLionel Sambuc // XCORE:WINT_MIN_ 0U
1377f4a2713aSLionel Sambuc // XCORE:WINT_MAX_ 4294967295U
1378f4a2713aSLionel Sambuc //
1379*0a6a1f1dSLionel Sambuc // XCORE:WCHAR_MAX_ 255
1380f4a2713aSLionel Sambuc // XCORE:WCHAR_MIN_ 0
1381f4a2713aSLionel Sambuc //
1382f4a2713aSLionel Sambuc // XCORE:INT8_C_(0) 0
1383f4a2713aSLionel Sambuc // XCORE:UINT8_C_(0) 0U
1384f4a2713aSLionel Sambuc // XCORE:INT16_C_(0) 0
1385f4a2713aSLionel Sambuc // XCORE:UINT16_C_(0) 0U
1386f4a2713aSLionel Sambuc // XCORE:INT32_C_(0) 0
1387f4a2713aSLionel Sambuc // XCORE:UINT32_C_(0) 0U
1388f4a2713aSLionel Sambuc // XCORE:INT64_C_(0) 0LL
1389f4a2713aSLionel Sambuc // XCORE:UINT64_C_(0) 0ULL
1390f4a2713aSLionel Sambuc //
1391f4a2713aSLionel Sambuc // XCORE:INTMAX_C_(0) 0LL
1392f4a2713aSLionel Sambuc // XCORE:UINTMAX_C_(0) 0ULL
1393f4a2713aSLionel Sambuc //
1394f4a2713aSLionel Sambuc //
1395f4a2713aSLionel Sambuc // stdint.h forms several macro definitions by pasting together identifiers
1396f4a2713aSLionel Sambuc // to form names (eg. int32_t is formed from int ## 32 ## _t). The following
1397f4a2713aSLionel Sambuc // case tests that these joining operations are performed correctly even if
1398f4a2713aSLionel Sambuc // the identifiers used in the operations (int, uint, _t, INT, UINT, _MIN,
1399f4a2713aSLionel Sambuc // _MAX, and _C(v)) are themselves macros.
1400f4a2713aSLionel Sambuc //
1401f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -ffreestanding -U__UINTMAX_TYPE__ -U__INTMAX_TYPE__ -Dint=a -Duint=b -D_t=c -DINT=d -DUINT=e -D_MIN=f -D_MAX=g '-D_C(v)=h' -triple=i386-none-none %s | FileCheck -check-prefix JOIN %s
1402f4a2713aSLionel Sambuc // JOIN:typedef int32_t intptr_t;
1403f4a2713aSLionel Sambuc // JOIN:typedef uint32_t uintptr_t;
1404f4a2713aSLionel Sambuc // JOIN:typedef __INTMAX_TYPE__ intmax_t;
1405f4a2713aSLionel Sambuc // JOIN:typedef __UINTMAX_TYPE__ uintmax_t;
1406f4a2713aSLionel Sambuc // JOIN:INTPTR_MIN_ (-2147483647 -1)
1407f4a2713aSLionel Sambuc // JOIN:INTPTR_MAX_ 2147483647
1408f4a2713aSLionel Sambuc // JOIN:UINTPTR_MAX_ 4294967295U
1409f4a2713aSLionel Sambuc // JOIN:PTRDIFF_MIN_ (-2147483647 -1)
1410f4a2713aSLionel Sambuc // JOIN:PTRDIFF_MAX_ 2147483647
1411f4a2713aSLionel Sambuc // JOIN:SIZE_MAX_ 4294967295U
1412f4a2713aSLionel Sambuc // JOIN:INTMAX_MIN_ (-9223372036854775807LL -1)
1413f4a2713aSLionel Sambuc // JOIN:INTMAX_MAX_ 9223372036854775807LL
1414f4a2713aSLionel Sambuc // JOIN:UINTMAX_MAX_ 18446744073709551615ULL
1415f4a2713aSLionel Sambuc // JOIN:SIG_ATOMIC_MIN_ (-2147483647 -1)
1416f4a2713aSLionel Sambuc // JOIN:SIG_ATOMIC_MAX_ 2147483647
1417f4a2713aSLionel Sambuc // JOIN:WINT_MIN_ (-2147483647 -1)
1418f4a2713aSLionel Sambuc // JOIN:WINT_MAX_ 2147483647
1419f4a2713aSLionel Sambuc // JOIN:WCHAR_MAX_ 2147483647
1420f4a2713aSLionel Sambuc // JOIN:WCHAR_MIN_ (-2147483647 -1)
1421f4a2713aSLionel Sambuc // JOIN:INTMAX_C_(0) 0LL
1422f4a2713aSLionel Sambuc // JOIN:UINTMAX_C_(0) 0ULL
1423f4a2713aSLionel Sambuc 
1424f4a2713aSLionel Sambuc #include <stdint.h>
1425f4a2713aSLionel Sambuc 
1426f4a2713aSLionel Sambuc INT8_MAX_ INT8_MAX
1427f4a2713aSLionel Sambuc INT8_MIN_ INT8_MIN
1428f4a2713aSLionel Sambuc UINT8_MAX_ UINT8_MAX
1429f4a2713aSLionel Sambuc INT_LEAST8_MIN_ INT_LEAST8_MIN
1430f4a2713aSLionel Sambuc INT_LEAST8_MAX_ INT_LEAST8_MAX
1431f4a2713aSLionel Sambuc UINT_LEAST8_MAX_ UINT_LEAST8_MAX
1432f4a2713aSLionel Sambuc INT_FAST8_MIN_ INT_FAST8_MIN
1433f4a2713aSLionel Sambuc INT_FAST8_MAX_ INT_FAST8_MAX
1434f4a2713aSLionel Sambuc UINT_FAST8_MAX_ UINT_FAST8_MAX
1435f4a2713aSLionel Sambuc 
1436f4a2713aSLionel Sambuc INT16_MAX_ INT16_MAX
1437f4a2713aSLionel Sambuc INT16_MIN_ INT16_MIN
1438f4a2713aSLionel Sambuc UINT16_MAX_ UINT16_MAX
1439f4a2713aSLionel Sambuc INT_LEAST16_MIN_ INT_LEAST16_MIN
1440f4a2713aSLionel Sambuc INT_LEAST16_MAX_ INT_LEAST16_MAX
1441f4a2713aSLionel Sambuc UINT_LEAST16_MAX_ UINT_LEAST16_MAX
1442f4a2713aSLionel Sambuc INT_FAST16_MIN_ INT_FAST16_MIN
1443f4a2713aSLionel Sambuc INT_FAST16_MAX_ INT_FAST16_MAX
1444f4a2713aSLionel Sambuc UINT_FAST16_MAX_ UINT_FAST16_MAX
1445f4a2713aSLionel Sambuc 
1446f4a2713aSLionel Sambuc INT32_MAX_ INT32_MAX
1447f4a2713aSLionel Sambuc INT32_MIN_ INT32_MIN
1448f4a2713aSLionel Sambuc UINT32_MAX_ UINT32_MAX
1449f4a2713aSLionel Sambuc INT_LEAST32_MIN_ INT_LEAST32_MIN
1450f4a2713aSLionel Sambuc INT_LEAST32_MAX_ INT_LEAST32_MAX
1451f4a2713aSLionel Sambuc UINT_LEAST32_MAX_ UINT_LEAST32_MAX
1452f4a2713aSLionel Sambuc INT_FAST32_MIN_ INT_FAST32_MIN
1453f4a2713aSLionel Sambuc INT_FAST32_MAX_ INT_FAST32_MAX
1454f4a2713aSLionel Sambuc UINT_FAST32_MAX_ UINT_FAST32_MAX
1455f4a2713aSLionel Sambuc 
1456f4a2713aSLionel Sambuc INT64_MAX_ INT64_MAX
1457f4a2713aSLionel Sambuc INT64_MIN_ INT64_MIN
1458f4a2713aSLionel Sambuc UINT64_MAX_ UINT64_MAX
1459f4a2713aSLionel Sambuc INT_LEAST64_MIN_ INT_LEAST64_MIN
1460f4a2713aSLionel Sambuc INT_LEAST64_MAX_ INT_LEAST64_MAX
1461f4a2713aSLionel Sambuc UINT_LEAST64_MAX_ UINT_LEAST64_MAX
1462f4a2713aSLionel Sambuc INT_FAST64_MIN_ INT_FAST64_MIN
1463f4a2713aSLionel Sambuc INT_FAST64_MAX_ INT_FAST64_MAX
1464f4a2713aSLionel Sambuc UINT_FAST64_MAX_ UINT_FAST64_MAX
1465f4a2713aSLionel Sambuc 
1466f4a2713aSLionel Sambuc INTPTR_MIN_ INTPTR_MIN
1467f4a2713aSLionel Sambuc INTPTR_MAX_ INTPTR_MAX
1468f4a2713aSLionel Sambuc UINTPTR_MAX_ UINTPTR_MAX
1469f4a2713aSLionel Sambuc PTRDIFF_MIN_ PTRDIFF_MIN
1470f4a2713aSLionel Sambuc PTRDIFF_MAX_ PTRDIFF_MAX
1471f4a2713aSLionel Sambuc SIZE_MAX_ SIZE_MAX
1472f4a2713aSLionel Sambuc 
1473f4a2713aSLionel Sambuc INTMAX_MIN_ INTMAX_MIN
1474f4a2713aSLionel Sambuc INTMAX_MAX_ INTMAX_MAX
1475f4a2713aSLionel Sambuc UINTMAX_MAX_ UINTMAX_MAX
1476f4a2713aSLionel Sambuc 
1477f4a2713aSLionel Sambuc SIG_ATOMIC_MIN_ SIG_ATOMIC_MIN
1478f4a2713aSLionel Sambuc SIG_ATOMIC_MAX_ SIG_ATOMIC_MAX
1479f4a2713aSLionel Sambuc WINT_MIN_ WINT_MIN
1480f4a2713aSLionel Sambuc WINT_MAX_ WINT_MAX
1481f4a2713aSLionel Sambuc 
1482f4a2713aSLionel Sambuc WCHAR_MAX_ WCHAR_MAX
1483f4a2713aSLionel Sambuc WCHAR_MIN_ WCHAR_MIN
1484f4a2713aSLionel Sambuc 
1485f4a2713aSLionel Sambuc INT8_C_(0) INT8_C(0)
1486f4a2713aSLionel Sambuc UINT8_C_(0) UINT8_C(0)
1487f4a2713aSLionel Sambuc INT16_C_(0) INT16_C(0)
1488f4a2713aSLionel Sambuc UINT16_C_(0) UINT16_C(0)
1489f4a2713aSLionel Sambuc INT32_C_(0) INT32_C(0)
1490f4a2713aSLionel Sambuc UINT32_C_(0) UINT32_C(0)
1491f4a2713aSLionel Sambuc INT64_C_(0) INT64_C(0)
1492f4a2713aSLionel Sambuc UINT64_C_(0) UINT64_C(0)
1493f4a2713aSLionel Sambuc 
1494f4a2713aSLionel Sambuc INTMAX_C_(0) INTMAX_C(0)
1495f4a2713aSLionel Sambuc UINTMAX_C_(0) UINTMAX_C(0)
1496