blob: 70103b8d2e66a2cb6fc5abcd7151e6e6e0859b81 [file] [log] [blame]
Scott Michel564427e2007-12-05 01:24:05 +00001//===- SPUOperands.td - Cell SPU Instruction Operands ------*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Scott Michel2466c372007-12-05 01:40:25 +00005// This file was developed by a team from the Computer Systems Research
6// Department at The Aerospace Corporation and is distributed under the
7// University of Illinois Open Source License. See LICENSE.TXT for details.
Scott Michel564427e2007-12-05 01:24:05 +00008//
9//===----------------------------------------------------------------------===//
10// Cell SPU Instruction Operands:
11//===----------------------------------------------------------------------===//
12
13def LO16 : SDNodeXForm<imm, [{
14 unsigned val = N->getValue();
15 // Transformation function: get the low 16 bits.
16 return getI32Imm(val & 0xffff);
17}]>;
18
19def LO16_vec : SDNodeXForm<scalar_to_vector, [{
20 SDOperand OpVal(0, 0);
21
22 // Transformation function: get the low 16 bit immediate from a build_vector
23 // node.
24 assert(N->getOpcode() == ISD::BUILD_VECTOR
25 && "LO16_vec got something other than a BUILD_VECTOR");
26
27 // Get first constant operand...
28 for (unsigned i = 0, e = N->getNumOperands(); OpVal.Val == 0 && i != e; ++i) {
29 if (N->getOperand(i).getOpcode() == ISD::UNDEF) continue;
30 if (OpVal.Val == 0)
31 OpVal = N->getOperand(i);
32 }
33
34 assert(OpVal.Val != 0 && "LO16_vec did not locate a <defined> node");
35 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal);
36 return getI32Imm((unsigned)CN->getValue() & 0xffff);
37}]>;
38
39// Transform an immediate, returning the high 16 bits shifted down:
40def HI16 : SDNodeXForm<imm, [{
41 return getI32Imm((unsigned)N->getValue() >> 16);
42}]>;
43
44// Transformation function: shift the high 16 bit immediate from a build_vector
45// node into the low 16 bits, and return a 16-bit constant.
46def HI16_vec : SDNodeXForm<scalar_to_vector, [{
47 SDOperand OpVal(0, 0);
48
49 assert(N->getOpcode() == ISD::BUILD_VECTOR
50 && "HI16_vec got something other than a BUILD_VECTOR");
51
52 // Get first constant operand...
53 for (unsigned i = 0, e = N->getNumOperands(); OpVal.Val == 0 && i != e; ++i) {
54 if (N->getOperand(i).getOpcode() == ISD::UNDEF) continue;
55 if (OpVal.Val == 0)
56 OpVal = N->getOperand(i);
57 }
58
59 assert(OpVal.Val != 0 && "HI16_vec did not locate a <defined> node");
60 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal);
61 return getI32Imm((unsigned)CN->getValue() >> 16);
62}]>;
63
64// simm7 predicate - True if the immediate fits in an 7-bit signed
65// field.
66def simm7: PatLeaf<(imm), [{
67 int sextVal = ((((int) N->getValue()) << 25) >> 25);
68 return (sextVal >= -64 && sextVal <= 63);
69}]>;
70
71// uimm7 predicate - True if the immediate fits in an 7-bit unsigned
72// field.
73def uimm7: PatLeaf<(imm), [{
74 return (N->getValue() <= 0x7f);
75}]>;
76
77// immSExt8 predicate - True if the immediate fits in an 8-bit sign extended
78// field.
79def immSExt8 : PatLeaf<(imm), [{
80 int Value = (int) N->getValue();
81 int Value8 = (Value << 24) >> 24;
82 return (Value < 0xff && (Value8 >= -128 && Value8 < 127));
83}]>;
84
85// immU8: immediate, unsigned 8-bit quantity
86def immU8 : PatLeaf<(imm), [{
87 return (N->getValue() <= 0xff);
88}]>;
89
90// i64ImmSExt10 predicate - True if the i64 immediate fits in a 10-bit sign
91// extended field. Used by RI10Form instructions like 'ldq'.
92def i64ImmSExt10 : PatLeaf<(imm), [{
93 return isI64IntS10Immediate(N);
94}]>;
95
96// i32ImmSExt10 predicate - True if the i32 immediate fits in a 10-bit sign
97// extended field. Used by RI10Form instructions like 'ldq'.
98def i32ImmSExt10 : PatLeaf<(imm), [{
99 return isI32IntS10Immediate(N);
100}]>;
101
Scott Michelec2a08f2007-12-15 00:38:50 +0000102// i16ImmSExt10 predicate - True if the i16 immediate fits in a 10-bit sign
Scott Michel564427e2007-12-05 01:24:05 +0000103// extended field. Used by RI10Form instructions like 'ldq'.
104def i16ImmSExt10 : PatLeaf<(imm), [{
105 return isI16IntS10Immediate(N);
106}]>;
107
Scott Michelec2a08f2007-12-15 00:38:50 +0000108// i16ImmU10 predicate - True if the i16 immediate fits into a 10-bit unsigned
109// value. Used by RI10Form instructions.
110def i16ImmU10 : PatLeaf<(imm), [{
111 return isI16IntU10Immediate(N);
112}]>;
113
Scott Michel564427e2007-12-05 01:24:05 +0000114def immSExt16 : PatLeaf<(imm), [{
115 // immSExt16 predicate - True if the immediate fits in a 16-bit sign extended
116 // field.
117 short Ignored;
118 return isIntS16Immediate(N, Ignored);
119}]>;
120
121def immZExt16 : PatLeaf<(imm), [{
122 // immZExt16 predicate - True if the immediate fits in a 16-bit zero extended
123 // field.
124 return (uint64_t)N->getValue() == (unsigned short)N->getValue();
125}], LO16>;
126
127def immU16 : PatLeaf<(imm), [{
128 // immU16 predicate- True if the immediate fits into a 16-bit unsigned field.
129 return (uint64_t)N->getValue() == (N->getValue() & 0xffff);
130}]>;
131
132def imm18 : PatLeaf<(imm), [{
133 // imm18 predicate: True if the immediate fits into an 18-bit unsigned field.
134 int Value = (int) N->getValue();
135 return ((Value & ((1 << 19) - 1)) == Value);
136}]>;
137
138def hi16 : PatLeaf<(imm), [{
139 // hi16 predicate - returns true if the immediate has all zeros in the
140 // low order bits and is a 32-bit constant:
141 if (N->getValueType(0) == MVT::i32) {
142 uint32_t val = N->getValue();
143 return ((val & 0xffff0000) == val);
144 }
145
146 return false;
147}], HI16>;
148
149//===----------------------------------------------------------------------===//
150// Floating point operands:
151//===----------------------------------------------------------------------===//
152
153// Transform a float, returning the high 16 bits shifted down, as if
154// the float was really an unsigned integer:
155def HI16_f32 : SDNodeXForm<fpimm, [{
156 const APFloat &apf = N->getValueAPF();
157 float fval = apf.convertToFloat();
158 unsigned val = *((unsigned *) &fval);
159 return getI32Imm(val >> 16);
160}]>;
161
162// Transformation function on floats: get the low 16 bits as if the float was
163// an unsigned integer.
164def LO16_f32 : SDNodeXForm<fpimm, [{
165 const APFloat &apf = N->getValueAPF();
166 float fval = apf.convertToFloat();
167 unsigned val = *((unsigned *) &fval);
168 return getI32Imm(val & 0xffff);
169}]>;
170
171def FPimm_sext16 : SDNodeXForm<fpimm, [{
172 const APFloat &apf = N->getValueAPF();
173 float fval = apf.convertToFloat();
174 unsigned val = *((unsigned *) &fval);
175 return getI32Imm((int) ((val << 16) >> 16));
176}]>;
177
178def FPimm_u18 : SDNodeXForm<fpimm, [{
179 const APFloat &apf = N->getValueAPF();
180 float fval = apf.convertToFloat();
181 unsigned val = *((unsigned *) &fval);
182 return getI32Imm(val & ((1 << 19) - 1));
183}]>;
184
185def fpimmSExt16 : PatLeaf<(fpimm), [{
186 short Ignored;
187 return isFPS16Immediate(N, Ignored);
188}], FPimm_sext16>;
189
190// Does the SFP constant only have upp 16 bits set?
191def hi16_f32 : PatLeaf<(fpimm), [{
192 if (N->getValueType(0) == MVT::f32) {
193 const APFloat &apf = N->getValueAPF();
194 float fval = apf.convertToFloat();
195 uint32_t val = *((unsigned *) &fval);
196 return ((val & 0xffff0000) == val);
197 }
198
199 return false;
200}], HI16_f32>;
201
202// Does the SFP constant fit into 18 bits?
203def fpimm18 : PatLeaf<(fpimm), [{
204 if (N->getValueType(0) == MVT::f32) {
205 const APFloat &apf = N->getValueAPF();
206 float fval = apf.convertToFloat();
207 uint32_t Value = *((uint32_t *) &fval);
208 return ((Value & ((1 << 19) - 1)) == Value);
209 }
210
211 return false;
212}], FPimm_u18>;
213
214//===----------------------------------------------------------------------===//
Scott Michelec2a08f2007-12-15 00:38:50 +0000215// 64-bit operands (TODO):
Scott Michel564427e2007-12-05 01:24:05 +0000216//===----------------------------------------------------------------------===//
217
218//===----------------------------------------------------------------------===//
219// build_vector operands:
220//===----------------------------------------------------------------------===//
221
222// v16i8SExt8Imm_xform function: convert build_vector to 8-bit sign extended
223// immediate constant load for v16i8 vectors. N.B.: The incoming constant has
224// to be a 16-bit quantity with the upper and lower bytes equal (e.g., 0x2a2a).
225def v16i8SExt8Imm_xform: SDNodeXForm<build_vector, [{
226 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8);
227}]>;
228
229// v16i8SExt8Imm: Predicate test for 8-bit sign extended immediate constant
230// load, works in conjunction with its transform function. N.B.: This relies the
231// incoming constant being a 16-bit quantity, where the upper and lower bytes
232// are EXACTLY the same (e.g., 0x2a2a)
233def v16i8SExt8Imm: PatLeaf<(build_vector), [{
234 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8).Val != 0;
235}], v16i8SExt8Imm_xform>;
236
237// v16i8U8Imm_xform function: convert build_vector to unsigned 8-bit
238// immediate constant load for v16i8 vectors. N.B.: The incoming constant has
239// to be a 16-bit quantity with the upper and lower bytes equal (e.g., 0x2a2a).
240def v16i8U8Imm_xform: SDNodeXForm<build_vector, [{
241 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8);
242}]>;
243
244// v16i8U8Imm: Predicate test for unsigned 8-bit immediate constant
245// load, works in conjunction with its transform function. N.B.: This relies the
246// incoming constant being a 16-bit quantity, where the upper and lower bytes
247// are EXACTLY the same (e.g., 0x2a2a)
248def v16i8U8Imm: PatLeaf<(build_vector), [{
249 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8).Val != 0;
250}], v16i8U8Imm_xform>;
251
252// v8i16SExt8Imm_xform function: convert build_vector to 8-bit sign extended
253// immediate constant load for v8i16 vectors.
254def v8i16SExt8Imm_xform: SDNodeXForm<build_vector, [{
255 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i16);
256}]>;
257
258// v8i16SExt8Imm: Predicate test for 8-bit sign extended immediate constant
259// load, works in conjunction with its transform function.
260def v8i16SExt8Imm: PatLeaf<(build_vector), [{
261 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i16).Val != 0;
262}], v8i16SExt8Imm_xform>;
263
264// v8i16SExt10Imm_xform function: convert build_vector to 16-bit sign extended
265// immediate constant load for v8i16 vectors.
266def v8i16SExt10Imm_xform: SDNodeXForm<build_vector, [{
267 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i16);
268}]>;
269
270// v8i16SExt10Imm: Predicate test for 16-bit sign extended immediate constant
271// load, works in conjunction with its transform function.
272def v8i16SExt10Imm: PatLeaf<(build_vector), [{
273 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i16).Val != 0;
274}], v8i16SExt10Imm_xform>;
275
276// v8i16SExt16Imm_xform function: convert build_vector to 16-bit sign extended
277// immediate constant load for v8i16 vectors.
278def v8i16SExt16Imm_xform: SDNodeXForm<build_vector, [{
279 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i16);
280}]>;
281
282// v8i16SExt16Imm: Predicate test for 16-bit sign extended immediate constant
283// load, works in conjunction with its transform function.
284def v8i16SExt16Imm: PatLeaf<(build_vector), [{
285 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i16).Val != 0;
286}], v8i16SExt16Imm_xform>;
287
288// v4i32SExt10Imm_xform function: convert build_vector to 10-bit sign extended
289// immediate constant load for v4i32 vectors.
290def v4i32SExt10Imm_xform: SDNodeXForm<build_vector, [{
291 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i32);
292}]>;
293
294// v4i32SExt10Imm: Predicate test for 10-bit sign extended immediate constant
295// load, works in conjunction with its transform function.
296def v4i32SExt10Imm: PatLeaf<(build_vector), [{
297 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i32).Val != 0;
298}], v4i32SExt10Imm_xform>;
299
300// v4i32SExt16Imm_xform function: convert build_vector to 16-bit sign extended
301// immediate constant load for v4i32 vectors.
302def v4i32SExt16Imm_xform: SDNodeXForm<build_vector, [{
303 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i32);
304}]>;
305
306// v4i32SExt16Imm: Predicate test for 16-bit sign extended immediate constant
307// load, works in conjunction with its transform function.
308def v4i32SExt16Imm: PatLeaf<(build_vector), [{
309 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i32).Val != 0;
310}], v4i32SExt16Imm_xform>;
311
312// v4i32Uns18Imm_xform function: convert build_vector to 18-bit unsigned
313// immediate constant load for v4i32 vectors.
314def v4i32Uns18Imm_xform: SDNodeXForm<build_vector, [{
315 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i32);
316}]>;
317
318// v4i32Uns18Imm: Predicate test for 18-bit unsigned immediate constant load,
319// works in conjunction with its transform function.
320def v4i32Uns18Imm: PatLeaf<(build_vector), [{
321 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i32).Val != 0;
322}], v4i32Uns18Imm_xform>;
323
324// ILHUvec_get_imm xform function: convert build_vector to ILHUvec imm constant
325// load.
326def ILHUvec_get_imm: SDNodeXForm<build_vector, [{
327 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i32);
328}]>;
329
330/// immILHUvec: Predicate test for a ILHU constant vector.
331def immILHUvec: PatLeaf<(build_vector), [{
332 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i32).Val != 0;
333}], ILHUvec_get_imm>;
334
335// Catch-all for any other i32 vector constants
336def v4i32_get_imm: SDNodeXForm<build_vector, [{
337 return SPU::get_v4i32_imm(N, *CurDAG);
338}]>;
339
340def v4i32Imm: PatLeaf<(build_vector), [{
341 return SPU::get_v4i32_imm(N, *CurDAG).Val != 0;
342}], v4i32_get_imm>;
343
344// v2i64SExt10Imm_xform function: convert build_vector to 10-bit sign extended
345// immediate constant load for v2i64 vectors.
346def v2i64SExt10Imm_xform: SDNodeXForm<build_vector, [{
347 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i64);
348}]>;
349
350// v2i64SExt10Imm: Predicate test for 10-bit sign extended immediate constant
351// load, works in conjunction with its transform function.
352def v2i64SExt10Imm: PatLeaf<(build_vector), [{
353 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i64).Val != 0;
354}], v2i64SExt10Imm_xform>;
355
356// v2i64SExt16Imm_xform function: convert build_vector to 16-bit sign extended
357// immediate constant load for v2i64 vectors.
358def v2i64SExt16Imm_xform: SDNodeXForm<build_vector, [{
359 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i64);
360}]>;
361
362// v2i64SExt16Imm: Predicate test for 16-bit sign extended immediate constant
363// load, works in conjunction with its transform function.
364def v2i64SExt16Imm: PatLeaf<(build_vector), [{
365 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i64).Val != 0;
366}], v2i64SExt16Imm_xform>;
367
368// v2i64Uns18Imm_xform function: convert build_vector to 18-bit unsigned
369// immediate constant load for v2i64 vectors.
370def v2i64Uns18Imm_xform: SDNodeXForm<build_vector, [{
371 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i64);
372}]>;
373
374// v2i64Uns18Imm: Predicate test for 18-bit unsigned immediate constant load,
375// works in conjunction with its transform function.
376def v2i64Uns18Imm: PatLeaf<(build_vector), [{
377 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i64).Val != 0;
378}], v2i64Uns18Imm_xform>;
379
380/// immILHUvec: Predicate test for a ILHU constant vector.
381def immILHUvec_i64: PatLeaf<(build_vector), [{
382 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i64).Val != 0;
383}], ILHUvec_get_imm>;
384
385// Catch-all for any other i32 vector constants
386def v2i64_get_imm: SDNodeXForm<build_vector, [{
387 return SPU::get_v2i64_imm(N, *CurDAG);
388}]>;
389
390def v2i64Imm: PatLeaf<(build_vector), [{
391 return SPU::get_v2i64_imm(N, *CurDAG).Val != 0;
392}], v2i64_get_imm>;
393
394//===----------------------------------------------------------------------===//
395// Operand Definitions.
396
397def s7imm: Operand<i16> {
398 let PrintMethod = "printS7ImmOperand";
399}
400
401def u7imm: Operand<i16> {
402 let PrintMethod = "printU7ImmOperand";
403}
404
405def u7imm_i32: Operand<i32> {
406 let PrintMethod = "printU7ImmOperand";
407}
408
409// Halfword, signed 10-bit constant
410def s10imm : Operand<i16> {
411 let PrintMethod = "printS10ImmOperand";
412}
413
414def s10imm_i32: Operand<i32> {
415 let PrintMethod = "printS10ImmOperand";
416}
417
418def s10imm_i64: Operand<i64> {
419 let PrintMethod = "printS10ImmOperand";
420}
421
422// Unsigned 10-bit integers:
423def u10imm: Operand<i16> {
424 let PrintMethod = "printU10ImmOperand";
425}
426
427def u10imm_i32: Operand<i32> {
428 let PrintMethod = "printU10ImmOperand";
429}
430
431def s16imm : Operand<i16> {
432 let PrintMethod = "printS16ImmOperand";
433}
434
435def s16imm_i32: Operand<i32> {
436 let PrintMethod = "printS16ImmOperand";
437}
438
439def s16imm_i64: Operand<i64> {
440 let PrintMethod = "printS16ImmOperand";
441}
442
443def s16imm_f32: Operand<f32> {
444 let PrintMethod = "printS16ImmOperand";
445}
446
447def s16imm_f64: Operand<f64> {
448 let PrintMethod = "printS16ImmOperand";
449}
450
451def u16imm : Operand<i32> {
452 let PrintMethod = "printU16ImmOperand";
453}
454
455def f16imm : Operand<f32> {
456 let PrintMethod = "printU16ImmOperand";
457}
458
459def s18imm : Operand<i32> {
460 let PrintMethod = "printS18ImmOperand";
461}
462
463def u18imm : Operand<i32> {
464 let PrintMethod = "printU18ImmOperand";
465}
466
467def u18imm_i64 : Operand<i64> {
468 let PrintMethod = "printU18ImmOperand";
469}
470
471def f18imm : Operand<f32> {
472 let PrintMethod = "printU18ImmOperand";
473}
474
475def f18imm_f64 : Operand<f64> {
476 let PrintMethod = "printU18ImmOperand";
477}
478
479// Negated 7-bit halfword rotate immediate operands
480def rothNeg7imm : Operand<i32> {
481 let PrintMethod = "printROTHNeg7Imm";
482}
483
484def rothNeg7imm_i16 : Operand<i16> {
485 let PrintMethod = "printROTHNeg7Imm";
486}
487
488// Negated 7-bit word rotate immediate operands
489def rotNeg7imm : Operand<i32> {
490 let PrintMethod = "printROTNeg7Imm";
491}
492
493def rotNeg7imm_i16 : Operand<i16> {
494 let PrintMethod = "printROTNeg7Imm";
495}
496
497// Floating point immediate operands
498def f32imm : Operand<f32>;
499
500def target : Operand<OtherVT> {
501 let PrintMethod = "printBranchOperand";
502}
503
504// Absolute address call target
505def calltarget : Operand<iPTR> {
506 let PrintMethod = "printCallOperand";
507 let MIOperandInfo = (ops u18imm:$calldest);
508}
509
510// Relative call target
511def relcalltarget : Operand<iPTR> {
512 let PrintMethod = "printPCRelativeOperand";
513 let MIOperandInfo = (ops s16imm:$calldest);
514}
515
516// Branch targets:
517def brtarget : Operand<OtherVT> {
518 let PrintMethod = "printPCRelativeOperand";
519}
520
521// Indirect call target
522def indcalltarget : Operand<iPTR> {
523 let PrintMethod = "printCallOperand";
524 let MIOperandInfo = (ops ptr_rc:$calldest);
525}
526
527def symbolHi: Operand<i32> {
528 let PrintMethod = "printSymbolHi";
529}
530
531def symbolLo: Operand<i32> {
532 let PrintMethod = "printSymbolLo";
533}
534
535def symbolLSA: Operand<i32> {
536 let PrintMethod = "printSymbolLSA";
537}
538
539// memory s7imm(reg) operaand
540def memri7 : Operand<iPTR> {
541 let PrintMethod = "printMemRegImmS7";
542 let MIOperandInfo = (ops s7imm:$imm, ptr_rc:$reg);
543}
544
545// memory s10imm(reg) operand
546def memri10 : Operand<iPTR> {
547 let PrintMethod = "printMemRegImmS10";
548 let MIOperandInfo = (ops s10imm:$imm, ptr_rc:$reg);
549}
550
551// 256K local store address
552// N.B.: The tblgen code generator expects to have two operands, an offset
553// and a pointer. Of these, only the immediate is actually used.
554def addr256k : Operand<iPTR> {
555 let PrintMethod = "printAddr256K";
556 let MIOperandInfo = (ops s16imm:$imm, ptr_rc:$reg);
557}
558
559// memory s18imm(reg) operand
560def memri18 : Operand<iPTR> {
561 let PrintMethod = "printMemRegImmS18";
562 let MIOperandInfo = (ops s18imm:$imm, ptr_rc:$reg);
563}
564
565// memory register + register operand
566def memrr : Operand<iPTR> {
567 let PrintMethod = "printMemRegReg";
568 let MIOperandInfo = (ops ptr_rc:$reg_a, ptr_rc:$reg_b);
569}
570
571// Define SPU-specific addressing modes: These come in three basic
572// flavors:
573//
574// D-form : [r+I10] (10-bit signed offset + reg)
575// X-form : [r+r] (reg+reg)
576// A-form : abs (256K LSA offset)
577// D-form(2): [r+I7] (7-bit signed offset + reg)
578
579def dform_addr : ComplexPattern<iPTR, 2, "SelectDFormAddr", [], []>;
580def xform_addr : ComplexPattern<iPTR, 2, "SelectXFormAddr", [], []>;
581def aform_addr : ComplexPattern<iPTR, 2, "SelectAFormAddr", [], []>;
582def dform2_addr : ComplexPattern<iPTR, 2, "SelectDForm2Addr", [], []>;