Lines Matching refs:operand

23 /* Extract the operand value from the PowerPC or POWER instruction.  */
26 operand_value_powerpc (const struct powerpc_operand *operand,
32 if (operand->extract)
33 value = (*operand->extract) (insn, dialect, &invalid);
36 if (operand->shift >= 0)
37 value = (insn >> operand->shift) & operand->bitm;
39 value = (insn << -operand->shift) & operand->bitm;
40 if ((operand->flags & PPC_OPERAND_SIGNED) != 0)
44 unsigned long top = operand->bitm;
56 /* Determine whether the optional operand(s) should be printed. */
62 const struct powerpc_operand *operand;
66 operand = &powerpc_operands[*opindex];
67 if ((operand->flags & PPC_OPERAND_NEXT) != 0
68 || ((operand->flags & PPC_OPERAND_OPTIONAL) != 0
69 && operand_value_powerpc (operand, insn, dialect) !=
70 ppc_optional_operand_value (operand)))
91 const struct powerpc_operand *operand;
104 operand = powerpc_operands + *opindex;
105 if (operand->extract)
106 (*operand->extract) (insn, dialect, &invalid);
164 const struct powerpc_operand *operand;
186 operand = powerpc_operands + *opindex;
191 if ((operand->flags & PPC_OPERAND_FAKE) != 0)
196 if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0)
205 value = operand_value_powerpc (operand, insn, dialect);
213 /* Print the operand as directed by the flags. */
214 if ((operand->flags & PPC_OPERAND_GPR) != 0
215 || ((operand->flags & PPC_OPERAND_GPR_0) != 0 && value != 0))
217 else if ((operand->flags & PPC_OPERAND_FPR) != 0)
219 else if ((operand->flags & PPC_OPERAND_VR) != 0)
221 else if ((operand->flags & PPC_OPERAND_VSR) != 0)
223 else if ((operand->flags & PPC_OPERAND_RELATIVE) != 0)
225 else if ((operand->flags & PPC_OPERAND_ABSOLUTE) != 0)
227 else if ((operand->flags & PPC_OPERAND_FSL) != 0)
229 else if ((operand->flags & PPC_OPERAND_FCR) != 0)
231 else if ((operand->flags & PPC_OPERAND_UDI) != 0)
233 else if ((operand->flags & PPC_OPERAND_CR_REG) != 0
237 else if (((operand->flags & PPC_OPERAND_CR_BIT) != 0)
260 if ((operand->flags & PPC_OPERAND_PARENS) == 0)