Home
last modified time | relevance | path

Searched refs:operand (Results 1 – 25 of 1162) sorted by relevance

12345678910>>...47

/openbsd/src/gnu/usr.bin/binutils/opcodes/
Dtic30-dis.c239 char operand[2][13] = local
264 get_register_operand ((insn_word & 0x001F0000) >> 16, operand[dest_op]);
271 get_register_operand ((insn_word & 0x0000001F), operand[src_op]);
274 sprintf (operand[src_op], "@0x%lX", (insn_word & 0x0000FFFF));
277 get_indirect_operand ((insn_word & 0x0000FFFF), 2, operand[src_op]);
285 sprintf (operand[src_op], "%2.2f", f_number);
288 sprintf (operand[src_op], "%d", (short) (insn_word & 0x0000FFFF));
291 sprintf (operand[src_op], "%lu", (insn_word & 0x0000FFFF));
300 sprintf (operand[0], "0x%06lX", (insn_word & 0x000000FF) << 16);
301 operand[1][0] = '\0';
[all …]
Dtic54x-dis.c179 char operand[4][64] = { {0},{0},{0},{0}, }; local
213 sprint_dual_address (info, operand[i], XMEM (opcode));
214 info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
217 sprint_dual_address (info, operand[i], YMEM (opcode));
218 info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
243 sprint_indirect_address (info, operand[i], opcode);
244 info->fprintf_func (info->stream, "%s", operand[i]);
251 sprint_direct_address (info, operand[i], opcode);
252 info->fprintf_func (info->stream, "%s", operand[i]);
268 sprint_mmr (info, operand[i], MMRX (opcode));
[all …]
Darc-opc.c63 enum operand {OP_NONE,OP_REG,OP_SHIMM,OP_LIMM}; enum
67 enum operand ls_operand[OPERANDS];
675 insert_reg (insn, operand, mods, reg, value, errmsg) in insert_reg() argument
677 const struct arc_operand *operand;
684 enum operand op_type = OP_NONE;
705 if ('a' != operand->fmt)
717 insn |= marker << operand->shift;
726 insn |= ARC_REG_LIMM << operand->shift;
754 insn |= ARC_REG_SHIMM << operand->shift;
761 if ('a' == operand->fmt || ((insn & I(-1)) < I(2)))
[all …]
Dm10300-dis.c222 const struct mn10300_operand *operand; local
498 operand = &mn10300_operands[*opindex_ptr];
502 if ((operand->flags & MN10300_OPERAND_PLUS) != 0)
505 if ((operand->flags & MN10300_OPERAND_SPLIT) != 0)
508 value = insn & ((1 << operand->bits) - 1);
509 value <<= (32 - operand->bits);
510 temp = extension >> operand->shift;
511 temp &= ((1 << (32 - operand->bits)) - 1);
516 else if ((operand->flags & MN10300_OPERAND_24BIT) != 0)
519 value = insn & ((1 << operand->bits) - 1);
[all …]
Ds390-dis.c71 s390_extract_operand (insn, operand) in s390_extract_operand() argument
73 const struct s390_operand *operand;
79 insn += operand->shift / 8;
80 bits = (operand->shift & 7) + operand->bits;
90 val &= ((1U << (operand->bits - 1)) << 1) - 1;
93 if (operand->bits == 20 && operand->shift == 20)
97 if ((operand->flags & (S390_OPERAND_SIGNED | S390_OPERAND_PCREL))
98 && (val & (1U << (operand->bits - 1))))
99 val |= (-1U << (operand->bits - 1)) << 1;
102 if (operand->flags & S390_OPERAND_PCREL)
[all …]
Dalpha-dis.c134 const struct alpha_operand *operand = alpha_operands + *opindex; local
135 if (operand->extract)
136 (*operand->extract) (insn, &invalid);
160 const struct alpha_operand *operand = alpha_operands + *opindex; local
166 if ((operand->flags & AXP_OPERAND_FAKE) != 0)
170 if (operand->extract)
171 value = (*operand->extract) (insn, (int *) NULL);
174 value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
175 if (operand->flags & AXP_OPERAND_SIGNED)
177 int signbit = 1 << (operand->bits - 1);
[all …]
Di370-dis.c61 const struct i370_operand *operand; in print_insn_i370() local
94 operand = i370_operands + *opindex; in print_insn_i370()
95 if (operand->extract) in print_insn_i370()
96 (*operand->extract) (insn, &invalid); in print_insn_i370()
110 operand = i370_operands + *opindex; in print_insn_i370()
113 if (operand->extract) in print_insn_i370()
114 value = (*operand->extract) (insn, (int *) NULL); in print_insn_i370()
117 value = (insn.i[0] >> operand->shift) & ((1 << operand->bits) - 1); in print_insn_i370()
121 if ((operand->flags & I370_OPERAND_OPTIONAL) != 0) in print_insn_i370()
126 else if ((operand->flags & I370_OPERAND_SBASE) != 0) in print_insn_i370()
[all …]
Dppc-dis.c165 const struct powerpc_operand *operand; in print_insn_powerpc() local
186 operand = powerpc_operands + *opindex; in print_insn_powerpc()
187 if (operand->extract) in print_insn_powerpc()
188 (*operand->extract) (insn, dialect, &invalid); in print_insn_powerpc()
206 operand = powerpc_operands + *opindex; in print_insn_powerpc()
211 if ((operand->flags & PPC_OPERAND_FAKE) != 0) in print_insn_powerpc()
215 if (operand->extract) in print_insn_powerpc()
216 value = (*operand->extract) (insn, dialect, &invalid); in print_insn_powerpc()
219 value = (insn >> operand->shift) & ((1 << operand->bits) - 1); in print_insn_powerpc()
220 if ((operand->flags & PPC_OPERAND_SIGNED) != 0 in print_insn_powerpc()
[all …]
Dtic80-dis.c139 print_operand (info, value, insn, operand, memaddr) in print_operand() argument
143 const struct tic80_operand *operand;
146 if ((operand->flags & TIC80_OPERAND_GPR) != 0)
149 if (M_SI (insn, operand) || M_LI (insn, operand))
154 else if ((operand->flags & TIC80_OPERAND_FPA) != 0)
158 else if ((operand->flags & TIC80_OPERAND_PCREL) != 0)
162 else if ((operand->flags & TIC80_OPERAND_BASEREL) != 0)
166 else if ((operand->flags & TIC80_OPERAND_BITNUM) != 0)
170 else if ((operand->flags & TIC80_OPERAND_CC) != 0)
174 else if ((operand->flags & TIC80_OPERAND_CR) != 0)
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/opcodes/
Dtic30-dis.c341 char operand[2][13] = in print_two_operand() local
368 get_register_operand ((insn_word & 0x001F0000) >> 16, operand[dest_op]); in print_two_operand()
375 get_register_operand ((insn_word & 0x0000001F), operand[src_op]); in print_two_operand()
378 sprintf (operand[src_op], "@0x%lX", (insn_word & 0x0000FFFF)); in print_two_operand()
381 get_indirect_operand ((insn_word & 0x0000FFFF), 2, operand[src_op]); in print_two_operand()
389 sprintf (operand[src_op], "%2.2f", f_number); in print_two_operand()
392 sprintf (operand[src_op], "%d", (short) (insn_word & 0x0000FFFF)); in print_two_operand()
395 sprintf (operand[src_op], "%lu", (insn_word & 0x0000FFFF)); in print_two_operand()
404 sprintf (operand[0], "0x%06lX", (insn_word & 0x000000FF) << 16); in print_two_operand()
405 operand[1][0] = '\0'; in print_two_operand()
[all …]
Dtic54x-dis.c179 char operand[4][64] = { {0},{0},{0},{0}, }; local
213 sprint_dual_address (info, operand[i], XMEM (opcode));
214 info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
217 sprint_dual_address (info, operand[i], YMEM (opcode));
218 info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
243 sprint_indirect_address (info, operand[i], opcode);
244 info->fprintf_func (info->stream, "%s", operand[i]);
251 sprint_direct_address (info, operand[i], opcode);
252 info->fprintf_func (info->stream, "%s", operand[i]);
268 sprint_mmr (info, operand[i], MMRX (opcode));
[all …]
Dm10300-dis.c38 const struct mn10300_operand *operand; in disassemble() local
314 operand = &mn10300_operands[*opindex_ptr]; in disassemble()
318 if ((operand->flags & MN10300_OPERAND_PLUS) != 0) in disassemble()
321 if ((operand->flags & MN10300_OPERAND_SPLIT) != 0) in disassemble()
325 value = insn & ((1 << operand->bits) - 1); in disassemble()
326 value <<= (32 - operand->bits); in disassemble()
327 temp = extension >> operand->shift; in disassemble()
328 temp &= ((1 << (32 - operand->bits)) - 1); in disassemble()
333 else if ((operand->flags & MN10300_OPERAND_24BIT) != 0) in disassemble()
337 value = insn & ((1 << operand->bits) - 1); in disassemble()
[all …]
Ds390-dis.c66 s390_extract_operand (unsigned char *insn, const struct s390_operand *operand) in s390_extract_operand() argument
72 insn += operand->shift / 8; in s390_extract_operand()
73 bits = (operand->shift & 7) + operand->bits; in s390_extract_operand()
83 val &= ((1U << (operand->bits - 1)) << 1) - 1; in s390_extract_operand()
86 if (operand->bits == 20 && operand->shift == 20) in s390_extract_operand()
90 if ((operand->flags & (S390_OPERAND_SIGNED | S390_OPERAND_PCREL)) in s390_extract_operand()
91 && (val & (1U << (operand->bits - 1)))) in s390_extract_operand()
92 val |= (-1U << (operand->bits - 1)) << 1; in s390_extract_operand()
95 if (operand->flags & S390_OPERAND_PCREL) in s390_extract_operand()
99 if (operand->flags & S390_OPERAND_LENGTH) in s390_extract_operand()
[all …]
Darc-opc.c27 enum operand {OP_NONE,OP_REG,OP_SHIMM,OP_LIMM}; enum
31 enum operand ls_operand[OPERANDS];
331 const struct arc_operand *operand, in insert_reg() argument
338 enum operand op_type = OP_NONE; in insert_reg()
359 if ('a' != operand->fmt) in insert_reg()
371 insn |= marker << operand->shift; in insert_reg()
380 insn |= ARC_REG_LIMM << operand->shift; in insert_reg()
406 insn |= ARC_REG_SHIMM << operand->shift; in insert_reg()
413 if ('a' == operand->fmt || ((insn & I(-1)) < I(2))) in insert_reg()
418 if ('a' != operand->fmt) in insert_reg()
[all …]
Dtic80-dis.c103 const struct tic80_operand *operand, in print_operand() argument
106 if ((operand->flags & TIC80_OPERAND_GPR) != 0) in print_operand()
109 if (M_SI (insn, operand) || M_LI (insn, operand)) in print_operand()
114 else if ((operand->flags & TIC80_OPERAND_FPA) != 0) in print_operand()
117 else if ((operand->flags & TIC80_OPERAND_PCREL) != 0) in print_operand()
120 else if ((operand->flags & TIC80_OPERAND_BASEREL) != 0) in print_operand()
123 else if ((operand->flags & TIC80_OPERAND_BITNUM) != 0) in print_operand()
126 else if ((operand->flags & TIC80_OPERAND_CC) != 0) in print_operand()
129 else if ((operand->flags & TIC80_OPERAND_CR) != 0) in print_operand()
132 else if ((operand->flags & TIC80_OPERAND_FLOAT) != 0) in print_operand()
[all …]
Dalpha-dis.c135 const struct alpha_operand *operand = alpha_operands + *opindex; local
136 if (operand->extract)
137 (*operand->extract) (insn, &invalid);
161 const struct alpha_operand *operand = alpha_operands + *opindex; local
167 if ((operand->flags & AXP_OPERAND_FAKE) != 0)
171 if (operand->extract)
172 value = (*operand->extract) (insn, (int *) NULL);
175 value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
176 if (operand->flags & AXP_OPERAND_SIGNED)
178 int signbit = 1 << (operand->bits - 1);
[all …]
Di370-dis.c61 const struct i370_operand *operand; in print_insn_i370() local
96 operand = i370_operands + *opindex; in print_insn_i370()
97 if (operand->extract) in print_insn_i370()
98 (*operand->extract) (insn, &invalid); in print_insn_i370()
113 operand = i370_operands + *opindex; in print_insn_i370()
116 if (operand->extract) in print_insn_i370()
117 value = (*operand->extract) (insn, (int *) NULL); in print_insn_i370()
119 value = (insn.i[0] >> operand->shift) & ((1 << operand->bits) - 1); in print_insn_i370()
122 if ((operand->flags & I370_OPERAND_OPTIONAL) != 0) in print_insn_i370()
127 else if ((operand->flags & I370_OPERAND_SBASE) != 0) in print_insn_i370()
[all …]
Dppc-dis.c159 const struct powerpc_operand *operand; in print_insn_powerpc() local
180 operand = powerpc_operands + *opindex; in print_insn_powerpc()
181 if (operand->extract) in print_insn_powerpc()
182 (*operand->extract) (insn, dialect, &invalid); in print_insn_powerpc()
200 operand = powerpc_operands + *opindex; in print_insn_powerpc()
205 if ((operand->flags & PPC_OPERAND_FAKE) != 0) in print_insn_powerpc()
209 if (operand->extract) in print_insn_powerpc()
210 value = (*operand->extract) (insn, dialect, &invalid); in print_insn_powerpc()
213 value = (insn >> operand->shift) & ((1 << operand->bits) - 1); in print_insn_powerpc()
214 if ((operand->flags & PPC_OPERAND_SIGNED) != 0 in print_insn_powerpc()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/gas/config/
Dtc-h8300.c510 constant_fits_width_p (struct h8_op *operand, unsigned int width) in constant_fits_width_p() argument
512 return ((operand->exp.X_add_number & ~width) == 0 in constant_fits_width_p()
513 || (operand->exp.X_add_number | width) == (unsigned)(~0)); in constant_fits_width_p()
517 constant_fits_size_p (struct h8_op *operand, int size, int no_symbols) in constant_fits_size_p() argument
519 offsetT num = operand->exp.X_add_number; in constant_fits_size_p()
521 && (operand->exp.X_add_symbol != 0 || operand->exp.X_op_symbol != 0)) in constant_fits_size_p()
841 get_operands (unsigned int noperands, char *op_end, struct h8_op *operand) in get_operands() argument
852 get_operand (&ptr, operand + 0, SRC); in get_operands()
856 get_operand (&ptr, operand + 1, DST); in get_operands()
862 get_operand (&ptr, operand + 0, SRC); in get_operands()
[all …]
Dtc-pdp11.c323 parse_reg (char *str, struct pdp11_code *operand) in parse_reg() argument
333 operand->code = *str - '0'; in parse_reg()
337 operand->error = "Bad register name"; in parse_reg()
344 operand->code = 6; in parse_reg()
350 operand->code = 7; in parse_reg()
355 operand->error = "Bad register name"; in parse_reg()
363 parse_ac5 (char *str, struct pdp11_code *operand) in parse_ac5() argument
376 operand->code = *str - '0'; in parse_ac5()
380 operand->error = "Bad register name"; in parse_ac5()
386 operand->error = "Bad register name"; in parse_ac5()
[all …]
Dtc-v850.c912 const struct v850_operand *operand) in parse_register_list() argument
933 switch (operand->shift) in parse_register_list()
939 as_bad (_("unknown operand shift: %x\n"), operand->shift); in parse_register_list()
1349 handle_lo16 (const struct v850_operand *operand) in handle_lo16() argument
1351 if (operand != NULL) in handle_lo16()
1353 if (operand->bits == -1) in handle_lo16()
1356 if (!(operand->bits == 16 && operand->shift == 16) in handle_lo16()
1357 && !(operand->bits == 15 && operand->shift == 17)) in handle_lo16()
1368 handle_ctoff (const struct v850_operand *operand) in handle_ctoff() argument
1370 if (operand == NULL) in handle_ctoff()
[all …]
Dtc-m32c.c243 int operand; in m32c_indirect_operand() local
246 operand = 1; in m32c_indirect_operand()
250 operand = 2; in m32c_indirect_operand()
254 indirection[operand] = absolute; in m32c_indirect_operand()
256 indirection[operand] = relative; in m32c_indirect_operand()
258 indirection[operand] = relative; in m32c_indirect_operand()
264 operand = 1; in m32c_indirect_operand()
273 operand = 2; in m32c_indirect_operand()
275 if (s[0] == '[' && ! brace_n[operand]) in m32c_indirect_operand()
277 brace_n[operand] += 1; in m32c_indirect_operand()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gas/config/
Dtc-h8300.c529 constant_fits_width_p (struct h8_op *operand, unsigned int width) in constant_fits_width_p() argument
531 return ((operand->exp.X_add_number & ~width) == 0 in constant_fits_width_p()
532 || (operand->exp.X_add_number | width) == (unsigned)(~0)); in constant_fits_width_p()
536 constant_fits_size_p (struct h8_op *operand, int size, int no_symbols) in constant_fits_size_p() argument
538 offsetT num = operand->exp.X_add_number; in constant_fits_size_p()
540 && (operand->exp.X_add_symbol != 0 || operand->exp.X_op_symbol != 0)) in constant_fits_size_p()
860 get_operands (unsigned int noperands, char *op_end, struct h8_op *operand) in get_operands() argument
871 get_operand (&ptr, operand + 0, SRC); in get_operands()
875 get_operand (&ptr, operand + 1, DST); in get_operands()
881 get_operand (&ptr, operand + 0, SRC); in get_operands()
[all …]
Dtc-pdp11.c264 parse_reg (char *str, struct pdp11_code *operand) in parse_reg() argument
274 operand->code = *str - '0'; in parse_reg()
278 operand->error = "Bad register name"; in parse_reg()
285 operand->code = 6; in parse_reg()
291 operand->code = 7; in parse_reg()
296 operand->error = "Bad register name"; in parse_reg()
304 parse_ac5 (char *str, struct pdp11_code *operand) in parse_ac5() argument
317 operand->code = *str - '0'; in parse_ac5()
321 operand->error = "Bad register name"; in parse_ac5()
327 operand->error = "Bad register name"; in parse_ac5()
[all …]
Dtc-a29k.c398 expressionS *operand = &the_operand; local
439 s = parse_operand (s, operand, insn->args[0] == 'I');
461 s = parse_operand (s, operand, args[1] == 'I');
467 if (operand->X_op == O_constant)
469 if (operand->X_add_number < 256)
471 opcode |= (operand->X_add_number << 16);
477 (long) operand->X_add_number);
483 the_insn.exp = *operand;
490 if (operand->X_op == O_register)
498 if (operand->X_op == O_constant)
[all …]

12345678910>>...47