Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 1
//===--- BuiltinsARM.def - ARM Builtin function database ----*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file defines the ARM-specific builtin function database.  Users of
10
// this file must define the BUILTIN macro to make use of this information.
11
//
12
//===----------------------------------------------------------------------===//
13
 
14
// The format of this database matches clang/Basic/Builtins.def.
15
 
16
#if defined(BUILTIN) && !defined(LANGBUILTIN)
17
#   define LANGBUILTIN(ID, TYPE, ATTRS, BUILTIN_LANG) BUILTIN(ID, TYPE, ATTRS)
18
#endif
19
 
20
#if defined(BUILTIN) && !defined(TARGET_BUILTIN)
21
#  define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) BUILTIN(ID, TYPE, ATTRS)
22
#endif
23
 
24
#if defined(BUILTIN) && !defined(TARGET_HEADER_BUILTIN)
25
#  define TARGET_HEADER_BUILTIN(ID, TYPE, ATTRS, HEADER, LANG, FEATURE) BUILTIN(ID, TYPE, ATTRS)
26
#endif
27
 
28
// In libgcc
29
BUILTIN(__clear_cache, "vv*v*", "i")
30
 
31
// 16-bit multiplications
32
BUILTIN(__builtin_arm_smulbb, "iii", "nc")
33
BUILTIN(__builtin_arm_smulbt, "iii", "nc")
34
BUILTIN(__builtin_arm_smultb, "iii", "nc")
35
BUILTIN(__builtin_arm_smultt, "iii", "nc")
36
BUILTIN(__builtin_arm_smulwb, "iii", "nc")
37
BUILTIN(__builtin_arm_smulwt, "iii", "nc")
38
 
39
// Saturating arithmetic
40
BUILTIN(__builtin_arm_qadd, "iii", "nc")
41
BUILTIN(__builtin_arm_qsub, "iii", "nc")
42
BUILTIN(__builtin_arm_qdbl, "ii", "nc")
43
BUILTIN(__builtin_arm_ssat, "iiUi", "nc")
44
BUILTIN(__builtin_arm_usat, "UiiUi", "nc")
45
 
46
BUILTIN(__builtin_arm_smlabb, "iiii", "nc")
47
BUILTIN(__builtin_arm_smlabt, "iiii", "nc")
48
BUILTIN(__builtin_arm_smlatb, "iiii", "nc")
49
BUILTIN(__builtin_arm_smlatt, "iiii", "nc")
50
BUILTIN(__builtin_arm_smlawb, "iiii", "nc")
51
BUILTIN(__builtin_arm_smlawt, "iiii", "nc")
52
 
53
BUILTIN(__builtin_arm_ssat16, "iii", "nc")
54
BUILTIN(__builtin_arm_usat16, "iii", "nc")
55
 
56
BUILTIN(__builtin_arm_sxtab16, "iii", "nc")
57
BUILTIN(__builtin_arm_sxtb16, "ii", "nc")
58
BUILTIN(__builtin_arm_uxtab16, "iii", "nc")
59
BUILTIN(__builtin_arm_uxtb16, "ii", "nc")
60
 
61
BUILTIN(__builtin_arm_sel, "iii", "nc")
62
 
63
BUILTIN(__builtin_arm_qadd8, "iii", "nc")
64
BUILTIN(__builtin_arm_qsub8, "iii", "nc")
65
BUILTIN(__builtin_arm_sadd8, "iii", "nc")
66
BUILTIN(__builtin_arm_shadd8, "iii", "nc")
67
BUILTIN(__builtin_arm_shsub8, "iii", "nc")
68
BUILTIN(__builtin_arm_ssub8, "iii", "nc")
69
BUILTIN(__builtin_arm_uadd8, "UiUiUi", "nc")
70
BUILTIN(__builtin_arm_uhadd8, "UiUiUi", "nc")
71
BUILTIN(__builtin_arm_uhsub8, "UiUiUi", "nc")
72
BUILTIN(__builtin_arm_uqadd8, "UiUiUi", "nc")
73
BUILTIN(__builtin_arm_uqsub8, "UiUiUi", "nc")
74
BUILTIN(__builtin_arm_usub8, "UiUiUi", "nc")
75
 
