Lines Matching defs:operand
171 const struct powerpc_operand *operand;
192 operand = powerpc_operands + *opindex;
193 if (operand->extract)
194 (*operand->extract) (insn, dialect, &invalid);
212 operand = powerpc_operands + *opindex;
217 if ((operand->flags & PPC_OPERAND_FAKE) != 0)
221 if (operand->extract)
222 value = (*operand->extract) (insn, dialect, &invalid);
225 value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
226 if ((operand->flags & PPC_OPERAND_SIGNED) != 0
227 && (value & (1 << (operand->bits - 1))) != 0)
228 value -= 1 << operand->bits;
231 /* If the operand is optional, and the value is zero, don't
233 if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0
234 && (operand->flags & PPC_OPERAND_NEXT) == 0
244 /* Print the operand as directed by the flags. */
245 if ((operand->flags & PPC_OPERAND_GPR) != 0
246 || ((operand->flags & PPC_OPERAND_GPR_0) != 0 && value != 0))
248 else if ((operand->flags & PPC_OPERAND_FPR) != 0)
250 else if ((operand->flags & PPC_OPERAND_VR) != 0)
252 else if ((operand->flags & PPC_OPERAND_RELATIVE) != 0)
254 else if ((operand->flags & PPC_OPERAND_ABSOLUTE) != 0)
256 else if ((operand->flags & PPC_OPERAND_CR) == 0
261 if (operand->bits == 3)
283 if ((operand->flags & PPC_OPERAND_PARENS) == 0)