• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/

Lines Matching defs:X86

1 //===-- X86BaseInfo.h - Top level definitions for X86 -------- --*- C++ -*-===//
10 // the X86 target useful for the compiler back-end and the MC libraries.
26 namespace X86 {
73 // X86 specific condition code. These correspond to X86_*_COND in
139 case X86::TEST16i16:
140 case X86::TEST16mr:
141 case X86::TEST16ri:
142 case X86::TEST16rr:
143 case X86::TEST32i32:
144 case X86::TEST32mr:
145 case X86::TEST32ri:
146 case X86::TEST32rr:
147 case X86::TEST64i32:
148 case X86::TEST64mr:
149 case X86::TEST64ri32:
150 case X86::TEST64rr:
151 case X86::TEST8i8:
152 case X86::TEST8mr:
153 case X86::TEST8ri:
154 case X86::TEST8rr:
156 case X86::AND16i16:
157 case X86::AND16ri:
158 case X86::AND16ri8:
159 case X86::AND16rm:
160 case X86::AND16rr:
161 case X86::AND16rr_REV:
162 case X86::AND32i32:
163 case X86::AND32ri:
164 case X86::AND32ri8:
165 case X86::AND32rm:
166 case X86::AND32rr:
167 case X86::AND32rr_REV:
168 case X86::AND64i32:
169 case X86::AND64ri32:
170 case X86::AND64ri8:
171 case X86::AND64rm:
172 case X86::AND64rr:
173 case X86::AND64rr_REV:
174 case X86::AND8i8:
175 case X86::AND8ri:
176 case X86::AND8ri8:
177 case X86::AND8rm:
178 case X86::AND8rr:
179 case X86::AND8rr_REV:
182 case X86::CMP16i16:
183 case X86::CMP16mr:
184 case X86::CMP16ri:
185 case X86::CMP16ri8:
186 case X86::CMP16rm:
187 case X86::CMP16rr:
188 case X86::CMP16rr_REV:
189 case X86::CMP32i32:
190 case X86::CMP32mr:
191 case X86::CMP32ri:
192 case X86::CMP32ri8:
193 case X86::CMP32rm:
194 case X86::CMP32rr:
195 case X86::CMP32rr_REV:
196 case X86::CMP64i32:
197 case X86::CMP64mr:
198 case X86::CMP64ri32:
199 case X86::CMP64ri8:
200 case X86::CMP64rm:
201 case X86::CMP64rr:
202 case X86::CMP64rr_REV:
203 case X86::CMP8i8:
204 case X86::CMP8mr:
205 case X86::CMP8ri:
206 case X86::CMP8ri8:
207 case X86::CMP8rm:
208 case X86::CMP8rr:
209 case X86::CMP8rr_REV:
212 case X86::ADD16i16:
213 case X86::ADD16ri:
214 case X86::ADD16ri8:
215 case X86::ADD16rm:
216 case X86::ADD16rr:
217 case X86::ADD16rr_REV:
218 case X86::ADD32i32:
219 case X86::ADD32ri:
220 case X86::ADD32ri8:
221 case X86::ADD32rm:
222 case X86::ADD32rr:
223 case X86::ADD32rr_REV:
224 case X86::ADD64i32:
225 case X86::ADD64ri32:
226 case X86::ADD64ri8:
227 case X86::ADD64rm:
228 case X86::ADD64rr:
229 case X86::ADD64rr_REV:
230 case X86::ADD8i8:
231 case X86::ADD8ri:
232 case X86::ADD8ri8:
233 case X86::ADD8rm:
234 case X86::ADD8rr:
235 case X86::ADD8rr_REV:
237 case X86::SUB16i16:
238 case X86::SUB16ri:
239 case X86::SUB16ri8:
240 case X86::SUB16rm:
241 case X86::SUB16rr:
242 case X86::SUB16rr_REV:
243 case X86::SUB32i32:
244 case X86::SUB32ri:
245 case X86::SUB32ri8:
246 case X86::SUB32rm:
247 case X86::SUB32rr:
248 case X86::SUB32rr_REV:
249 case X86::SUB64i32:
250 case X86::SUB64ri32:
251 case X86::SUB64ri8:
252 case X86::SUB64rm:
253 case X86::SUB64rr:
254 case X86::SUB64rr_REV:
255 case X86::SUB8i8:
256 case X86::SUB8ri:
257 case X86::SUB8ri8:
258 case X86::SUB8rm:
259 case X86::SUB8rr:
260 case X86::SUB8rr_REV:
263 case X86::INC16r:
264 case X86::INC16r_alt:
265 case X86::INC32r:
266 case X86::INC32r_alt:
267 case X86::INC64r:
268 case X86::INC8r:
270 case X86::DEC16r:
271 case X86::DEC16r_alt:
272 case X86::DEC32r:
273 case X86::DEC32r_alt:
274 case X86::DEC64r:
275 case X86::DEC8r:
282 classifySecondCondCodeInMacroFusion(X86::CondCode CC) {
283 if (CC == X86::COND_INVALID)
290 case X86::COND_E:
292 case X86::COND_NE:
294 case X86::COND_L:
296 case X86::COND_LE:
298 case X86::COND_G:
300 case X86::COND_GE:
303 case X86::COND_B:
305 case X86::COND_BE:
307 case X86::COND_A:
309 case X86::COND_AE:
312 case X86::COND_S:
314 case X86::COND_NS:
316 case X86::COND_P:
318 case X86::COND_NP:
320 case X86::COND_O:
322 case X86::COND_NO:
334 case X86::FirstMacroFusionInstKind::Test:
335 case X86::FirstMacroFusionInstKind::And:
337 case X86::FirstMacroFusionInstKind::Cmp:
338 case X86::FirstMacroFusionInstKind::AddSub:
339 return SecondKind == X86::SecondMacroFusionInstKind::AB ||
340 SecondKind == X86::SecondMacroFusionInstKind::ELG;
341 case X86::FirstMacroFusionInstKind::IncDec:
342 return SecondKind == X86::SecondMacroFusionInstKind::ELG;
343 case X86::FirstMacroFusionInstKind::Invalid:
359 } // end namespace X86;
368 // X86 Specific MachineOperand flags.
385 /// See the X86-64 ELF ABI supplement for more details.
392 /// See the X86-64 ELF ABI supplement for more details.
400 /// See the X86-64 ELF ABI supplement for more details.
407 /// See the X86-64 ELF ABI supplement for more details.
535 // Instruction encodings. These are the standard/most common forms for X86
903 /// \returns the "base" X86 opcode for the specified machine
1097 if ((RegNo >= X86::XMM8 && RegNo <= X86::XMM31) ||
1098 (RegNo >= X86::YMM8 && RegNo <= X86::YMM31) ||
1099 (RegNo >= X86::ZMM8 && RegNo <= X86::ZMM31))
1104 case X86::R8: case X86::R9: case X86::R10: case X86::R11:
1105 case X86::R12: case X86::R13: case X86::R14: case X86::R15:
1106 case X86::R8D: case X86::R9D: case X86::R10D: case X86::R11D:
1107 case X86::R12D: case X86::R13D: case X86::R14D: case X86::R15D:
1108 case X86::R8W: case X86::R9W: case X86::R10W: case X86::R11W:
1109 case X86::R12W: case X86::R13W: case X86::R14W: case X86::R15W:
1110 case X86::R8B: case X86::R9B: case X86::R10B: case X86::R11B:
1111 case X86::R12B: case X86::R13B: case X86::R14B: case X86::R15B:
1112 case X86::CR8: case X86::CR9: case X86::CR10: case X86::CR11:
1113 case X86::CR12: case X86::CR13: case X86::CR14: case X86::CR15:
1114 case X86::DR8: case X86::DR9: case X86::DR10: case X86::DR11:
1115 case X86::DR12: case X86::DR13: case X86::DR14: case X86::DR15:
1124 return ((RegNo >= X86::XMM16 && RegNo <= X86::XMM31) ||
1125 (RegNo >= X86::YMM16 && RegNo <= X86::YMM31) ||
1126 (RegNo >= X86::ZMM16 && RegNo <= X86::ZMM31));
1131 return (reg == X86::SPL || reg == X86::BPL ||
1132 reg == X86::SIL || reg == X86::DIL);