76
// Sum of 8-bit absolute differences
77
BUILTIN(__builtin_arm_usad8, "UiUiUi", "nc")
78
BUILTIN(__builtin_arm_usada8, "UiUiUiUi", "nc")
79
 
80
// Parallel 16-bit addition and subtraction
81
BUILTIN(__builtin_arm_qadd16, "iii", "nc")
82
BUILTIN(__builtin_arm_qasx, "iii", "nc")
83
BUILTIN(__builtin_arm_qsax, "iii", "nc")
84
BUILTIN(__builtin_arm_qsub16, "iii", "nc")
85
BUILTIN(__builtin_arm_sadd16, "iii", "nc")
86
BUILTIN(__builtin_arm_sasx, "iii", "nc")
87
BUILTIN(__builtin_arm_shadd16, "iii", "nc")
88
BUILTIN(__builtin_arm_shasx, "iii", "nc")
89
BUILTIN(__builtin_arm_shsax, "iii", "nc")
90
BUILTIN(__builtin_arm_shsub16, "iii", "nc")
91
BUILTIN(__builtin_arm_ssax, "iii", "nc")
92
BUILTIN(__builtin_arm_ssub16, "iii", "nc")
93
BUILTIN(__builtin_arm_uadd16, "UiUiUi", "nc")
94
BUILTIN(__builtin_arm_uasx, "UiUiUi", "nc")
95
BUILTIN(__builtin_arm_uhadd16, "UiUiUi", "nc")
96
BUILTIN(__builtin_arm_uhasx, "UiUiUi", "nc")
97
BUILTIN(__builtin_arm_uhsax, "UiUiUi", "nc")
98
BUILTIN(__builtin_arm_uhsub16, "UiUiUi", "nc")
99
BUILTIN(__builtin_arm_uqadd16, "UiUiUi", "nc")
100
BUILTIN(__builtin_arm_uqasx, "UiUiUi", "nc")
101
BUILTIN(__builtin_arm_uqsax, "UiUiUi", "nc")
102
BUILTIN(__builtin_arm_uqsub16, "UiUiUi", "nc")
103
BUILTIN(__builtin_arm_usax, "UiUiUi", "nc")
104
BUILTIN(__builtin_arm_usub16, "UiUiUi", "nc")
105
 
106
// Parallel 16-bit multiplication
107
BUILTIN(__builtin_arm_smlad, "iiii", "nc")
108
BUILTIN(__builtin_arm_smladx, "iiii", "nc")
109
BUILTIN(__builtin_arm_smlald, "LLiiiLLi", "nc")
110
BUILTIN(__builtin_arm_smlaldx, "LLiiiLLi", "nc")
111
BUILTIN(__builtin_arm_smlsd, "iiii", "nc")
112
BUILTIN(__builtin_arm_smlsdx, "iiii", "nc")
113
BUILTIN(__builtin_arm_smlsld, "LLiiiLLi", "nc")
114
BUILTIN(__builtin_arm_smlsldx, "LLiiiLLi", "nc")
115
BUILTIN(__builtin_arm_smuad, "iii", "nc")
116
BUILTIN(__builtin_arm_smuadx, "iii", "nc")
117
BUILTIN(__builtin_arm_smusd, "iii", "nc")
118
BUILTIN(__builtin_arm_smusdx, "iii", "nc")
119
 
120
// Bit manipulation
121
BUILTIN(__builtin_arm_rbit, "UiUi", "nc")
122
BUILTIN(__builtin_arm_cls, "UiZUi", "nc")
123
BUILTIN(__builtin_arm_cls64, "UiWUi", "nc")
124
 
125
// Store and load exclusive
126
BUILTIN(__builtin_arm_ldrexd, "LLUiv*", "")
127
BUILTIN(__builtin_arm_strexd, "iLLUiv*", "")
128
 
