blob: 6f079eab64756c12ceff2e6867d3b716eaa1288f [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, [{
Chris Lattner10d724a2007-12-16 20:41:33 +0000156 float fval = N->getValueAPF().convertToFloat();
157 return getI32Imm(FloatToBits(fval) >> 16);
Scott Michel564427e2007-12-05 01:24:05 +0000158}]>;
159
160// Transformation function on floats: get the low 16 bits as if the float was
161// an unsigned integer.
162def LO16_f32 : SDNodeXForm<fpimm, [{
Chris Lattner10d724a2007-12-16 20:41:33 +0000163 float fval = N->getValueAPF().convertToFloat();
164 return getI32Imm(FloatToBits(fval) & 0xffff);
Scott Michel564427e2007-12-05 01:24:05 +0000165}]>;
166
167def FPimm_sext16 : SDNodeXForm<fpimm, [{
Chris Lattner10d724a2007-12-16 20:41:33 +0000168 float fval = N->getValueAPF().convertToFloat();
169 return getI32Imm((int) ((FloatToBits(fval) << 16) >> 16));
Scott Michel564427e2007-12-05 01:24:05 +0000170}]>;
171
172def FPimm_u18 : SDNodeXForm<fpimm, [{
Chris Lattner10d724a2007-12-16 20:41:33 +0000173 float fval = N->getValueAPF().convertToFloat();
174 return getI32Imm(FloatToBits(fval) & ((1 << 19) - 1));
Scott Michel564427e2007-12-05 01:24:05 +0000175}]>;
176
177def fpimmSExt16 : PatLeaf<(fpimm), [{
178 short Ignored;
179 return isFPS16Immediate(N, Ignored);
180}], FPimm_sext16>;
181
182// Does the SFP constant only have upp 16 bits set?
183def hi16_f32 : PatLeaf<(fpimm), [{
184 if (N->getValueType(0) == MVT::f32) {
Chris Lattner10d724a2007-12-16 20:41:33 +0000185 uint32_t val = FloatToBits(N->getValueAPF().convertToFloat());
Scott Michel564427e2007-12-05 01:24:05 +0000186 return ((val & 0xffff0000) == val);
187 }
188
189 return false;
190}], HI16_f32>;
191
192// Does the SFP constant fit into 18 bits?
193def fpimm18 : PatLeaf<(fpimm), [{
194 if (N->getValueType(0) == MVT::f32) {
Chris Lattner10d724a2007-12-16 20:41:33 +0000195 uint32_t Value = FloatToBits(N->getValueAPF().convertToFloat());
Scott Michel564427e2007-12-05 01:24:05 +0000196 return ((Value & ((1 << 19) - 1)) == Value);
197 }
198
199 return false;
200}], FPimm_u18>;
201
202//===----------------------------------------------------------------------===//
Scott Michelec2a08f2007-12-15 00:38:50 +0000203// 64-bit operands (TODO):
Scott Michel564427e2007-12-05 01:24:05 +0000204//===----------------------------------------------------------------------===//
205
206//===----------------------------------------------------------------------===//
207// build_vector operands:
208//===----------------------------------------------------------------------===//
209
210// v16i8SExt8Imm_xform function: convert build_vector to 8-bit sign extended
211// immediate constant load for v16i8 vectors. N.B.: The incoming constant has
212// to be a 16-bit quantity with the upper and lower bytes equal (e.g., 0x2a2a).
213def v16i8SExt8Imm_xform: SDNodeXForm<build_vector, [{
214 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8);
215}]>;
216
217// v16i8SExt8Imm: Predicate test for 8-bit sign extended immediate constant
218// load, works in conjunction with its transform function. N.B.: This relies the
219// incoming constant being a 16-bit quantity, where the upper and lower bytes
220// are EXACTLY the same (e.g., 0x2a2a)
221def v16i8SExt8Imm: PatLeaf<(build_vector), [{
222 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8).Val != 0;
223}], v16i8SExt8Imm_xform>;
224
225// v16i8U8Imm_xform function: convert build_vector to unsigned 8-bit
226// immediate constant load for v16i8 vectors. N.B.: The incoming constant has
227// to be a 16-bit quantity with the upper and lower bytes equal (e.g., 0x2a2a).
228def v16i8U8Imm_xform: SDNodeXForm<build_vector, [{
229 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8);
230}]>;
231
232// v16i8U8Imm: Predicate test for unsigned 8-bit immediate constant
233// load, works in conjunction with its transform function. N.B.: This relies the
234// incoming constant being a 16-bit quantity, where the upper and lower bytes
235// are EXACTLY the same (e.g., 0x2a2a)
236def v16i8U8Imm: PatLeaf<(build_vector), [{
237 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i8).Val != 0;
238}], v16i8U8Imm_xform>;
239
240// v8i16SExt8Imm_xform function: convert build_vector to 8-bit sign extended
241// immediate constant load for v8i16 vectors.
242def v8i16SExt8Imm_xform: SDNodeXForm<build_vector, [{
243 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i16);
244}]>;
245
246// v8i16SExt8Imm: Predicate test for 8-bit sign extended immediate constant
247// load, works in conjunction with its transform function.
248def v8i16SExt8Imm: PatLeaf<(build_vector), [{
249 return SPU::get_vec_i8imm(N, *CurDAG, MVT::i16).Val != 0;
250}], v8i16SExt8Imm_xform>;
251
252// v8i16SExt10Imm_xform function: convert build_vector to 16-bit sign extended
253// immediate constant load for v8i16 vectors.
254def v8i16SExt10Imm_xform: SDNodeXForm<build_vector, [{
255 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i16);
256}]>;
257
258// v8i16SExt10Imm: Predicate test for 16-bit sign extended immediate constant
259// load, works in conjunction with its transform function.
260def v8i16SExt10Imm: PatLeaf<(build_vector), [{
261 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i16).Val != 0;
262}], v8i16SExt10Imm_xform>;
263
264// v8i16SExt16Imm_xform function: convert build_vector to 16-bit sign extended
265// immediate constant load for v8i16 vectors.
266def v8i16SExt16Imm_xform: SDNodeXForm<build_vector, [{
267 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i16);
268}]>;
269
270// v8i16SExt16Imm: Predicate test for 16-bit sign extended immediate constant
271// load, works in conjunction with its transform function.
272def v8i16SExt16Imm: PatLeaf<(build_vector), [{
273 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i16).Val != 0;
274}], v8i16SExt16Imm_xform>;
275
276// v4i32SExt10Imm_xform function: convert build_vector to 10-bit sign extended
277// immediate constant load for v4i32 vectors.
278def v4i32SExt10Imm_xform: SDNodeXForm<build_vector, [{
279 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i32);
280}]>;
281
282// v4i32SExt10Imm: Predicate test for 10-bit sign extended immediate constant
283// load, works in conjunction with its transform function.
284def v4i32SExt10Imm: PatLeaf<(build_vector), [{
285 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i32).Val != 0;
286}], v4i32SExt10Imm_xform>;
287
288// v4i32SExt16Imm_xform function: convert build_vector to 16-bit sign extended
289// immediate constant load for v4i32 vectors.
290def v4i32SExt16Imm_xform: SDNodeXForm<build_vector, [{
291 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i32);
292}]>;
293
294// v4i32SExt16Imm: Predicate test for 16-bit sign extended immediate constant
295// load, works in conjunction with its transform function.
296def v4i32SExt16Imm: PatLeaf<(build_vector), [{
297 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i32).Val != 0;
298}], v4i32SExt16Imm_xform>;
299
300// v4i32Uns18Imm_xform function: convert build_vector to 18-bit unsigned
301// immediate constant load for v4i32 vectors.
302def v4i32Uns18Imm_xform: SDNodeXForm<build_vector, [{
303 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i32);
304}]>;
305
306// v4i32Uns18Imm: Predicate test for 18-bit unsigned immediate constant load,
307// works in conjunction with its transform function.
308def v4i32Uns18Imm: PatLeaf<(build_vector), [{
309 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i32).Val != 0;
310}], v4i32Uns18Imm_xform>;
311
312// ILHUvec_get_imm xform function: convert build_vector to ILHUvec imm constant
313// load.
314def ILHUvec_get_imm: SDNodeXForm<build_vector, [{
315 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i32);
316}]>;
317
318/// immILHUvec: Predicate test for a ILHU constant vector.
319def immILHUvec: PatLeaf<(build_vector), [{
320 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i32).Val != 0;
321}], ILHUvec_get_imm>;
322
323// Catch-all for any other i32 vector constants
324def v4i32_get_imm: SDNodeXForm<build_vector, [{
325 return SPU::get_v4i32_imm(N, *CurDAG);
326}]>;
327
328def v4i32Imm: PatLeaf<(build_vector), [{
329 return SPU::get_v4i32_imm(N, *CurDAG).Val != 0;
330}], v4i32_get_imm>;
331
332// v2i64SExt10Imm_xform function: convert build_vector to 10-bit sign extended
333// immediate constant load for v2i64 vectors.
334def v2i64SExt10Imm_xform: SDNodeXForm<build_vector, [{
335 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i64);
336}]>;
337
338// v2i64SExt10Imm: Predicate test for 10-bit sign extended immediate constant
339// load, works in conjunction with its transform function.
340def v2i64SExt10Imm: PatLeaf<(build_vector), [{
341 return SPU::get_vec_i10imm(N, *CurDAG, MVT::i64).Val != 0;
342}], v2i64SExt10Imm_xform>;
343
344// v2i64SExt16Imm_xform function: convert build_vector to 16-bit sign extended
345// immediate constant load for v2i64 vectors.
346def v2i64SExt16Imm_xform: SDNodeXForm<build_vector, [{
347 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i64);
348}]>;
349
350// v2i64SExt16Imm: Predicate test for 16-bit sign extended immediate constant
351// load, works in conjunction with its transform function.
352def v2i64SExt16Imm: PatLeaf<(build_vector), [{
353 return SPU::get_vec_i16imm(N, *CurDAG, MVT::i64).Val != 0;
354}], v2i64SExt16Imm_xform>;
355
356// v2i64Uns18Imm_xform function: convert build_vector to 18-bit unsigned
357// immediate constant load for v2i64 vectors.
358def v2i64Uns18Imm_xform: SDNodeXForm<build_vector, [{
359 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i64);
360}]>;
361
362// v2i64Uns18Imm: Predicate test for 18-bit unsigned immediate constant load,
363// works in conjunction with its transform function.
364def v2i64Uns18Imm: PatLeaf<(build_vector), [{
365 return SPU::get_vec_u18imm(N, *CurDAG, MVT::i64).Val != 0;
366}], v2i64Uns18Imm_xform>;
367
368/// immILHUvec: Predicate test for a ILHU constant vector.
369def immILHUvec_i64: PatLeaf<(build_vector), [{
370 return SPU::get_ILHUvec_imm(N, *CurDAG, MVT::i64).Val != 0;
371}], ILHUvec_get_imm>;
372
373// Catch-all for any other i32 vector constants
374def v2i64_get_imm: SDNodeXForm<build_vector, [{
375 return SPU::get_v2i64_imm(N, *CurDAG);
376}]>;
377
378def v2i64Imm: PatLeaf<(build_vector), [{
379 return SPU::get_v2i64_imm(N, *CurDAG).Val != 0;
380}], v2i64_get_imm>;
381
382//===----------------------------------------------------------------------===//
383// Operand Definitions.
384
385def s7imm: Operand<i16> {
386 let PrintMethod = "printS7ImmOperand";
387}
388
389def u7imm: Operand<i16> {
390 let PrintMethod = "printU7ImmOperand";
391}
392
393def u7imm_i32: Operand<i32> {
394 let PrintMethod = "printU7ImmOperand";
395}
396
397// Halfword, signed 10-bit constant
398def s10imm : Operand<i16> {
399 let PrintMethod = "printS10ImmOperand";
400}
401
402def s10imm_i32: Operand<i32> {
403 let PrintMethod = "printS10ImmOperand";
404}
405
406def s10imm_i64: Operand<i64> {
407 let PrintMethod = "printS10ImmOperand";
408}
409
410// Unsigned 10-bit integers:
411def u10imm: Operand<i16> {
412 let PrintMethod = "printU10ImmOperand";
413}
414
415def u10imm_i32: Operand<i32> {
416 let PrintMethod = "printU10ImmOperand";
417}
418
419def s16imm : Operand<i16> {
420 let PrintMethod = "printS16ImmOperand";
421}
422
423def s16imm_i32: Operand<i32> {
424 let PrintMethod = "printS16ImmOperand";
425}
426
427def s16imm_i64: Operand<i64> {
428 let PrintMethod = "printS16ImmOperand";
429}
430
431def s16imm_f32: Operand<f32> {
432 let PrintMethod = "printS16ImmOperand";
433}
434
435def s16imm_f64: Operand<f64> {
436 let PrintMethod = "printS16ImmOperand";
437}
438
439def u16imm : Operand<i32> {
440 let PrintMethod = "printU16ImmOperand";
441}
442
443def f16imm : Operand<f32> {
444 let PrintMethod = "printU16ImmOperand";
445}
446
447def s18imm : Operand<i32> {
448 let PrintMethod = "printS18ImmOperand";
449}
450
451def u18imm : Operand<i32> {
452 let PrintMethod = "printU18ImmOperand";
453}
454
455def u18imm_i64 : Operand<i64> {
456 let PrintMethod = "printU18ImmOperand";
457}
458
459def f18imm : Operand<f32> {
460 let PrintMethod = "printU18ImmOperand";
461}
462
463def f18imm_f64 : Operand<f64> {
464 let PrintMethod = "printU18ImmOperand";
465}
466
467// Negated 7-bit halfword rotate immediate operands
468def rothNeg7imm : Operand<i32> {
469 let PrintMethod = "printROTHNeg7Imm";
470}
471
472def rothNeg7imm_i16 : Operand<i16> {
473 let PrintMethod = "printROTHNeg7Imm";
474}
475
476// Negated 7-bit word rotate immediate operands
477def rotNeg7imm : Operand<i32> {
478 let PrintMethod = "printROTNeg7Imm";
479}
480
481def rotNeg7imm_i16 : Operand<i16> {
482 let PrintMethod = "printROTNeg7Imm";
483}
484
485// Floating point immediate operands
486def f32imm : Operand<f32>;
487
488def target : Operand<OtherVT> {
489 let PrintMethod = "printBranchOperand";
490}
491
492// Absolute address call target
493def calltarget : Operand<iPTR> {
494 let PrintMethod = "printCallOperand";
495 let MIOperandInfo = (ops u18imm:$calldest);
496}
497
498// Relative call target
499def relcalltarget : Operand<iPTR> {
500 let PrintMethod = "printPCRelativeOperand";
501 let MIOperandInfo = (ops s16imm:$calldest);
502}
503
504// Branch targets:
505def brtarget : Operand<OtherVT> {
506 let PrintMethod = "printPCRelativeOperand";
507}
508
509// Indirect call target
510def indcalltarget : Operand<iPTR> {
511 let PrintMethod = "printCallOperand";
512 let MIOperandInfo = (ops ptr_rc:$calldest);
513}
514
515def symbolHi: Operand<i32> {
516 let PrintMethod = "printSymbolHi";
517}
518
519def symbolLo: Operand<i32> {
520 let PrintMethod = "printSymbolLo";
521}
522
523def symbolLSA: Operand<i32> {
524 let PrintMethod = "printSymbolLSA";
525}
526
527// memory s7imm(reg) operaand
528def memri7 : Operand<iPTR> {
529 let PrintMethod = "printMemRegImmS7";
530 let MIOperandInfo = (ops s7imm:$imm, ptr_rc:$reg);
531}
532
533// memory s10imm(reg) operand
534def memri10 : Operand<iPTR> {
535 let PrintMethod = "printMemRegImmS10";
536 let MIOperandInfo = (ops s10imm:$imm, ptr_rc:$reg);
537}
538
539// 256K local store address
540// N.B.: The tblgen code generator expects to have two operands, an offset
541// and a pointer. Of these, only the immediate is actually used.
542def addr256k : Operand<iPTR> {
543 let PrintMethod = "printAddr256K";
544 let MIOperandInfo = (ops s16imm:$imm, ptr_rc:$reg);
545}
546
547// memory s18imm(reg) operand
548def memri18 : Operand<iPTR> {
549 let PrintMethod = "printMemRegImmS18";
550 let MIOperandInfo = (ops s18imm:$imm, ptr_rc:$reg);
551}
552
553// memory register + register operand
554def memrr : Operand<iPTR> {
555 let PrintMethod = "printMemRegReg";
556 let MIOperandInfo = (ops ptr_rc:$reg_a, ptr_rc:$reg_b);
557}
558
559// Define SPU-specific addressing modes: These come in three basic
560// flavors:
561//
562// D-form : [r+I10] (10-bit signed offset + reg)
563// X-form : [r+r] (reg+reg)
564// A-form : abs (256K LSA offset)
565// D-form(2): [r+I7] (7-bit signed offset + reg)
566
567def dform_addr : ComplexPattern<iPTR, 2, "SelectDFormAddr", [], []>;
568def xform_addr : ComplexPattern<iPTR, 2, "SelectXFormAddr", [], []>;
569def aform_addr : ComplexPattern<iPTR, 2, "SelectAFormAddr", [], []>;
570def dform2_addr : ComplexPattern<iPTR, 2, "SelectDForm2Addr", [], []>;