1 /* tc-i386.c -- Assemble Intel syntax code for ix86/x86-64
3 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to the Free
19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
24 operatorT op_modifier
; /* Operand modifier. */
25 int is_mem
; /* 1 if operand is memory reference. */
26 int has_offset
; /* 1 if operand has offset. */
27 unsigned int in_offset
; /* >=1 if processing operand of offset. */
28 unsigned int in_bracket
; /* >=1 if processing operand in brackets. */
29 unsigned int in_scale
; /* >=1 if processing multipication operand
31 i386_operand_type reloc_types
; /* Value obtained from lex_got(). */
32 const reg_entry
*base
; /* Base register (if any). */
33 const reg_entry
*index
; /* Index register (if any). */
34 offsetT scale_factor
; /* Accumulated scale factor. */
39 /* offset X_add_symbol */
40 #define O_offset O_md32
41 /* offset X_add_symbol */
42 #define O_short O_md31
43 /* near ptr X_add_symbol */
44 #define O_near_ptr O_md30
45 /* far ptr X_add_symbol */
46 #define O_far_ptr O_md29
47 /* byte ptr X_add_symbol */
48 #define O_byte_ptr O_md28
49 /* word ptr X_add_symbol */
50 #define O_word_ptr O_md27
51 /* dword ptr X_add_symbol */
52 #define O_dword_ptr O_md26
53 /* qword ptr X_add_symbol */
54 #define O_qword_ptr O_md25
55 /* oword ptr X_add_symbol */
56 #define O_oword_ptr O_md24
57 /* fword ptr X_add_symbol */
58 #define O_fword_ptr O_md23
59 /* tbyte ptr X_add_symbol */
60 #define O_tbyte_ptr O_md22
61 /* xmmword ptr X_add_symbol */
62 #define O_xmmword_ptr O_md21
63 /* ymmword ptr X_add_symbol */
64 #define O_ymmword_ptr O_md20
70 unsigned int operands
;
72 const i386_operators
[] =
74 { "and", O_bit_and
, 2 },
80 { "mod", O_modulus
, 2 },
82 { "not", O_bit_not
, 1 },
83 { "offset", O_offset
, 1 },
84 { "or", O_bit_inclusive_or
, 2 },
85 { "shl", O_left_shift
, 2 },
86 { "short", O_short
, 1 },
87 { "shr", O_right_shift
, 2 },
88 { "xor", O_bit_exclusive_or
, 2 },
89 { NULL
, O_illegal
, 0 }
100 #define I386_TYPE(t, n) { #t, O_##t##_ptr, { n, n, n } }
106 I386_TYPE(tbyte
, 10),
107 I386_TYPE(oword
, 16),
108 I386_TYPE(xmmword
, 16),
109 I386_TYPE(ymmword
, 32),
111 { "near", O_near_ptr
, { 0xff04, 0xff02, 0xff08 } },
112 { "far", O_far_ptr
, { 0xff06, 0xff05, 0xff06 } },
113 { NULL
, O_illegal
, { 0, 0, 0 } }
116 operatorT
i386_operator (const char *name
, unsigned int operands
, char *pc
)
127 switch (*input_line_pointer
)
130 ++input_line_pointer
;
133 ++input_line_pointer
;
136 if (this_operand
>= 0 && i
.reloc
[this_operand
] == NO_RELOC
)
139 char *gotfree_input_line
= lex_got (&i
.reloc
[this_operand
],
141 &intel_state
.reloc_types
);
143 if (!gotfree_input_line
)
145 free (gotfree_input_line
);
146 *input_line_pointer
++ = '+';
147 memset (input_line_pointer
, '0', adjust
- 1);
148 input_line_pointer
[adjust
- 1] = ' ';
156 for (j
= 0; i386_operators
[j
].name
; ++j
)
157 if (strcasecmp(i386_operators
[j
].name
, name
) == 0)
159 if (i386_operators
[j
].operands
160 && i386_operators
[j
].operands
!= operands
)
162 return i386_operators
[j
].op
;
165 for (j
= 0; i386_types
[j
].name
; ++j
)
166 if (strcasecmp(i386_types
[j
].name
, name
) == 0)
168 if (i386_types
[j
].name
&& *pc
== ' ')
170 char *name
= ++input_line_pointer
;
171 char c
= get_symbol_end ();
173 if (strcasecmp (name
, "ptr") == 0)
177 if (intel_syntax
> 0 || operands
!= 1)
179 return i386_types
[j
].op
;
182 *input_line_pointer
= c
;
183 input_line_pointer
= name
- 1;
189 static int i386_intel_parse_name (const char *name
, expressionS
*e
)
193 for (i
= 0; i386_types
[i
].name
; ++i
)
194 if (strcasecmp(i386_types
[i
].name
, name
) == 0)
196 e
->X_op
= O_constant
;
197 e
->X_add_number
= i386_types
[i
].sz
[flag_code
];
198 e
->X_add_symbol
= NULL
;
199 e
->X_op_symbol
= NULL
;
206 static INLINE
int i386_intel_check (const reg_entry
*reg
,
207 const reg_entry
*base
,
208 const reg_entry
*index
)
210 if ((this_operand
>= 0 && reg
!= i
.op
[this_operand
].regs
)
211 || base
!= intel_state
.base
|| index
!= intel_state
.index
)
213 as_bad (_("invalid use of register"));
219 static INLINE
void i386_intel_fold (expressionS
*e
, symbolS
*sym
)
221 if (S_GET_SEGMENT (sym
) == absolute_section
)
223 offsetT val
= e
->X_add_number
;
225 *e
= *symbol_get_value_expression (sym
);
226 e
->X_add_number
+= val
;
230 e
->X_add_symbol
= sym
;
231 e
->X_op_symbol
= NULL
;
236 static int i386_intel_simplify (expressionS
*);
238 static INLINE
int i386_intel_simplify_symbol(symbolS
*sym
)
240 int ret
= i386_intel_simplify (symbol_get_value_expression (sym
));
244 S_SET_SEGMENT(sym
, absolute_section
);
250 static int i386_intel_simplify (expressionS
*e
)
252 const reg_entry
*reg
= this_operand
>= 0 ? i
.op
[this_operand
].regs
: NULL
;
253 const reg_entry
*base
= intel_state
.base
;
254 const reg_entry
*index
= intel_state
.index
;
265 if (!i386_intel_simplify_symbol (e
->X_add_symbol
)
266 || !i386_intel_check(reg
, intel_state
.base
, intel_state
.index
))
269 if (!intel_state
.in_offset
)
270 ++intel_state
.in_bracket
;
271 ret
= i386_intel_simplify_symbol (e
->X_op_symbol
);
272 if (!intel_state
.in_offset
)
273 --intel_state
.in_bracket
;
279 i386_intel_fold (e
, e
->X_op_symbol
);
283 intel_state
.has_offset
= 1;
284 ++intel_state
.in_offset
;
285 ret
= i386_intel_simplify_symbol (e
->X_add_symbol
);
286 --intel_state
.in_offset
;
287 if (!ret
|| !i386_intel_check(reg
, base
, index
))
289 i386_intel_fold (e
, e
->X_add_symbol
);
303 if (intel_state
.op_modifier
== O_absent
)
304 intel_state
.op_modifier
= e
->X_op
;
307 if (symbol_get_value_expression (e
->X_add_symbol
)->X_op
== O_register
)
309 as_bad (_("invalid use of register"));
312 if (!i386_intel_simplify_symbol (e
->X_add_symbol
))
314 i386_intel_fold (e
, e
->X_add_symbol
);
318 if (symbol_get_value_expression (e
->X_op_symbol
)->X_op
== O_register
)
320 as_bad (_("invalid use of register"));
323 if (!i386_intel_simplify_symbol (e
->X_op_symbol
)
324 || !i386_intel_check(reg
, intel_state
.base
, intel_state
.index
))
326 if (!intel_state
.in_offset
)
327 intel_state
.seg
= e
->X_add_symbol
;
328 i386_intel_fold (e
, e
->X_op_symbol
);
332 if (this_operand
< 0 || intel_state
.in_offset
)
334 as_bad (_("invalid use of register"));
337 if (!intel_state
.in_bracket
)
339 if (i
.op
[this_operand
].regs
)
341 as_bad (_("invalid use of register"));
344 if (i386_regtab
[e
->X_add_number
].reg_type
.bitfield
.sreg3
345 && i386_regtab
[e
->X_add_number
].reg_num
== RegFlat
)
347 as_bad (_("invalid use of pseudo-register"));
350 i
.op
[this_operand
].regs
= i386_regtab
+ e
->X_add_number
;
352 else if (!intel_state
.base
&& !intel_state
.in_scale
)
353 intel_state
.base
= i386_regtab
+ e
->X_add_number
;
354 else if (!intel_state
.index
)
355 intel_state
.index
= i386_regtab
+ e
->X_add_number
;
358 /* esp is invalid as index */
359 intel_state
.index
= i386_regtab
+ REGNAM_EAX
+ 4;
361 e
->X_op
= O_constant
;
366 if (this_operand
>= 0 && intel_state
.in_bracket
)
368 expressionS
*scale
= NULL
;
370 if (intel_state
.index
)
373 if (!intel_state
.in_scale
++)
374 intel_state
.scale_factor
= 1;
376 ret
= i386_intel_simplify_symbol (e
->X_add_symbol
);
377 if (ret
&& !scale
&& intel_state
.index
)
378 scale
= symbol_get_value_expression (e
->X_op_symbol
);
381 ret
= i386_intel_simplify_symbol (e
->X_op_symbol
);
382 if (ret
&& !scale
&& intel_state
.index
)
383 scale
= symbol_get_value_expression (e
->X_add_symbol
);
385 if (ret
&& scale
&& (scale
+ 1))
387 resolve_expression (scale
);
388 if (scale
->X_op
!= O_constant
389 || intel_state
.index
->reg_type
.bitfield
.reg16
)
390 scale
->X_add_number
= 0;
391 intel_state
.scale_factor
*= scale
->X_add_number
;
394 --intel_state
.in_scale
;
398 if (!intel_state
.in_scale
)
399 switch (intel_state
.scale_factor
)
402 i
.log2_scale_factor
= 0;
405 i
.log2_scale_factor
= 1;
408 i
.log2_scale_factor
= 2;
411 i
.log2_scale_factor
= 3;
414 /* esp is invalid as index */
415 intel_state
.index
= i386_regtab
+ REGNAM_EAX
+ 4;
423 if (e
->X_add_symbol
&& !i386_intel_simplify_symbol (e
->X_add_symbol
))
425 if (e
->X_op
== O_add
|| e
->X_op
== O_subtract
)
427 base
= intel_state
.base
;
428 index
= intel_state
.index
;
430 if (!i386_intel_check (reg
, base
, index
)
431 || (e
->X_op_symbol
&& !i386_intel_simplify_symbol (e
->X_op_symbol
))
432 || !i386_intel_check (reg
,
433 e
->X_op
!= O_add
? base
: intel_state
.base
,
434 e
->X_op
!= O_add
? index
: intel_state
.index
))
439 if (this_operand
>= 0 && e
->X_op
== O_symbol
&& !intel_state
.in_offset
)
441 segT seg
= S_GET_SEGMENT (e
->X_add_symbol
);
443 if (seg
!= absolute_section
444 && seg
!= reg_section
445 && seg
!= expr_section
)
446 intel_state
.is_mem
|= 2 - !intel_state
.in_bracket
;
452 int i386_need_index_operator (void)
454 return intel_syntax
< 0;
458 i386_intel_operand (char *operand_string
, int got_a_float
)
460 char *saved_input_line_pointer
, *buf
;
462 expressionS exp
, *expP
;
466 /* Initialize state structure. */
467 intel_state
.op_modifier
= O_absent
;
468 intel_state
.is_mem
= 0;
469 intel_state
.base
= NULL
;
470 intel_state
.index
= NULL
;
471 intel_state
.seg
= NULL
;
472 operand_type_set (&intel_state
.reloc_types
, ~0);
473 gas_assert (!intel_state
.in_offset
);
474 gas_assert (!intel_state
.in_bracket
);
475 gas_assert (!intel_state
.in_scale
);
477 saved_input_line_pointer
= input_line_pointer
;
478 input_line_pointer
= buf
= xstrdup (operand_string
);
480 /* A '$' followed by an identifier char is an identifier. Otherwise,
481 it's operator '.' followed by an expression. */
482 if (*buf
== '$' && !is_identifier_char (buf
[1]))
486 memset (&exp
, 0, sizeof(exp
));
487 exp_seg
= expression (&exp
);
488 ret
= i386_intel_simplify (&exp
);
492 if (!is_end_of_line
[(unsigned char) *input_line_pointer
])
494 as_bad (_("junk `%s' after expression"), input_line_pointer
);
497 else if (exp
.X_op
== O_illegal
|| exp
.X_op
== O_absent
)
499 as_bad (_("invalid expression"));
502 else if (!intel_state
.has_offset
503 && input_line_pointer
> buf
504 && *(input_line_pointer
- 1) == ']')
505 intel_state
.is_mem
|= 1;
507 input_line_pointer
= saved_input_line_pointer
;
510 gas_assert (!intel_state
.in_offset
);
511 gas_assert (!intel_state
.in_bracket
);
512 gas_assert (!intel_state
.in_scale
);
517 if (intel_state
.op_modifier
!= O_absent
518 && current_templates
->start
->base_opcode
!= 0x8d /* lea */)
520 i
.types
[this_operand
].bitfield
.unspecified
= 0;
522 switch (intel_state
.op_modifier
)
525 i
.types
[this_operand
].bitfield
.byte
= 1;
526 suffix
= BYTE_MNEM_SUFFIX
;
530 i
.types
[this_operand
].bitfield
.word
= 1;
531 if ((current_templates
->start
->name
[0] == 'l'
532 && current_templates
->start
->name
[2] == 's'
533 && current_templates
->start
->name
[3] == 0)
534 || current_templates
->start
->base_opcode
== 0x62 /* bound */)
535 suffix
= BYTE_MNEM_SUFFIX
; /* so it will cause an error */
536 else if (got_a_float
== 2) /* "fi..." */
537 suffix
= SHORT_MNEM_SUFFIX
;
539 suffix
= WORD_MNEM_SUFFIX
;
543 i
.types
[this_operand
].bitfield
.dword
= 1;
544 if ((current_templates
->start
->name
[0] == 'l'
545 && current_templates
->start
->name
[2] == 's'
546 && current_templates
->start
->name
[3] == 0)
547 || current_templates
->start
->base_opcode
== 0x62 /* bound */)
548 suffix
= WORD_MNEM_SUFFIX
;
549 else if (flag_code
== CODE_16BIT
550 && (current_templates
->start
->opcode_modifier
.jump
551 || current_templates
->start
->opcode_modifier
.jumpdword
))
552 suffix
= LONG_DOUBLE_MNEM_SUFFIX
;
553 else if (got_a_float
== 1) /* "f..." */
554 suffix
= SHORT_MNEM_SUFFIX
;
556 suffix
= LONG_MNEM_SUFFIX
;
560 i
.types
[this_operand
].bitfield
.fword
= 1;
561 if (current_templates
->start
->name
[0] == 'l'
562 && current_templates
->start
->name
[2] == 's'
563 && current_templates
->start
->name
[3] == 0)
564 suffix
= LONG_MNEM_SUFFIX
;
565 else if (!got_a_float
)
567 if (flag_code
== CODE_16BIT
)
568 add_prefix (DATA_PREFIX_OPCODE
);
569 suffix
= LONG_DOUBLE_MNEM_SUFFIX
;
572 suffix
= BYTE_MNEM_SUFFIX
; /* so it will cause an error */
576 i
.types
[this_operand
].bitfield
.qword
= 1;
577 if (current_templates
->start
->base_opcode
== 0x62 /* bound */
578 || got_a_float
== 1) /* "f..." */
579 suffix
= LONG_MNEM_SUFFIX
;
581 suffix
= QWORD_MNEM_SUFFIX
;
585 i
.types
[this_operand
].bitfield
.tbyte
= 1;
586 if (got_a_float
== 1)
587 suffix
= LONG_DOUBLE_MNEM_SUFFIX
;
589 suffix
= BYTE_MNEM_SUFFIX
; /* so it will cause an error */
594 i
.types
[this_operand
].bitfield
.xmmword
= 1;
595 suffix
= XMMWORD_MNEM_SUFFIX
;
599 i
.types
[this_operand
].bitfield
.ymmword
= 1;
600 suffix
= YMMWORD_MNEM_SUFFIX
;
604 suffix
= LONG_DOUBLE_MNEM_SUFFIX
;
607 if (!current_templates
->start
->opcode_modifier
.jump
608 && !current_templates
->start
->opcode_modifier
.jumpdword
)
609 suffix
= got_a_float
/* so it will cause an error */
611 : LONG_DOUBLE_MNEM_SUFFIX
;
615 BAD_CASE (intel_state
.op_modifier
);
621 else if (i
.suffix
!= suffix
)
623 as_bad (_("conflicting operand size modifiers"));
628 /* Operands for jump/call need special consideration. */
629 if (current_templates
->start
->opcode_modifier
.jump
630 || current_templates
->start
->opcode_modifier
.jumpdword
631 || current_templates
->start
->opcode_modifier
.jumpintersegment
)
633 if (i
.op
[this_operand
].regs
|| intel_state
.base
|| intel_state
.index
634 || intel_state
.is_mem
> 1)
635 i
.types
[this_operand
].bitfield
.jumpabsolute
= 1;
637 switch (intel_state
.op_modifier
)
641 i
.types
[this_operand
].bitfield
.jumpabsolute
= 1;
643 intel_state
.is_mem
= 1;
647 if (!intel_state
.seg
)
649 intel_state
.is_mem
= 1;
650 if (intel_state
.op_modifier
== O_absent
)
652 as_bad (_("cannot infer the segment part of the operand"));
655 else if (S_GET_SEGMENT (intel_state
.seg
) == reg_section
)
656 i
.types
[this_operand
].bitfield
.jumpabsolute
= 1;
659 i386_operand_type types
;
661 if (i
.imm_operands
>= MAX_IMMEDIATE_OPERANDS
)
663 as_bad (_("at most %d immediate operands are allowed"),
664 MAX_IMMEDIATE_OPERANDS
);
667 expP
= &im_expressions
[i
.imm_operands
++];
668 memset (expP
, 0, sizeof(*expP
));
669 expP
->X_op
= O_symbol
;
670 expP
->X_add_symbol
= intel_state
.seg
;
671 i
.op
[this_operand
].imms
= expP
;
673 resolve_expression (expP
);
674 operand_type_set (&types
, ~0);
675 if (!i386_finalize_immediate (S_GET_SEGMENT (intel_state
.seg
),
676 expP
, types
, operand_string
))
678 if (i
.operands
< MAX_OPERANDS
)
680 this_operand
= i
.operands
++;
681 i
.types
[this_operand
].bitfield
.unspecified
= 1;
683 if (suffix
== LONG_DOUBLE_MNEM_SUFFIX
)
685 intel_state
.seg
= NULL
;
686 intel_state
.is_mem
= 0;
690 i
.types
[this_operand
].bitfield
.jumpabsolute
= 1;
693 if (i
.types
[this_operand
].bitfield
.jumpabsolute
)
694 intel_state
.is_mem
|= 1;
696 else if (intel_state
.seg
)
697 intel_state
.is_mem
|= 1;
699 if (i
.op
[this_operand
].regs
)
701 i386_operand_type temp
;
703 /* Register operand. */
704 if (intel_state
.base
|| intel_state
.index
|| intel_state
.seg
)
706 as_bad (_("invalid operand"));
710 temp
= i
.op
[this_operand
].regs
->reg_type
;
711 temp
.bitfield
.baseindex
= 0;
712 i
.types
[this_operand
] = operand_type_or (i
.types
[this_operand
], temp
);
713 i
.types
[this_operand
].bitfield
.unspecified
= 0;
716 else if (intel_state
.base
|| intel_state
.index
|| intel_state
.seg
717 || intel_state
.is_mem
)
719 /* Memory operand. */
721 >= 2 - !current_templates
->start
->opcode_modifier
.isstring
)
723 as_bad (_("too many memory references for `%s'"),
724 current_templates
->start
->name
);
728 expP
= &disp_expressions
[i
.disp_operands
];
729 memcpy (expP
, &exp
, sizeof(exp
));
730 resolve_expression (expP
);
732 if (expP
->X_op
!= O_constant
|| expP
->X_add_number
733 || (!intel_state
.base
&& !intel_state
.index
))
735 i
.op
[this_operand
].disps
= expP
;
738 if (flag_code
== CODE_64BIT
)
740 i
.types
[this_operand
].bitfield
.disp32
= 1;
741 if (!i
.prefix
[ADDR_PREFIX
])
743 i
.types
[this_operand
].bitfield
.disp64
= 1;
744 i
.types
[this_operand
].bitfield
.disp32s
= 1;
747 else if (!i
.prefix
[ADDR_PREFIX
] ^ (flag_code
== CODE_16BIT
))
748 i
.types
[this_operand
].bitfield
.disp32
= 1;
750 i
.types
[this_operand
].bitfield
.disp16
= 1;
752 #if defined (OBJ_AOUT) || defined (OBJ_MAYBE_AOUT)
754 * exp_seg is used only for verification in
755 * i386_finalize_displacement, and we can end up seeing reg_section
756 * here - but we know we removed all registers from the expression
757 * (or error-ed on any remaining ones) in i386_intel_simplify. I
758 * consider the check in i386_finalize_displacement bogus anyway, in
759 * particular because it doesn't allow for expr_section, so I'd
760 * rather see that check (and the similar one in
761 * i386_finalize_immediate) use SEG_NORMAL(), but not being an a.out
762 * expert I can't really say whether that would have other bad side
765 if (OUTPUT_FLAVOR
== bfd_target_aout_flavour
766 && exp_seg
== reg_section
)
767 exp_seg
= expP
->X_op
!= O_constant
? undefined_section
771 if (!i386_finalize_displacement (exp_seg
, expP
,
772 intel_state
.reloc_types
,
777 if (intel_state
.base
|| intel_state
.index
)
778 i
.types
[this_operand
].bitfield
.baseindex
= 1;
784 expP
= symbol_get_value_expression (intel_state
.seg
);
785 if (expP
->X_op
!= O_full_ptr
)
787 intel_state
.seg
= expP
->X_add_symbol
;
789 if (expP
->X_op
!= O_register
)
791 as_bad (_("segment register name expected"));
794 if (!i386_regtab
[expP
->X_add_number
].reg_type
.bitfield
.sreg2
795 && !i386_regtab
[expP
->X_add_number
].reg_type
.bitfield
.sreg3
)
797 as_bad (_("invalid use of register"));
800 switch (i386_regtab
[expP
->X_add_number
].reg_num
)
802 case 0: i
.seg
[i
.mem_operands
] = &es
; break;
803 case 1: i
.seg
[i
.mem_operands
] = &cs
; break;
804 case 2: i
.seg
[i
.mem_operands
] = &ss
; break;
805 case 3: i
.seg
[i
.mem_operands
] = &ds
; break;
806 case 4: i
.seg
[i
.mem_operands
] = &fs
; break;
807 case 5: i
.seg
[i
.mem_operands
] = &gs
; break;
808 case RegFlat
: i
.seg
[i
.mem_operands
] = NULL
; break;
812 /* Swap base and index in 16-bit memory operands like
813 [si+bx]. Since i386_index_check is also used in AT&T
814 mode we have to do that here. */
817 && intel_state
.base
->reg_type
.bitfield
.reg16
818 && intel_state
.index
->reg_type
.bitfield
.reg16
819 && intel_state
.base
->reg_num
>= 6
820 && intel_state
.index
->reg_num
< 6)
822 i
.base_reg
= intel_state
.index
;
823 i
.index_reg
= intel_state
.base
;
827 i
.base_reg
= intel_state
.base
;
828 i
.index_reg
= intel_state
.index
;
831 if (!i386_index_check (operand_string
))
834 i
.types
[this_operand
].bitfield
.mem
= 1;
840 if (i
.imm_operands
>= MAX_IMMEDIATE_OPERANDS
)
842 as_bad (_("at most %d immediate operands are allowed"),
843 MAX_IMMEDIATE_OPERANDS
);
847 expP
= &im_expressions
[i
.imm_operands
++];
848 i
.op
[this_operand
].imms
= expP
;
851 return i386_finalize_immediate (exp_seg
, expP
, intel_state
.reloc_types
,