129
BUILTIN(__builtin_arm_ldrex, "v.", "t")
130
BUILTIN(__builtin_arm_ldaex, "v.", "t")
131
BUILTIN(__builtin_arm_strex, "i.", "t")
132
BUILTIN(__builtin_arm_stlex, "i.", "t")
133
BUILTIN(__builtin_arm_clrex, "v", "")
134
 
135
// VFP
136
BUILTIN(__builtin_arm_get_fpscr, "Ui", "nc")
137
BUILTIN(__builtin_arm_set_fpscr, "vUi", "nc")
138
BUILTIN(__builtin_arm_vcvtr_f, "ffi", "nc")
139
BUILTIN(__builtin_arm_vcvtr_d, "fdi", "nc")
140
 
141
// Coprocessor
142
BUILTIN(__builtin_arm_ldc, "vUIiUIivC*", "")
143
BUILTIN(__builtin_arm_ldcl, "vUIiUIivC*", "")
144
BUILTIN(__builtin_arm_ldc2, "vUIiUIivC*", "")
145
BUILTIN(__builtin_arm_ldc2l, "vUIiUIivC*", "")
146
 
147
BUILTIN(__builtin_arm_stc, "vUIiUIiv*", "")
148
BUILTIN(__builtin_arm_stcl, "vUIiUIiv*", "")
149
BUILTIN(__builtin_arm_stc2, "vUIiUIiv*", "")
150
BUILTIN(__builtin_arm_stc2l, "vUIiUIiv*", "")
151
 
152
BUILTIN(__builtin_arm_cdp, "vUIiUIiUIiUIiUIiUIi", "")
153
BUILTIN(__builtin_arm_cdp2, "vUIiUIiUIiUIiUIiUIi", "")
154
BUILTIN(__builtin_arm_mcr, "vUIiUIiUiUIiUIiUIi", "")
155
BUILTIN(__builtin_arm_mcr2, "vUIiUIiUiUIiUIiUIi", "")
156
BUILTIN(__builtin_arm_mrc, "UiUIiUIiUIiUIiUIi", "")
157
BUILTIN(__builtin_arm_mrc2, "UiUIiUIiUIiUIiUIi", "")
158
BUILTIN(__builtin_arm_mcrr, "vUIiUIiLLUiUIi", "")
159
BUILTIN(__builtin_arm_mcrr2, "vUIiUIiLLUiUIi", "")
160
BUILTIN(__builtin_arm_mrrc, "LLUiUIiUIiUIi", "")
161
BUILTIN(__builtin_arm_mrrc2, "LLUiUIiUIiUIi", "")
162
 
163
// CRC32
164
TARGET_BUILTIN(__builtin_arm_crc32b, "UiUiUc", "nc", "crc")
165
TARGET_BUILTIN(__builtin_arm_crc32cb, "UiUiUc", "nc", "crc")
166
TARGET_BUILTIN(__builtin_arm_crc32h, "UiUiUs", "nc", "crc")
167
TARGET_BUILTIN(__builtin_arm_crc32ch, "UiUiUs", "nc", "crc")
168
TARGET_BUILTIN(__builtin_arm_crc32w, "UiUiUi", "nc", "crc")
169
TARGET_BUILTIN(__builtin_arm_crc32cw, "UiUiUi", "nc", "crc")
170
TARGET_BUILTIN(__builtin_arm_crc32d, "UiUiLLUi", "nc", "crc")
171
TARGET_BUILTIN(__builtin_arm_crc32cd, "UiUiLLUi", "nc", "crc")
172
 
173
// ARMv8-M Security Extensions a.k.a CMSE
174
BUILTIN(__builtin_arm_cmse_TT, "Uiv*", "n")
175
BUILTIN(__builtin_arm_cmse_TTT, "Uiv*", "n")
176
BUILTIN(__builtin_arm_cmse_TTA, "Uiv*", "n")
177
BUILTIN(__builtin_arm_cmse_TTAT, "Uiv*", "n")
178
 
