blob: f161c055cf0d7ee54581ddad0312b4969a1f5d52 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -E -dM -x=assembler-with-cpp < /dev/null | FileCheck -check-prefix ASM %s
Chris Lattnerbceaf862009-10-29 04:55:36 +00002//
3// ASM:#define __ASSEMBLER__ 1
4//
5//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00006// RUN: clang-cc -fblocks -E -dM < /dev/null | FileCheck -check-prefix BLOCKS %s
Chris Lattnerbceaf862009-10-29 04:55:36 +00007//
8// BLOCKS:#define __BLOCKS__ 1
9// BLOCKS:#define __block __attribute__((__blocks__(byref)))
10//
11//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000012// RUN: clang-cc -x=c++ -std=c++0x -E -dM < /dev/null | FileCheck -check-prefix CXX0X %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000013//
14// CXX0X:#define _GNU_SOURCE 1
15// CXX0X:#define __DEPRECATED 1
16// CXX0X:#define __GNUG__
17// CXX0X:#define __GXX_EXPERIMENTAL_CXX0X__ 1
18// CXX0X:#define __GXX_WEAK__ 1
19// CXX0X:#define __cplusplus 199711L
20// CXX0X:#define __private_extern__ extern
21//
22//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000023// RUN: clang-cc -x=c++ -std=c++98 -E -dM < /dev/null | FileCheck -check-prefix CXX98 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000024//
25// CXX98:#define _GNU_SOURCE 1
26// CXX98:#define __DEPRECATED 1
27// CXX98:#define __GNUG__
28// CXX98:#define __GXX_WEAK__ 1
29// CXX98:#define __cplusplus 199711L
30// CXX98:#define __private_extern__ extern
31//
32//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000033// RUN: clang-cc -std=c99 -E -dM < /dev/null | FileCheck -check-prefix C99 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000034//
35// C99:#define __STDC_VERSION__ 199901L
36// C99:#define __STRICT_ANSI__ 1
37//
38//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000039// RUN: clang-cc -E -dM -fms-extensions=0 < /dev/null | FileCheck -check-prefix COMMON %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000040//
41// COMMON:#define __CONSTANT_CFSTRINGS__ 1
42// COMMON:#define __FINITE_MATH_ONLY__ 0
43// COMMON:#define __GNUC_MINOR__
44// COMMON:#define __GNUC_PATCHLEVEL__
45// COMMON:#define __GNUC_STDC_INLINE__ 1
46// COMMON:#define __GNUC__
47// COMMON:#define __GXX_ABI_VERSION
48// COMMON:#define __STDC_HOSTED__ 1
49// COMMON:#define __STDC_VERSION__
50// COMMON:#define __STDC__ 1
51// COMMON:#define __VERSION__
52// COMMON:#define __clang__ 1
53// COMMON:#define __llvm__ 1
54//
55//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000056// RUN: clang-cc -ffreestanding -E -dM < /dev/null | FileCheck -check-prefix FREESTANDING %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000057// FREESTANDING:#define __STDC_HOSTED__ 0
58//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000059// RUN: clang-cc -x=c++ -std=gnu++98 -E -dM < /dev/null | FileCheck -check-prefix GXX98 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000060//
61// GXX98:#define _GNU_SOURCE 1
62// GXX98:#define __DEPRECATED 1
63// GXX98:#define __GNUG__
64// GXX98:#define __GXX_WEAK__ 1
65// GXX98:#define __cplusplus 1
66// GXX98:#define __private_extern__ extern
67//
68//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000069// RUN: clang-cc -std=iso9899:199409 -E -dM < /dev/null | FileCheck -check-prefix C94 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000070//
71// C94:#define __STDC_VERSION__ 199409L
72//
73//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000074// RUN: clang-cc -fms-extensions -E -dM < /dev/null | FileCheck -check-prefix MSEXT %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000075//
76// MSEXT-NOT:#define __STDC__
77// MSEXT:#define __int16 __INT16_TYPE__
78// MSEXT:#define __int32 __INT32_TYPE__
79// MSEXT:#define __int64 __INT64_TYPE__
80// MSEXT:#define __int8 __INT8_TYPE__
81//
82//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000083// RUN: clang-cc -x=objective-c -E -dM < /dev/null | FileCheck -check-prefix OBJC %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000084//
85// OBJC:#define OBJC_NEW_PROPERTIES 1
Daniel Dunbarc5a97ec2009-11-17 07:07:28 +000086// OBJC:#define __NEXT_RUNTIME__ 1
Chris Lattnerbceaf862009-10-29 04:55:36 +000087// OBJC:#define __OBJC__ 1
88//
Daniel Dunbarc5a97ec2009-11-17 07:07:28 +000089//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000090// RUN: clang-cc -x=objective-c -fobjc-gc -E -dM < /dev/null | FileCheck -check-prefix OBJCGC %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000091//
92// OBJCGC:#define __OBJC_GC__ 1
93//
94//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000095// RUN: clang-cc -x=objective-c -fobjc-nonfragile-abi -E -dM < /dev/null | FileCheck -check-prefix NONFRAGILE %s
Chris Lattnerbceaf862009-10-29 04:55:36 +000096//
97// NONFRAGILE:#define OBJC_ZEROCOST_EXCEPTIONS 1
98// NONFRAGILE:#define __OBJC2__ 1
99//
100//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000101// RUN: clang-cc -O1 -E -dM < /dev/null | FileCheck -check-prefix O1 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000102//
103// O1:#define __OPTIMIZE__ 1
104//
105//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000106// RUN: clang-cc -fpascal-strings -E -dM < /dev/null | FileCheck -check-prefix PASCAL %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000107//
108// PASCAL:#define __PASCAL_STRINGS__ 1
109//
110//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000111// RUN: clang-cc -fsigned-char -E -dM -fms-extensions=0 < /dev/null | FileCheck -check-prefix SCHAR %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000112//
113// SCHAR:#define __STDC__ 1
114// SCHAR-NOT:#define __UNSIGNED_CHAR__
115// SCHAR:#define __clang__ 1
116//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000117// RUN: clang-cc -E -dM -ffreestanding -triple=arm-none-none < /dev/null | FileCheck -check-prefix ARM %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000118//
119// ARM:#define __APCS_32__ 1
120// ARM:#define __ARMEL__ 1
121// ARM:#define __ARM_ARCH_6K__ 1
122// ARM:#define __CHAR_BIT__ 8
123// ARM:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
124// ARM:#define __DBL_DIG__ 15
125// ARM:#define __DBL_EPSILON__ 2.2204460492503131e-16
126// ARM:#define __DBL_HAS_DENORM__ 1
127// ARM:#define __DBL_HAS_INFINITY__ 1
128// ARM:#define __DBL_HAS_QUIET_NAN__ 1
129// ARM:#define __DBL_MANT_DIG__ 53
130// ARM:#define __DBL_MAX_10_EXP__ 308
131// ARM:#define __DBL_MAX_EXP__ 1024
132// ARM:#define __DBL_MAX__ 1.7976931348623157e+308
133// ARM:#define __DBL_MIN_10_EXP__ (-307)
134// ARM:#define __DBL_MIN_EXP__ (-1021)
135// ARM:#define __DBL_MIN__ 2.2250738585072014e-308
136// ARM:#define __DECIMAL_DIG__ 17
137// ARM:#define __FLT_DENORM_MIN__ 1.40129846e-45F
138// ARM:#define __FLT_DIG__ 6
139// ARM:#define __FLT_EPSILON__ 1.19209290e-7F
140// ARM:#define __FLT_EVAL_METHOD__ 0
141// ARM:#define __FLT_HAS_DENORM__ 1
142// ARM:#define __FLT_HAS_INFINITY__ 1
143// ARM:#define __FLT_HAS_QUIET_NAN__ 1
144// ARM:#define __FLT_MANT_DIG__ 24
145// ARM:#define __FLT_MAX_10_EXP__ 38
146// ARM:#define __FLT_MAX_EXP__ 128
147// ARM:#define __FLT_MAX__ 3.40282347e+38F
148// ARM:#define __FLT_MIN_10_EXP__ (-37)
149// ARM:#define __FLT_MIN_EXP__ (-125)
150// ARM:#define __FLT_MIN__ 1.17549435e-38F
151// ARM:#define __FLT_RADIX__ 2
152// ARM:#define __INT16_TYPE__ short
153// ARM:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000154// ARM:#define __INT64_C_SUFFIX__ LL
Chris Lattnerbceaf862009-10-29 04:55:36 +0000155// ARM:#define __INT64_TYPE__ long long int
156// ARM:#define __INT8_TYPE__ char
157// ARM:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000158// ARM:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000159// ARM:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000160// ARM:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000161// ARM:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000162// ARM:#define __INT_MAX__ 2147483647
163// ARM:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
164// ARM:#define __LDBL_DIG__ 15
165// ARM:#define __LDBL_EPSILON__ 2.2204460492503131e-16
166// ARM:#define __LDBL_HAS_DENORM__ 1
167// ARM:#define __LDBL_HAS_INFINITY__ 1
168// ARM:#define __LDBL_HAS_QUIET_NAN__ 1
169// ARM:#define __LDBL_MANT_DIG__ 53
170// ARM:#define __LDBL_MAX_10_EXP__ 308
171// ARM:#define __LDBL_MAX_EXP__ 1024
172// ARM:#define __LDBL_MAX__ 1.7976931348623157e+308
173// ARM:#define __LDBL_MIN_10_EXP__ (-307)
174// ARM:#define __LDBL_MIN_EXP__ (-1021)
175// ARM:#define __LDBL_MIN__ 2.2250738585072014e-308
176// ARM:#define __LITTLE_ENDIAN__ 1
177// ARM:#define __LONG_LONG_MAX__ 9223372036854775807LL
178// ARM:#define __LONG_MAX__ 2147483647L
179// ARM:#define __NO_INLINE__ 1
180// ARM:#define __POINTER_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000181// ARM:#define __PTRDIFF_TYPE__ int
Ken Dyckd00c7512009-11-19 12:21:52 +0000182// ARM:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000183// ARM:#define __SCHAR_MAX__ 127
184// ARM:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000185// ARM:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000186// ARM:#define __SIZE_TYPE__ unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000187// ARM:#define __SIZE_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000188// ARM:#define __THUMB_INTERWORK__ 1
Ken Dyck8241d732009-11-19 13:18:59 +0000189// ARM:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000190// ARM:#define __USER_LABEL_PREFIX__ _
191// ARM:#define __VFP_FP__ 1
192// ARM:#define __WCHAR_MAX__ 2147483647
193// ARM:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000194// ARM:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000195// ARM:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000196// ARM:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000197// ARM:#define __arm 1
198// ARM:#define __arm__ 1
199//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000200// RUN: clang-cc -E -dM -ffreestanding -triple=bfin-none-none < /dev/null | FileCheck -check-prefix BFIN %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000201//
202// BFIN:#define BFIN 1
203// BFIN:#define __ADSPBLACKFIN__ 1
204// BFIN:#define __ADSPLPBLACKFIN__ 1
205// BFIN:#define __BFIN 1
206// BFIN:#define __BFIN__ 1
207// BFIN:#define __CHAR_BIT__ 8
208// BFIN:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
209// BFIN:#define __DBL_DIG__ 15
210// BFIN:#define __DBL_EPSILON__ 2.2204460492503131e-16
211// BFIN:#define __DBL_HAS_DENORM__ 1
212// BFIN:#define __DBL_HAS_INFINITY__ 1
213// BFIN:#define __DBL_HAS_QUIET_NAN__ 1
214// BFIN:#define __DBL_MANT_DIG__ 53
215// BFIN:#define __DBL_MAX_10_EXP__ 308
216// BFIN:#define __DBL_MAX_EXP__ 1024
217// BFIN:#define __DBL_MAX__ 1.7976931348623157e+308
218// BFIN:#define __DBL_MIN_10_EXP__ (-307)
219// BFIN:#define __DBL_MIN_EXP__ (-1021)
220// BFIN:#define __DBL_MIN__ 2.2250738585072014e-308
221// BFIN:#define __DECIMAL_DIG__ 17
222// BFIN:#define __FLT_DENORM_MIN__ 1.40129846e-45F
223// BFIN:#define __FLT_DIG__ 6
224// BFIN:#define __FLT_EPSILON__ 1.19209290e-7F
225// BFIN:#define __FLT_EVAL_METHOD__ 0
226// BFIN:#define __FLT_HAS_DENORM__ 1
227// BFIN:#define __FLT_HAS_INFINITY__ 1
228// BFIN:#define __FLT_HAS_QUIET_NAN__ 1
229// BFIN:#define __FLT_MANT_DIG__ 24
230// BFIN:#define __FLT_MAX_10_EXP__ 38
231// BFIN:#define __FLT_MAX_EXP__ 128
232// BFIN:#define __FLT_MAX__ 3.40282347e+38F
233// BFIN:#define __FLT_MIN_10_EXP__ (-37)
234// BFIN:#define __FLT_MIN_EXP__ (-125)
235// BFIN:#define __FLT_MIN__ 1.17549435e-38F
236// BFIN:#define __FLT_RADIX__ 2
237// BFIN:#define __INT16_TYPE__ short
238// BFIN:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000239// BFIN:#define __INT64_C_SUFFIX__ LL
Chris Lattnerbceaf862009-10-29 04:55:36 +0000240// BFIN:#define __INT64_TYPE__ long long int
241// BFIN:#define __INT8_TYPE__ char
242// BFIN:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000243// BFIN:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000244// BFIN:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000245// BFIN:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000246// BFIN:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000247// BFIN:#define __INT_MAX__ 2147483647
248// BFIN:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
249// BFIN:#define __LDBL_DIG__ 15
250// BFIN:#define __LDBL_EPSILON__ 2.2204460492503131e-16
251// BFIN:#define __LDBL_HAS_DENORM__ 1
252// BFIN:#define __LDBL_HAS_INFINITY__ 1
253// BFIN:#define __LDBL_HAS_QUIET_NAN__ 1
254// BFIN:#define __LDBL_MANT_DIG__ 53
255// BFIN:#define __LDBL_MAX_10_EXP__ 308
256// BFIN:#define __LDBL_MAX_EXP__ 1024
257// BFIN:#define __LDBL_MAX__ 1.7976931348623157e+308
258// BFIN:#define __LDBL_MIN_10_EXP__ (-307)
259// BFIN:#define __LDBL_MIN_EXP__ (-1021)
260// BFIN:#define __LDBL_MIN__ 2.2250738585072014e-308
261// BFIN:#define __LONG_LONG_MAX__ 9223372036854775807LL
262// BFIN:#define __LONG_MAX__ 2147483647L
263// BFIN:#define __NO_INLINE__ 1
264// BFIN:#define __POINTER_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000265// BFIN:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +0000266// BFIN:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000267// BFIN:#define __SCHAR_MAX__ 127
268// BFIN:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000269// BFIN:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000270// BFIN:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000271// BFIN:#define __SIZE_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000272// BFIN:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000273// BFIN:#define __USER_LABEL_PREFIX__ _
274// BFIN:#define __WCHAR_MAX__ 2147483647
275// BFIN:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000276// BFIN:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000277// BFIN:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000278// BFIN:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000279// BFIN:#define __bfin 1
280// BFIN:#define __bfin__ 1
281// BFIN:#define bfin 1
282//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000283// RUN: clang-cc -E -dM -ffreestanding -triple=i386-none-none < /dev/null | FileCheck -check-prefix I386 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000284//
285// I386:#define __CHAR_BIT__ 8
286// I386:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
287// I386:#define __DBL_DIG__ 15
288// I386:#define __DBL_EPSILON__ 2.2204460492503131e-16
289// I386:#define __DBL_HAS_DENORM__ 1
290// I386:#define __DBL_HAS_INFINITY__ 1
291// I386:#define __DBL_HAS_QUIET_NAN__ 1
292// I386:#define __DBL_MANT_DIG__ 53
293// I386:#define __DBL_MAX_10_EXP__ 308
294// I386:#define __DBL_MAX_EXP__ 1024
295// I386:#define __DBL_MAX__ 1.7976931348623157e+308
296// I386:#define __DBL_MIN_10_EXP__ (-307)
297// I386:#define __DBL_MIN_EXP__ (-1021)
298// I386:#define __DBL_MIN__ 2.2250738585072014e-308
299// I386:#define __DECIMAL_DIG__ 21
300// I386:#define __FLT_DENORM_MIN__ 1.40129846e-45F
301// I386:#define __FLT_DIG__ 6
302// I386:#define __FLT_EPSILON__ 1.19209290e-7F
303// I386:#define __FLT_EVAL_METHOD__ 0
304// I386:#define __FLT_HAS_DENORM__ 1
305// I386:#define __FLT_HAS_INFINITY__ 1
306// I386:#define __FLT_HAS_QUIET_NAN__ 1
307// I386:#define __FLT_MANT_DIG__ 24
308// I386:#define __FLT_MAX_10_EXP__ 38
309// I386:#define __FLT_MAX_EXP__ 128
310// I386:#define __FLT_MAX__ 3.40282347e+38F
311// I386:#define __FLT_MIN_10_EXP__ (-37)
312// I386:#define __FLT_MIN_EXP__ (-125)
313// I386:#define __FLT_MIN__ 1.17549435e-38F
314// I386:#define __FLT_RADIX__ 2
315// I386:#define __INT16_TYPE__ short
316// I386:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000317// I386:#define __INT64_C_SUFFIX__ LL
Chris Lattnerbceaf862009-10-29 04:55:36 +0000318// I386:#define __INT64_TYPE__ long long int
319// I386:#define __INT8_TYPE__ char
320// I386:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000321// I386:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000322// I386:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000323// I386:#define __INTPTR_TYPE__ int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000324// I386:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000325// I386:#define __INT_MAX__ 2147483647
326// I386:#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
327// I386:#define __LDBL_DIG__ 18
328// I386:#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
329// I386:#define __LDBL_HAS_DENORM__ 1
330// I386:#define __LDBL_HAS_INFINITY__ 1
331// I386:#define __LDBL_HAS_QUIET_NAN__ 1
332// I386:#define __LDBL_MANT_DIG__ 64
333// I386:#define __LDBL_MAX_10_EXP__ 4932
334// I386:#define __LDBL_MAX_EXP__ 16384
335// I386:#define __LDBL_MAX__ 1.18973149535723176502e+4932L
336// I386:#define __LDBL_MIN_10_EXP__ (-4931)
337// I386:#define __LDBL_MIN_EXP__ (-16381)
338// I386:#define __LDBL_MIN__ 3.36210314311209350626e-4932L
339// I386:#define __LITTLE_ENDIAN__ 1
340// I386:#define __LONG_LONG_MAX__ 9223372036854775807LL
341// I386:#define __LONG_MAX__ 2147483647L
342// I386:#define __NO_INLINE__ 1
343// I386:#define __NO_MATH_INLINES 1
344// I386:#define __POINTER_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000345// I386:#define __PTRDIFF_TYPE__ int
Ken Dyckd00c7512009-11-19 12:21:52 +0000346// I386:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000347// I386:#define __REGISTER_PREFIX__
348// I386:#define __SCHAR_MAX__ 127
349// I386:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000350// I386:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000351// I386:#define __SIZE_TYPE__ unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000352// I386:#define __SIZE_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000353// I386:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000354// I386:#define __USER_LABEL_PREFIX__ _
355// I386:#define __WCHAR_MAX__ 2147483647
356// I386:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000357// I386:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000358// I386:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000359// I386:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000360// I386:#define __i386 1
361// I386:#define __i386__ 1
362// I386:#define __nocona 1
363// I386:#define __nocona__ 1
364// I386:#define __tune_nocona__ 1
365// I386:#define i386 1
366//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000367// RUN: clang-cc -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -check-prefix MSP430 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000368//
369// MSP430:#define MSP430 1
370// MSP430:#define __CHAR_BIT__ 8
371// MSP430:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
372// MSP430:#define __DBL_DIG__ 15
373// MSP430:#define __DBL_EPSILON__ 2.2204460492503131e-16
374// MSP430:#define __DBL_HAS_DENORM__ 1
375// MSP430:#define __DBL_HAS_INFINITY__ 1
376// MSP430:#define __DBL_HAS_QUIET_NAN__ 1
377// MSP430:#define __DBL_MANT_DIG__ 53
378// MSP430:#define __DBL_MAX_10_EXP__ 308
379// MSP430:#define __DBL_MAX_EXP__ 1024
380// MSP430:#define __DBL_MAX__ 1.7976931348623157e+308
381// MSP430:#define __DBL_MIN_10_EXP__ (-307)
382// MSP430:#define __DBL_MIN_EXP__ (-1021)
383// MSP430:#define __DBL_MIN__ 2.2250738585072014e-308
384// MSP430:#define __DECIMAL_DIG__ 17
385// MSP430:#define __FLT_DENORM_MIN__ 1.40129846e-45F
386// MSP430:#define __FLT_DIG__ 6
387// MSP430:#define __FLT_EPSILON__ 1.19209290e-7F
388// MSP430:#define __FLT_EVAL_METHOD__ 0
389// MSP430:#define __FLT_HAS_DENORM__ 1
390// MSP430:#define __FLT_HAS_INFINITY__ 1
391// MSP430:#define __FLT_HAS_QUIET_NAN__ 1
392// MSP430:#define __FLT_MANT_DIG__ 24
393// MSP430:#define __FLT_MAX_10_EXP__ 38
394// MSP430:#define __FLT_MAX_EXP__ 128
395// MSP430:#define __FLT_MAX__ 3.40282347e+38F
396// MSP430:#define __FLT_MIN_10_EXP__ (-37)
397// MSP430:#define __FLT_MIN_EXP__ (-125)
398// MSP430:#define __FLT_MIN__ 1.17549435e-38F
399// MSP430:#define __FLT_RADIX__ 2
400// MSP430:#define __INT16_TYPE__ short
Ken Dyckeef22ef2009-11-16 16:36:33 +0000401// MSP430:#define __INT32_C_SUFFIX__ L
Chris Lattnerdcdd2a02009-11-12 08:08:27 +0000402// MSP430:#define __INT32_TYPE__ long int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000403// MSP430:#define __INT8_TYPE__ char
404// MSP430:#define __INTMAX_MAX__ 2147483647L
Ken Dyck8241d732009-11-19 13:18:59 +0000405// MSP430:#define __INTMAX_TYPE__ long int
Ken Dyck186696b2009-11-18 13:52:57 +0000406// MSP430:#define __INTMAX_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000407// MSP430:#define __INTPTR_TYPE__ short
Ken Dyckd896e1a2009-11-18 20:05:48 +0000408// MSP430:#define __INTPTR_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000409// MSP430:#define __INT_MAX__ 32767
410// MSP430:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
411// MSP430:#define __LDBL_DIG__ 15
412// MSP430:#define __LDBL_EPSILON__ 2.2204460492503131e-16
413// MSP430:#define __LDBL_HAS_DENORM__ 1
414// MSP430:#define __LDBL_HAS_INFINITY__ 1
415// MSP430:#define __LDBL_HAS_QUIET_NAN__ 1
416// MSP430:#define __LDBL_MANT_DIG__ 53
417// MSP430:#define __LDBL_MAX_10_EXP__ 308
418// MSP430:#define __LDBL_MAX_EXP__ 1024
419// MSP430:#define __LDBL_MAX__ 1.7976931348623157e+308
420// MSP430:#define __LDBL_MIN_10_EXP__ (-307)
421// MSP430:#define __LDBL_MIN_EXP__ (-1021)
422// MSP430:#define __LDBL_MIN__ 2.2250738585072014e-308
423// MSP430:#define __LONG_LONG_MAX__ 2147483647LL
424// MSP430:#define __LONG_MAX__ 2147483647L
425// MSP430:#define __MSP430__ 1
426// MSP430:#define __NO_INLINE__ 1
427// MSP430:#define __POINTER_WIDTH__ 16
Ken Dyck8241d732009-11-19 13:18:59 +0000428// MSP430:#define __PTRDIFF_TYPE__ int
Ken Dyckd00c7512009-11-19 12:21:52 +0000429// MSP430:#define __PTRDIFF_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000430// MSP430:#define __SCHAR_MAX__ 127
431// MSP430:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000432// MSP430:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000433// MSP430:#define __SIZE_TYPE__ unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000434// MSP430:#define __SIZE_WIDTH__ 16
Ken Dyck8241d732009-11-19 13:18:59 +0000435// MSP430:#define __UINTMAX_TYPE__ long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000436// MSP430:#define __USER_LABEL_PREFIX__ _
Chris Lattner91846462009-11-12 08:04:33 +0000437// MSP430:#define __WCHAR_MAX__ 32767
Chris Lattnerbceaf862009-10-29 04:55:36 +0000438// MSP430:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000439// MSP430:#define __WCHAR_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000440// MSP430:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000441// MSP430:#define __WINT_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000442// MSP430:#define __clang__ 1
443//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000444// RUN: clang-cc -E -dM -ffreestanding -triple=pic16-none-none < /dev/null | FileCheck -check-prefix PIC16 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000445//
446// PIC16:#define _CONFIG(conf) asm("CONFIG "#conf)
447// PIC16:#define __CHAR_BIT__ 8
448// PIC16:#define __DBL_DENORM_MIN__ 1.40129846e-45F
449// PIC16:#define __DBL_DIG__ 6
450// PIC16:#define __DBL_EPSILON__ 1.19209290e-7F
451// PIC16:#define __DBL_HAS_DENORM__ 1
452// PIC16:#define __DBL_HAS_INFINITY__ 1
453// PIC16:#define __DBL_HAS_QUIET_NAN__ 1
454// PIC16:#define __DBL_MANT_DIG__ 24
455// PIC16:#define __DBL_MAX_10_EXP__ 38
456// PIC16:#define __DBL_MAX_EXP__ 128
457// PIC16:#define __DBL_MAX__ 3.40282347e+38F
458// PIC16:#define __DBL_MIN_10_EXP__ (-37)
459// PIC16:#define __DBL_MIN_EXP__ (-125)
460// PIC16:#define __DBL_MIN__ 1.17549435e-38F
461// PIC16:#define __DECIMAL_DIG__ -1
462// PIC16:#define __FLT_DENORM_MIN__ 1.40129846e-45F
463// PIC16:#define __FLT_DIG__ 6
464// PIC16:#define __FLT_EPSILON__ 1.19209290e-7F
465// PIC16:#define __FLT_EVAL_METHOD__ 0
466// PIC16:#define __FLT_HAS_DENORM__ 1
467// PIC16:#define __FLT_HAS_INFINITY__ 1
468// PIC16:#define __FLT_HAS_QUIET_NAN__ 1
469// PIC16:#define __FLT_MANT_DIG__ 24
470// PIC16:#define __FLT_MAX_10_EXP__ 38
471// PIC16:#define __FLT_MAX_EXP__ 128
472// PIC16:#define __FLT_MAX__ 3.40282347e+38F
473// PIC16:#define __FLT_MIN_10_EXP__ (-37)
474// PIC16:#define __FLT_MIN_EXP__ (-125)
475// PIC16:#define __FLT_MIN__ 1.17549435e-38F
476// PIC16:#define __FLT_RADIX__ 2
477// PIC16:#define __INT16_TYPE__ short
Ken Dyckeef22ef2009-11-16 16:36:33 +0000478// PIC16:#define __INT32_C_SUFFIX__ L
Chris Lattnerdcdd2a02009-11-12 08:08:27 +0000479// PIC16:#define __INT32_TYPE__ long int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000480// PIC16:#define __INT8_TYPE__ char
481// PIC16:#define __INTMAX_MAX__ 2147483647L
Ken Dyck8241d732009-11-19 13:18:59 +0000482// PIC16:#define __INTMAX_TYPE__ long int
Ken Dyck186696b2009-11-18 13:52:57 +0000483// PIC16:#define __INTMAX_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000484// PIC16:#define __INTPTR_TYPE__ short
Ken Dyckd896e1a2009-11-18 20:05:48 +0000485// PIC16:#define __INTPTR_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000486// PIC16:#define __INT_MAX__ 32767
487// PIC16:#define __LDBL_DENORM_MIN__ 1.40129846e-45F
488// PIC16:#define __LDBL_DIG__ 6
489// PIC16:#define __LDBL_EPSILON__ 1.19209290e-7F
490// PIC16:#define __LDBL_HAS_DENORM__ 1
491// PIC16:#define __LDBL_HAS_INFINITY__ 1
492// PIC16:#define __LDBL_HAS_QUIET_NAN__ 1
493// PIC16:#define __LDBL_MANT_DIG__ 24
494// PIC16:#define __LDBL_MAX_10_EXP__ 38
495// PIC16:#define __LDBL_MAX_EXP__ 128
496// PIC16:#define __LDBL_MAX__ 3.40282347e+38F
497// PIC16:#define __LDBL_MIN_10_EXP__ (-37)
498// PIC16:#define __LDBL_MIN_EXP__ (-125)
499// PIC16:#define __LDBL_MIN__ 1.17549435e-38F
500// PIC16:#define __LONG_LONG_MAX__ 2147483647LL
501// PIC16:#define __LONG_MAX__ 2147483647L
502// PIC16:#define __NO_INLINE__ 1
503// PIC16:#define __POINTER_WIDTH__ 16
Ken Dyck8241d732009-11-19 13:18:59 +0000504// PIC16:#define __PTRDIFF_TYPE__ int
Ken Dyckd00c7512009-11-19 12:21:52 +0000505// PIC16:#define __PTRDIFF_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000506// PIC16:#define __SCHAR_MAX__ 127
507// PIC16:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000508// PIC16:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000509// PIC16:#define __SIZE_TYPE__ unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000510// PIC16:#define __SIZE_WIDTH__ 16
Ken Dyck8241d732009-11-19 13:18:59 +0000511// PIC16:#define __UINTMAX_TYPE__ long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000512// PIC16:#define __USER_LABEL_PREFIX__ _
Chris Lattner91846462009-11-12 08:04:33 +0000513// PIC16:#define __WCHAR_MAX__ 32767
Chris Lattnerbceaf862009-10-29 04:55:36 +0000514// PIC16:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000515// PIC16:#define __WCHAR_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000516// PIC16:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000517// PIC16:#define __WINT_WIDTH__ 16
Chris Lattnerbceaf862009-10-29 04:55:36 +0000518// PIC16:#define __clang__ 1
519// PIC16:#define __llvm__ 1
520// PIC16:#define __pic16 1
521// PIC16:#define _address(Addr) __attribute__((section("Address="#Addr)))
522// PIC16:#define _interrupt __attribute__((section("interrupt=0x4"))) __attribute__((used))
523// PIC16:#define _section(SectName) __attribute__((section(SectName)))
524// PIC16:#define ram __attribute__((address_space(0)))
525// PIC16:#define rom __attribute__((address_space(1)))
526//
Daniel Dunbar1f95e652009-11-17 06:37:03 +0000527// RUN: clang-cc -E -dM -ffreestanding -triple=powerpc64-none-none -fsigned-char=0 < /dev/null | FileCheck -check-prefix PPC64 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000528//
529// PPC64:#define _ARCH_PPC 1
530// PPC64:#define _ARCH_PPC64 1
531// PPC64:#define _BIG_ENDIAN 1
532// PPC64:#define _LP64 1
533// PPC64:#define __BIG_ENDIAN__ 1
534// PPC64:#define __CHAR_BIT__ 8
535// PPC64:#define __CHAR_UNSIGNED__ 1
536// PPC64:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
537// PPC64:#define __DBL_DIG__ 15
538// PPC64:#define __DBL_EPSILON__ 2.2204460492503131e-16
539// PPC64:#define __DBL_HAS_DENORM__ 1
540// PPC64:#define __DBL_HAS_INFINITY__ 1
541// PPC64:#define __DBL_HAS_QUIET_NAN__ 1
542// PPC64:#define __DBL_MANT_DIG__ 53
543// PPC64:#define __DBL_MAX_10_EXP__ 308
544// PPC64:#define __DBL_MAX_EXP__ 1024
545// PPC64:#define __DBL_MAX__ 1.7976931348623157e+308
546// PPC64:#define __DBL_MIN_10_EXP__ (-307)
547// PPC64:#define __DBL_MIN_EXP__ (-1021)
548// PPC64:#define __DBL_MIN__ 2.2250738585072014e-308
549// PPC64:#define __DECIMAL_DIG__ 17
550// PPC64:#define __FLT_DENORM_MIN__ 1.40129846e-45F
551// PPC64:#define __FLT_DIG__ 6
552// PPC64:#define __FLT_EPSILON__ 1.19209290e-7F
553// PPC64:#define __FLT_EVAL_METHOD__ 0
554// PPC64:#define __FLT_HAS_DENORM__ 1
555// PPC64:#define __FLT_HAS_INFINITY__ 1
556// PPC64:#define __FLT_HAS_QUIET_NAN__ 1
557// PPC64:#define __FLT_MANT_DIG__ 24
558// PPC64:#define __FLT_MAX_10_EXP__ 38
559// PPC64:#define __FLT_MAX_EXP__ 128
560// PPC64:#define __FLT_MAX__ 3.40282347e+38F
561// PPC64:#define __FLT_MIN_10_EXP__ (-37)
562// PPC64:#define __FLT_MIN_EXP__ (-125)
563// PPC64:#define __FLT_MIN__ 1.17549435e-38F
564// PPC64:#define __FLT_RADIX__ 2
565// PPC64:#define __INT16_TYPE__ short
566// PPC64:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000567// PPC64:#define __INT64_C_SUFFIX__ L
Chris Lattnerbceaf862009-10-29 04:55:36 +0000568// PPC64:#define __INT64_TYPE__ long int
569// PPC64:#define __INT8_TYPE__ char
570// PPC64:#define __INTMAX_MAX__ 9223372036854775807L
Ken Dyck8241d732009-11-19 13:18:59 +0000571// PPC64:#define __INTMAX_TYPE__ long int
Ken Dyck186696b2009-11-18 13:52:57 +0000572// PPC64:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000573// PPC64:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000574// PPC64:#define __INTPTR_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +0000575// PPC64:#define __INT_MAX__ 2147483647
576// PPC64:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
577// PPC64:#define __LDBL_DIG__ 15
578// PPC64:#define __LDBL_EPSILON__ 2.2204460492503131e-16
579// PPC64:#define __LDBL_HAS_DENORM__ 1
580// PPC64:#define __LDBL_HAS_INFINITY__ 1
581// PPC64:#define __LDBL_HAS_QUIET_NAN__ 1
582// PPC64:#define __LDBL_MANT_DIG__ 53
583// PPC64:#define __LDBL_MAX_10_EXP__ 308
584// PPC64:#define __LDBL_MAX_EXP__ 1024
585// PPC64:#define __LDBL_MAX__ 1.7976931348623157e+308
586// PPC64:#define __LDBL_MIN_10_EXP__ (-307)
587// PPC64:#define __LDBL_MIN_EXP__ (-1021)
588// PPC64:#define __LDBL_MIN__ 2.2250738585072014e-308
589// PPC64:#define __LONG_DOUBLE_128__ 1
590// PPC64:#define __LONG_LONG_MAX__ 9223372036854775807LL
591// PPC64:#define __LONG_MAX__ 9223372036854775807L
592// PPC64:#define __LP64__ 1
593// PPC64:#define __NATURAL_ALIGNMENT__ 1
594// PPC64:#define __NO_INLINE__ 1
595// PPC64:#define __POINTER_WIDTH__ 64
596// PPC64:#define __POWERPC__ 1
Ken Dyck8241d732009-11-19 13:18:59 +0000597// PPC64:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +0000598// PPC64:#define __PTRDIFF_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +0000599// PPC64:#define __REGISTER_PREFIX__
600// PPC64:#define __SCHAR_MAX__ 127
601// PPC64:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000602// PPC64:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000603// PPC64:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000604// PPC64:#define __SIZE_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000605// PPC64:#define __UINTMAX_TYPE__ long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000606// PPC64:#define __USER_LABEL_PREFIX__ _
607// PPC64:#define __WCHAR_MAX__ 2147483647
608// PPC64:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000609// PPC64:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000610// PPC64:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000611// PPC64:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000612// PPC64:#define __ppc64__ 1
613// PPC64:#define __ppc__ 1
614//
Daniel Dunbar1f95e652009-11-17 06:37:03 +0000615// RUN: clang-cc -E -dM -ffreestanding -triple=powerpc-none-none -fsigned-char=0 < /dev/null | FileCheck -check-prefix PPC %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000616//
617// PPC:#define _ARCH_PPC 1
618// PPC:#define _BIG_ENDIAN 1
619// PPC:#define __BIG_ENDIAN__ 1
620// PPC:#define __CHAR_BIT__ 8
621// PPC:#define __CHAR_UNSIGNED__ 1
622// PPC:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
623// PPC:#define __DBL_DIG__ 15
624// PPC:#define __DBL_EPSILON__ 2.2204460492503131e-16
625// PPC:#define __DBL_HAS_DENORM__ 1
626// PPC:#define __DBL_HAS_INFINITY__ 1
627// PPC:#define __DBL_HAS_QUIET_NAN__ 1
628// PPC:#define __DBL_MANT_DIG__ 53
629// PPC:#define __DBL_MAX_10_EXP__ 308
630// PPC:#define __DBL_MAX_EXP__ 1024
631// PPC:#define __DBL_MAX__ 1.7976931348623157e+308
632// PPC:#define __DBL_MIN_10_EXP__ (-307)
633// PPC:#define __DBL_MIN_EXP__ (-1021)
634// PPC:#define __DBL_MIN__ 2.2250738585072014e-308
635// PPC:#define __DECIMAL_DIG__ 17
636// PPC:#define __FLT_DENORM_MIN__ 1.40129846e-45F
637// PPC:#define __FLT_DIG__ 6
638// PPC:#define __FLT_EPSILON__ 1.19209290e-7F
639// PPC:#define __FLT_EVAL_METHOD__ 0
640// PPC:#define __FLT_HAS_DENORM__ 1
641// PPC:#define __FLT_HAS_INFINITY__ 1
642// PPC:#define __FLT_HAS_QUIET_NAN__ 1
643// PPC:#define __FLT_MANT_DIG__ 24
644// PPC:#define __FLT_MAX_10_EXP__ 38
645// PPC:#define __FLT_MAX_EXP__ 128
646// PPC:#define __FLT_MAX__ 3.40282347e+38F
647// PPC:#define __FLT_MIN_10_EXP__ (-37)
648// PPC:#define __FLT_MIN_EXP__ (-125)
649// PPC:#define __FLT_MIN__ 1.17549435e-38F
650// PPC:#define __FLT_RADIX__ 2
651// PPC:#define __INT16_TYPE__ short
652// PPC:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000653// PPC:#define __INT64_C_SUFFIX__ LL
Chris Lattnerbceaf862009-10-29 04:55:36 +0000654// PPC:#define __INT64_TYPE__ long long int
655// PPC:#define __INT8_TYPE__ char
656// PPC:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000657// PPC:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000658// PPC:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000659// PPC:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000660// PPC:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000661// PPC:#define __INT_MAX__ 2147483647
662// PPC:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
663// PPC:#define __LDBL_DIG__ 15
664// PPC:#define __LDBL_EPSILON__ 2.2204460492503131e-16
665// PPC:#define __LDBL_HAS_DENORM__ 1
666// PPC:#define __LDBL_HAS_INFINITY__ 1
667// PPC:#define __LDBL_HAS_QUIET_NAN__ 1
668// PPC:#define __LDBL_MANT_DIG__ 53
669// PPC:#define __LDBL_MAX_10_EXP__ 308
670// PPC:#define __LDBL_MAX_EXP__ 1024
671// PPC:#define __LDBL_MAX__ 1.7976931348623157e+308
672// PPC:#define __LDBL_MIN_10_EXP__ (-307)
673// PPC:#define __LDBL_MIN_EXP__ (-1021)
674// PPC:#define __LDBL_MIN__ 2.2250738585072014e-308
675// PPC:#define __LONG_DOUBLE_128__ 1
676// PPC:#define __LONG_LONG_MAX__ 9223372036854775807LL
677// PPC:#define __LONG_MAX__ 2147483647L
678// PPC:#define __NATURAL_ALIGNMENT__ 1
679// PPC:#define __NO_INLINE__ 1
680// PPC:#define __POINTER_WIDTH__ 32
681// PPC:#define __POWERPC__ 1
Ken Dyck8241d732009-11-19 13:18:59 +0000682// PPC:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +0000683// PPC:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000684// PPC:#define __REGISTER_PREFIX__
685// PPC:#define __SCHAR_MAX__ 127
686// PPC:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000687// PPC:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000688// PPC:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000689// PPC:#define __SIZE_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000690// PPC:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000691// PPC:#define __USER_LABEL_PREFIX__ _
692// PPC:#define __WCHAR_MAX__ 2147483647
693// PPC:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000694// PPC:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000695// PPC:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000696// PPC:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000697// PPC:#define __ppc__ 1
698//
Daniel Dunbar1f95e652009-11-17 06:37:03 +0000699// RUN: clang-cc -E -dM -ffreestanding -triple=s390x-none-none -fsigned-char=0 < /dev/null | FileCheck -check-prefix S390X %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000700//
701// S390X:#define __CHAR_BIT__ 8
702// S390X:#define __CHAR_UNSIGNED__ 1
703// S390X:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
704// S390X:#define __DBL_DIG__ 15
705// S390X:#define __DBL_EPSILON__ 2.2204460492503131e-16
706// S390X:#define __DBL_HAS_DENORM__ 1
707// S390X:#define __DBL_HAS_INFINITY__ 1
708// S390X:#define __DBL_HAS_QUIET_NAN__ 1
709// S390X:#define __DBL_MANT_DIG__ 53
710// S390X:#define __DBL_MAX_10_EXP__ 308
711// S390X:#define __DBL_MAX_EXP__ 1024
712// S390X:#define __DBL_MAX__ 1.7976931348623157e+308
713// S390X:#define __DBL_MIN_10_EXP__ (-307)
714// S390X:#define __DBL_MIN_EXP__ (-1021)
715// S390X:#define __DBL_MIN__ 2.2250738585072014e-308
716// S390X:#define __DECIMAL_DIG__ 17
717// S390X:#define __FLT_DENORM_MIN__ 1.40129846e-45F
718// S390X:#define __FLT_DIG__ 6
719// S390X:#define __FLT_EPSILON__ 1.19209290e-7F
720// S390X:#define __FLT_EVAL_METHOD__ 0
721// S390X:#define __FLT_HAS_DENORM__ 1
722// S390X:#define __FLT_HAS_INFINITY__ 1
723// S390X:#define __FLT_HAS_QUIET_NAN__ 1
724// S390X:#define __FLT_MANT_DIG__ 24
725// S390X:#define __FLT_MAX_10_EXP__ 38
726// S390X:#define __FLT_MAX_EXP__ 128
727// S390X:#define __FLT_MAX__ 3.40282347e+38F
728// S390X:#define __FLT_MIN_10_EXP__ (-37)
729// S390X:#define __FLT_MIN_EXP__ (-125)
730// S390X:#define __FLT_MIN__ 1.17549435e-38F
731// S390X:#define __FLT_RADIX__ 2
732// S390X:#define __INT16_TYPE__ short
733// S390X:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000734// S390X:#define __INT64_C_SUFFIX__ L
Chris Lattnerdcdd2a02009-11-12 08:08:27 +0000735// S390X:#define __INT64_TYPE__ long int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000736// S390X:#define __INT8_TYPE__ char
737// S390X:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000738// S390X:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000739// S390X:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000740// S390X:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000741// S390X:#define __INTPTR_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +0000742// S390X:#define __INT_MAX__ 2147483647
743// S390X:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
744// S390X:#define __LDBL_DIG__ 15
745// S390X:#define __LDBL_EPSILON__ 2.2204460492503131e-16
746// S390X:#define __LDBL_HAS_DENORM__ 1
747// S390X:#define __LDBL_HAS_INFINITY__ 1
748// S390X:#define __LDBL_HAS_QUIET_NAN__ 1
749// S390X:#define __LDBL_MANT_DIG__ 53
750// S390X:#define __LDBL_MAX_10_EXP__ 308
751// S390X:#define __LDBL_MAX_EXP__ 1024
752// S390X:#define __LDBL_MAX__ 1.7976931348623157e+308
753// S390X:#define __LDBL_MIN_10_EXP__ (-307)
754// S390X:#define __LDBL_MIN_EXP__ (-1021)
755// S390X:#define __LDBL_MIN__ 2.2250738585072014e-308
756// S390X:#define __LONG_LONG_MAX__ 9223372036854775807LL
757// S390X:#define __LONG_MAX__ 9223372036854775807L
758// S390X:#define __NO_INLINE__ 1
759// S390X:#define __POINTER_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000760// S390X:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +0000761// S390X:#define __PTRDIFF_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +0000762// S390X:#define __SCHAR_MAX__ 127
763// S390X:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000764// S390X:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000765// S390X:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000766// S390X:#define __SIZE_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000767// S390X:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000768// S390X:#define __USER_LABEL_PREFIX__ _
769// S390X:#define __WCHAR_MAX__ 2147483647
770// S390X:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000771// S390X:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000772// S390X:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000773// S390X:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000774// S390X:#define __s390__ 1
775// S390X:#define __s390x__ 1
776//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000777// RUN: clang-cc -E -dM -ffreestanding -triple=sparc-none-none < /dev/null | FileCheck -check-prefix SPARC %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000778//
779// SPARC:#define __CHAR_BIT__ 8
780// SPARC:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
781// SPARC:#define __DBL_DIG__ 15
782// SPARC:#define __DBL_EPSILON__ 2.2204460492503131e-16
783// SPARC:#define __DBL_HAS_DENORM__ 1
784// SPARC:#define __DBL_HAS_INFINITY__ 1
785// SPARC:#define __DBL_HAS_QUIET_NAN__ 1
786// SPARC:#define __DBL_MANT_DIG__ 53
787// SPARC:#define __DBL_MAX_10_EXP__ 308
788// SPARC:#define __DBL_MAX_EXP__ 1024
789// SPARC:#define __DBL_MAX__ 1.7976931348623157e+308
790// SPARC:#define __DBL_MIN_10_EXP__ (-307)
791// SPARC:#define __DBL_MIN_EXP__ (-1021)
792// SPARC:#define __DBL_MIN__ 2.2250738585072014e-308
793// SPARC:#define __DECIMAL_DIG__ 17
794// SPARC:#define __FLT_DENORM_MIN__ 1.40129846e-45F
795// SPARC:#define __FLT_DIG__ 6
796// SPARC:#define __FLT_EPSILON__ 1.19209290e-7F
797// SPARC:#define __FLT_EVAL_METHOD__ 0
798// SPARC:#define __FLT_HAS_DENORM__ 1
799// SPARC:#define __FLT_HAS_INFINITY__ 1
800// SPARC:#define __FLT_HAS_QUIET_NAN__ 1
801// SPARC:#define __FLT_MANT_DIG__ 24
802// SPARC:#define __FLT_MAX_10_EXP__ 38
803// SPARC:#define __FLT_MAX_EXP__ 128
804// SPARC:#define __FLT_MAX__ 3.40282347e+38F
805// SPARC:#define __FLT_MIN_10_EXP__ (-37)
806// SPARC:#define __FLT_MIN_EXP__ (-125)
807// SPARC:#define __FLT_MIN__ 1.17549435e-38F
808// SPARC:#define __FLT_RADIX__ 2
809// SPARC:#define __INT16_TYPE__ short
810// SPARC:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000811// SPARC:#define __INT64_C_SUFFIX__ LL
Chris Lattnerbceaf862009-10-29 04:55:36 +0000812// SPARC:#define __INT64_TYPE__ long long int
813// SPARC:#define __INT8_TYPE__ char
814// SPARC:#define __INTMAX_MAX__ 9223372036854775807LL
Ken Dyck8241d732009-11-19 13:18:59 +0000815// SPARC:#define __INTMAX_TYPE__ long long int
Ken Dyck186696b2009-11-18 13:52:57 +0000816// SPARC:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000817// SPARC:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000818// SPARC:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000819// SPARC:#define __INT_MAX__ 2147483647
820// SPARC:#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324
821// SPARC:#define __LDBL_DIG__ 15
822// SPARC:#define __LDBL_EPSILON__ 2.2204460492503131e-16
823// SPARC:#define __LDBL_HAS_DENORM__ 1
824// SPARC:#define __LDBL_HAS_INFINITY__ 1
825// SPARC:#define __LDBL_HAS_QUIET_NAN__ 1
826// SPARC:#define __LDBL_MANT_DIG__ 53
827// SPARC:#define __LDBL_MAX_10_EXP__ 308
828// SPARC:#define __LDBL_MAX_EXP__ 1024
829// SPARC:#define __LDBL_MAX__ 1.7976931348623157e+308
830// SPARC:#define __LDBL_MIN_10_EXP__ (-307)
831// SPARC:#define __LDBL_MIN_EXP__ (-1021)
832// SPARC:#define __LDBL_MIN__ 2.2250738585072014e-308
833// SPARC:#define __LONG_LONG_MAX__ 9223372036854775807LL
834// SPARC:#define __LONG_MAX__ 2147483647L
835// SPARC:#define __NO_INLINE__ 1
836// SPARC:#define __POINTER_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000837// SPARC:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +0000838// SPARC:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000839// SPARC:#define __REGISTER_PREFIX__
840// SPARC:#define __SCHAR_MAX__ 127
841// SPARC:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000842// SPARC:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000843// SPARC:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000844// SPARC:#define __SIZE_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000845// SPARC:#define __UINTMAX_TYPE__ long long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000846// SPARC:#define __USER_LABEL_PREFIX__ _
847// SPARC:#define __VERSION__ "4.2.1 Compatible Clang Compiler"
848// SPARC:#define __WCHAR_MAX__ 2147483647
849// SPARC:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000850// SPARC:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000851// SPARC:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000852// SPARC:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000853// SPARC:#define __sparc 1
854// SPARC:#define __sparc__ 1
855// SPARC:#define __sparcv8 1
856// SPARC:#define sparc 1
857//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000858// RUN: clang-cc -E -dM -ffreestanding -triple=tce-none-none < /dev/null | FileCheck -check-prefix TCE %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000859//
860// TCE:#define __CHAR_BIT__ 8
861// TCE:#define __DBL_DENORM_MIN__ 1.40129846e-45F
862// TCE:#define __DBL_DIG__ 6
863// TCE:#define __DBL_EPSILON__ 1.19209290e-7F
864// TCE:#define __DBL_HAS_DENORM__ 1
865// TCE:#define __DBL_HAS_INFINITY__ 1
866// TCE:#define __DBL_HAS_QUIET_NAN__ 1
867// TCE:#define __DBL_MANT_DIG__ 24
868// TCE:#define __DBL_MAX_10_EXP__ 38
869// TCE:#define __DBL_MAX_EXP__ 128
870// TCE:#define __DBL_MAX__ 3.40282347e+38F
871// TCE:#define __DBL_MIN_10_EXP__ (-37)
872// TCE:#define __DBL_MIN_EXP__ (-125)
873// TCE:#define __DBL_MIN__ 1.17549435e-38F
874// TCE:#define __DECIMAL_DIG__ -1
875// TCE:#define __FLT_DENORM_MIN__ 1.40129846e-45F
876// TCE:#define __FLT_DIG__ 6
877// TCE:#define __FLT_EPSILON__ 1.19209290e-7F
878// TCE:#define __FLT_EVAL_METHOD__ 0
879// TCE:#define __FLT_HAS_DENORM__ 1
880// TCE:#define __FLT_HAS_INFINITY__ 1
881// TCE:#define __FLT_HAS_QUIET_NAN__ 1
882// TCE:#define __FLT_MANT_DIG__ 24
883// TCE:#define __FLT_MAX_10_EXP__ 38
884// TCE:#define __FLT_MAX_EXP__ 128
885// TCE:#define __FLT_MAX__ 3.40282347e+38F
886// TCE:#define __FLT_MIN_10_EXP__ (-37)
887// TCE:#define __FLT_MIN_EXP__ (-125)
888// TCE:#define __FLT_MIN__ 1.17549435e-38F
889// TCE:#define __FLT_RADIX__ 2
890// TCE:#define __INT16_TYPE__ short
891// TCE:#define __INT32_TYPE__ int
892// TCE:#define __INT8_TYPE__ char
893// TCE:#define __INTMAX_MAX__ 2147483647L
Ken Dyck8241d732009-11-19 13:18:59 +0000894// TCE:#define __INTMAX_TYPE__ long int
Ken Dyck186696b2009-11-18 13:52:57 +0000895// TCE:#define __INTMAX_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000896// TCE:#define __INTPTR_TYPE__ int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000897// TCE:#define __INTPTR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000898// TCE:#define __INT_MAX__ 2147483647
899// TCE:#define __LDBL_DENORM_MIN__ 1.40129846e-45F
900// TCE:#define __LDBL_DIG__ 6
901// TCE:#define __LDBL_EPSILON__ 1.19209290e-7F
902// TCE:#define __LDBL_HAS_DENORM__ 1
903// TCE:#define __LDBL_HAS_INFINITY__ 1
904// TCE:#define __LDBL_HAS_QUIET_NAN__ 1
905// TCE:#define __LDBL_MANT_DIG__ 24
906// TCE:#define __LDBL_MAX_10_EXP__ 38
907// TCE:#define __LDBL_MAX_EXP__ 128
908// TCE:#define __LDBL_MAX__ 3.40282347e+38F
909// TCE:#define __LDBL_MIN_10_EXP__ (-37)
910// TCE:#define __LDBL_MIN_EXP__ (-125)
911// TCE:#define __LDBL_MIN__ 1.17549435e-38F
912// TCE:#define __LONG_LONG_MAX__ 2147483647LL
913// TCE:#define __LONG_MAX__ 2147483647L
914// TCE:#define __NO_INLINE__ 1
915// TCE:#define __POINTER_WIDTH__ 32
Ken Dyck8241d732009-11-19 13:18:59 +0000916// TCE:#define __PTRDIFF_TYPE__ int
Ken Dyckd00c7512009-11-19 12:21:52 +0000917// TCE:#define __PTRDIFF_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000918// TCE:#define __SCHAR_MAX__ 127
919// TCE:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +0000920// TCE:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000921// TCE:#define __SIZE_TYPE__ unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +0000922// TCE:#define __SIZE_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000923// TCE:#define __TCE_V1__ 1
924// TCE:#define __TCE__ 1
Ken Dyck8241d732009-11-19 13:18:59 +0000925// TCE:#define __UINTMAX_TYPE__ long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +0000926// TCE:#define __USER_LABEL_PREFIX__ _
927// TCE:#define __WCHAR_MAX__ 2147483647
928// TCE:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +0000929// TCE:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000930// TCE:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +0000931// TCE:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +0000932// TCE:#define __tce 1
933// TCE:#define __tce__ 1
934// TCE:#define tce 1
935//
Daniel Dunbar4fcfde42009-11-08 01:45:36 +0000936// RUN: clang-cc -E -dM -ffreestanding -triple=x86_64-none-none < /dev/null | FileCheck -check-prefix X86_64 %s
Chris Lattnerbceaf862009-10-29 04:55:36 +0000937//
938// X86_64:#define _LP64 1
939// X86_64:#define __CHAR_BIT__ 8
940// X86_64:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
941// X86_64:#define __DBL_DIG__ 15
942// X86_64:#define __DBL_EPSILON__ 2.2204460492503131e-16
943// X86_64:#define __DBL_HAS_DENORM__ 1
944// X86_64:#define __DBL_HAS_INFINITY__ 1
945// X86_64:#define __DBL_HAS_QUIET_NAN__ 1
946// X86_64:#define __DBL_MANT_DIG__ 53
947// X86_64:#define __DBL_MAX_10_EXP__ 308
948// X86_64:#define __DBL_MAX_EXP__ 1024
949// X86_64:#define __DBL_MAX__ 1.7976931348623157e+308
950// X86_64:#define __DBL_MIN_10_EXP__ (-307)
951// X86_64:#define __DBL_MIN_EXP__ (-1021)
952// X86_64:#define __DBL_MIN__ 2.2250738585072014e-308
953// X86_64:#define __DECIMAL_DIG__ 21
954// X86_64:#define __FLT_DENORM_MIN__ 1.40129846e-45F
955// X86_64:#define __FLT_DIG__ 6
956// X86_64:#define __FLT_EPSILON__ 1.19209290e-7F
957// X86_64:#define __FLT_EVAL_METHOD__ 0
958// X86_64:#define __FLT_HAS_DENORM__ 1
959// X86_64:#define __FLT_HAS_INFINITY__ 1
960// X86_64:#define __FLT_HAS_QUIET_NAN__ 1
961// X86_64:#define __FLT_MANT_DIG__ 24
962// X86_64:#define __FLT_MAX_10_EXP__ 38
963// X86_64:#define __FLT_MAX_EXP__ 128
964// X86_64:#define __FLT_MAX__ 3.40282347e+38F
965// X86_64:#define __FLT_MIN_10_EXP__ (-37)
966// X86_64:#define __FLT_MIN_EXP__ (-125)
967// X86_64:#define __FLT_MIN__ 1.17549435e-38F
968// X86_64:#define __FLT_RADIX__ 2
969// X86_64:#define __INT16_TYPE__ short
970// X86_64:#define __INT32_TYPE__ int
Ken Dyckeef22ef2009-11-16 16:36:33 +0000971// X86_64:#define __INT64_C_SUFFIX__ L
Chris Lattnerbceaf862009-10-29 04:55:36 +0000972// X86_64:#define __INT64_TYPE__ long int
973// X86_64:#define __INT8_TYPE__ char
974// X86_64:#define __INTMAX_MAX__ 9223372036854775807L
Ken Dyck8241d732009-11-19 13:18:59 +0000975// X86_64:#define __INTMAX_TYPE__ long int
Ken Dyck186696b2009-11-18 13:52:57 +0000976// X86_64:#define __INTMAX_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +0000977// X86_64:#define __INTPTR_TYPE__ long int
Ken Dyckd896e1a2009-11-18 20:05:48 +0000978// X86_64:#define __INTPTR_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +0000979// X86_64:#define __INT_MAX__ 2147483647
980// X86_64:#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
981// X86_64:#define __LDBL_DIG__ 18
982// X86_64:#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
983// X86_64:#define __LDBL_HAS_DENORM__ 1
984// X86_64:#define __LDBL_HAS_INFINITY__ 1
985// X86_64:#define __LDBL_HAS_QUIET_NAN__ 1
986// X86_64:#define __LDBL_MANT_DIG__ 64
987// X86_64:#define __LDBL_MAX_10_EXP__ 4932
988// X86_64:#define __LDBL_MAX_EXP__ 16384
989// X86_64:#define __LDBL_MAX__ 1.18973149535723176502e+4932L
990// X86_64:#define __LDBL_MIN_10_EXP__ (-4931)
991// X86_64:#define __LDBL_MIN_EXP__ (-16381)
992// X86_64:#define __LDBL_MIN__ 3.36210314311209350626e-4932L
993// X86_64:#define __LITTLE_ENDIAN__ 1
994// X86_64:#define __LONG_LONG_MAX__ 9223372036854775807LL
995// X86_64:#define __LONG_MAX__ 9223372036854775807L
996// X86_64:#define __LP64__ 1
997// X86_64:#define __MMX__ 1
998// X86_64:#define __NO_INLINE__ 1
999// X86_64:#define __NO_MATH_INLINES 1
1000// X86_64:#define __POINTER_WIDTH__ 64
Ken Dyck8241d732009-11-19 13:18:59 +00001001// X86_64:#define __PTRDIFF_TYPE__ long int
Ken Dyckd00c7512009-11-19 12:21:52 +00001002// X86_64:#define __PTRDIFF_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +00001003// X86_64:#define __REGISTER_PREFIX__
1004// X86_64:#define __SCHAR_MAX__ 127
1005// X86_64:#define __SHRT_MAX__ 32767
Ken Dyck3e945c82009-11-22 15:41:04 +00001006// X86_64:#define __SIG_ATOMIC_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +00001007// X86_64:#define __SIZE_TYPE__ long unsigned int
Ken Dyck7484e5d2009-11-19 13:42:09 +00001008// X86_64:#define __SIZE_WIDTH__ 64
Chris Lattnerbceaf862009-10-29 04:55:36 +00001009// X86_64:#define __SSE2_MATH__ 1
1010// X86_64:#define __SSE2__ 1
1011// X86_64:#define __SSE_MATH__ 1
1012// X86_64:#define __SSE__ 1
Ken Dyck8241d732009-11-19 13:18:59 +00001013// X86_64:#define __UINTMAX_TYPE__ long unsigned int
Chris Lattnerbceaf862009-10-29 04:55:36 +00001014// X86_64:#define __USER_LABEL_PREFIX__ _
1015// X86_64:#define __WCHAR_MAX__ 2147483647
1016// X86_64:#define __WCHAR_TYPE__ int
Ken Dyck63e65612009-11-19 15:47:58 +00001017// X86_64:#define __WCHAR_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +00001018// X86_64:#define __WINT_TYPE__ int
Ken Dyck7635d212009-11-19 14:16:57 +00001019// X86_64:#define __WINT_WIDTH__ 32
Chris Lattnerbceaf862009-10-29 04:55:36 +00001020// X86_64:#define __amd64 1
1021// X86_64:#define __amd64__ 1
1022// X86_64:#define __nocona 1
1023// X86_64:#define __nocona__ 1
1024// X86_64:#define __tune_nocona__ 1
1025// X86_64:#define __x86_64 1
1026// X86_64:#define __x86_64__ 1
1027//