179
// HINT
180
BUILTIN(__builtin_arm_nop, "v", "")
181
BUILTIN(__builtin_arm_yield, "v", "")
182
BUILTIN(__builtin_arm_wfe, "v", "")
183
BUILTIN(__builtin_arm_wfi, "v", "")
184
BUILTIN(__builtin_arm_sev, "v", "")
185
BUILTIN(__builtin_arm_sevl, "v", "")
186
BUILTIN(__builtin_arm_dbg, "vUi", "")
187
 
188
// Data barrier
189
BUILTIN(__builtin_arm_dmb, "vUi", "nc")
190
BUILTIN(__builtin_arm_dsb, "vUi", "nc")
191
BUILTIN(__builtin_arm_isb, "vUi", "nc")
192
 
193
// Prefetch
194
BUILTIN(__builtin_arm_prefetch, "vvC*UiUi", "nc")
195
 
196
// System registers (ACLE)
197
BUILTIN(__builtin_arm_rsr, "UicC*", "nc")
198
BUILTIN(__builtin_arm_rsr64, "LLUicC*", "nc")
199
BUILTIN(__builtin_arm_rsrp, "v*cC*", "nc")
200
BUILTIN(__builtin_arm_wsr, "vcC*Ui", "nc")
201
BUILTIN(__builtin_arm_wsr64, "vcC*LLUi", "nc")
202
BUILTIN(__builtin_arm_wsrp, "vcC*vC*", "nc")
203
 
204
// Misc
205
BUILTIN(__builtin_sponentry, "v*", "c")
206
 
207
// Builtins for implementing ACLE MVE intrinsics. (Unlike NEON, these
208
// don't need to live in a separate BuiltinsMVE.def, because they
209
// aren't included from both here and BuiltinsAArch64.def.)
210
#include "clang/Basic/arm_mve_builtins.inc"
211
 
212
#include "clang/Basic/arm_cde_builtins.inc"
213
 
214
// MSVC
215
LANGBUILTIN(__emit, "vIUiC", "", ALL_MS_LANGUAGES)
216
 
217
LANGBUILTIN(__yield, "v", "", ALL_MS_LANGUAGES)
218
LANGBUILTIN(__wfe, "v", "", ALL_MS_LANGUAGES)
219
LANGBUILTIN(__wfi, "v", "", ALL_MS_LANGUAGES)
220
LANGBUILTIN(__sev, "v", "", ALL_MS_LANGUAGES)
221
LANGBUILTIN(__sevl, "v", "", ALL_MS_LANGUAGES)
222
 
223
LANGBUILTIN(__dmb, "vUi", "nc", ALL_MS_LANGUAGES)
224
LANGBUILTIN(__dsb, "vUi", "nc", ALL_MS_LANGUAGES)
225
LANGBUILTIN(__isb, "vUi", "nc", ALL_MS_LANGUAGES)
226
LANGBUILTIN(__ldrexd, "WiWiCD*", "", ALL_MS_LANGUAGES)
227
LANGBUILTIN(_MoveFromCoprocessor, "UiIUiIUiIUiIUiIUi", "", ALL_MS_LANGUAGES)
228
LANGBUILTIN(_MoveFromCoprocessor2, "UiIUiIUiIUiIUiIUi", "", ALL_MS_LANGUAGES)
229
LANGBUILTIN(_MoveToCoprocessor, "vUiIUiIUiIUiIUiIUi", "", ALL_MS_LANGUAGES)
230
LANGBUILTIN(_MoveToCoprocessor2, "vUiIUiIUiIUiIUiIUi", "", ALL_MS_LANGUAGES)
231
 
232
TARGET_HEADER_BUILTIN(_BitScanForward, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
233
TARGET_HEADER_BUILTIN(_BitScanReverse, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
234
TARGET_HEADER_BUILTIN(_BitScanForward64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
235
TARGET_HEADER_BUILTIN(_BitScanReverse64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
236
 
237
TARGET_HEADER_BUILTIN(_InterlockedAnd64,         "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
238
TARGET_HEADER_BUILTIN(_InterlockedDecrement64,   "LLiLLiD*",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
239
TARGET_HEADER_BUILTIN(_InterlockedExchange64,    "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
240
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
241
TARGET_HEADER_BUILTIN(_InterlockedExchangeSub64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
242
TARGET_HEADER_BUILTIN(_InterlockedIncrement64,   "LLiLLiD*",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
243
TARGET_HEADER_BUILTIN(_InterlockedOr64,          "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
244
TARGET_HEADER_BUILTIN(_InterlockedXor64,         "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
245
 
246
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd_acq, "NiNiD*Ni", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
247
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd_rel, "NiNiD*Ni", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
248
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd_nf, "NiNiD*Ni", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
249
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd8_acq, "ccD*c", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
250
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd8_rel, "ccD*c", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
251
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd8_nf, "ccD*c", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
252
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd16_acq, "ssD*s", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
253
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd16_rel, "ssD*s", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
254
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd16_nf, "ssD*s", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
255
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64_acq, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
256
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64_rel, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
257
TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64_nf, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
258
 
259
TARGET_HEADER_BUILTIN(_InterlockedExchange8_acq,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
260
TARGET_HEADER_BUILTIN(_InterlockedExchange8_nf,   "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
261
TARGET_HEADER_BUILTIN(_InterlockedExchange8_rel,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
262
TARGET_HEADER_BUILTIN(_InterlockedExchange16_acq, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
263
TARGET_HEADER_BUILTIN(_InterlockedExchange16_nf,  "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
264
TARGET_HEADER_BUILTIN(_InterlockedExchange16_rel, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
265
TARGET_HEADER_BUILTIN(_InterlockedExchange_acq,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
266
TARGET_HEADER_BUILTIN(_InterlockedExchange_nf,    "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
267
TARGET_HEADER_BUILTIN(_InterlockedExchange_rel,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
268
TARGET_HEADER_BUILTIN(_InterlockedExchange64_acq, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
269
TARGET_HEADER_BUILTIN(_InterlockedExchange64_nf,  "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
270
TARGET_HEADER_BUILTIN(_InterlockedExchange64_rel, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
271
 
272
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange8_acq,  "ccD*cc",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
273
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange8_nf,   "ccD*cc",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
274
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange8_rel,  "ccD*cc",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
275
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange16_acq, "ssD*ss",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
276
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange16_nf,  "ssD*ss",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
277
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange16_rel, "ssD*ss",         "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
278
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange_acq,   "NiNiD*NiNi",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
279
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange_nf,    "NiNiD*NiNi",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
280
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange_rel,   "NiNiD*NiNi",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
281
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange64_acq, "LLiLLiD*LLiLLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
282
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange64_nf,  "LLiLLiD*LLiLLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
283
TARGET_HEADER_BUILTIN(_InterlockedCompareExchange64_rel, "LLiLLiD*LLiLLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
284
 
285
TARGET_HEADER_BUILTIN(_InterlockedOr8_acq,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
286
TARGET_HEADER_BUILTIN(_InterlockedOr8_nf,   "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
287
TARGET_HEADER_BUILTIN(_InterlockedOr8_rel,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
288
TARGET_HEADER_BUILTIN(_InterlockedOr16_acq, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
289
TARGET_HEADER_BUILTIN(_InterlockedOr16_nf,  "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
290
TARGET_HEADER_BUILTIN(_InterlockedOr16_rel, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
291
TARGET_HEADER_BUILTIN(_InterlockedOr_acq,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
292
TARGET_HEADER_BUILTIN(_InterlockedOr_nf,    "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
293
TARGET_HEADER_BUILTIN(_InterlockedOr_rel,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
294
TARGET_HEADER_BUILTIN(_InterlockedOr64_acq, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
295
TARGET_HEADER_BUILTIN(_InterlockedOr64_nf,  "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
296
TARGET_HEADER_BUILTIN(_InterlockedOr64_rel, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
297
 
298
TARGET_HEADER_BUILTIN(_InterlockedXor8_acq,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
299
TARGET_HEADER_BUILTIN(_InterlockedXor8_nf,   "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
300
TARGET_HEADER_BUILTIN(_InterlockedXor8_rel,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
301
TARGET_HEADER_BUILTIN(_InterlockedXor16_acq, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
302
TARGET_HEADER_BUILTIN(_InterlockedXor16_nf,  "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
303
TARGET_HEADER_BUILTIN(_InterlockedXor16_rel, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
304
TARGET_HEADER_BUILTIN(_InterlockedXor_acq,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
305
TARGET_HEADER_BUILTIN(_InterlockedXor_nf,    "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
306
TARGET_HEADER_BUILTIN(_InterlockedXor_rel,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
307
TARGET_HEADER_BUILTIN(_InterlockedXor64_acq, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
308
TARGET_HEADER_BUILTIN(_InterlockedXor64_nf,  "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
309
TARGET_HEADER_BUILTIN(_InterlockedXor64_rel, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
310
 
311
TARGET_HEADER_BUILTIN(_InterlockedAnd8_acq,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
312
TARGET_HEADER_BUILTIN(_InterlockedAnd8_nf,   "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
313
TARGET_HEADER_BUILTIN(_InterlockedAnd8_rel,  "ccD*c",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
314
TARGET_HEADER_BUILTIN(_InterlockedAnd16_acq, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
315
TARGET_HEADER_BUILTIN(_InterlockedAnd16_nf,  "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
316
TARGET_HEADER_BUILTIN(_InterlockedAnd16_rel, "ssD*s",       "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
317
TARGET_HEADER_BUILTIN(_InterlockedAnd_acq,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
318
TARGET_HEADER_BUILTIN(_InterlockedAnd_nf,    "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
319
TARGET_HEADER_BUILTIN(_InterlockedAnd_rel,   "NiNiD*Ni",    "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
320
TARGET_HEADER_BUILTIN(_InterlockedAnd64_acq, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
321
TARGET_HEADER_BUILTIN(_InterlockedAnd64_nf,  "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
322
TARGET_HEADER_BUILTIN(_InterlockedAnd64_rel, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
323
 
324
TARGET_HEADER_BUILTIN(_InterlockedIncrement16_acq, "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
325
TARGET_HEADER_BUILTIN(_InterlockedIncrement16_nf,  "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
326
TARGET_HEADER_BUILTIN(_InterlockedIncrement16_rel, "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
327
TARGET_HEADER_BUILTIN(_InterlockedIncrement_acq,   "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
328
TARGET_HEADER_BUILTIN(_InterlockedIncrement_nf,    "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
329
TARGET_HEADER_BUILTIN(_InterlockedIncrement_rel,   "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
330
TARGET_HEADER_BUILTIN(_InterlockedIncrement64_acq, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
331
TARGET_HEADER_BUILTIN(_InterlockedIncrement64_nf,  "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
332
TARGET_HEADER_BUILTIN(_InterlockedIncrement64_rel, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
333
 
334
TARGET_HEADER_BUILTIN(_InterlockedDecrement16_acq, "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
335
TARGET_HEADER_BUILTIN(_InterlockedDecrement16_nf,  "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
336
TARGET_HEADER_BUILTIN(_InterlockedDecrement16_rel, "ssD*",     "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
337
TARGET_HEADER_BUILTIN(_InterlockedDecrement_acq,   "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
338
TARGET_HEADER_BUILTIN(_InterlockedDecrement_nf,    "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
339
TARGET_HEADER_BUILTIN(_InterlockedDecrement_rel,   "NiNiD*",   "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
340
TARGET_HEADER_BUILTIN(_InterlockedDecrement64_acq, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
341
TARGET_HEADER_BUILTIN(_InterlockedDecrement64_nf,  "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
342
TARGET_HEADER_BUILTIN(_InterlockedDecrement64_rel, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "")
343
 
344
#undef BUILTIN
345
#undef LANGBUILTIN
346
#undef TARGET_HEADER_BUILTIN