Lines Matching refs:op2
1542 struct msp430_operand_s * op2, in try_encode_mova() argument
1555 if (op2->mode != OP_REG) in try_encode_mova()
1565 bin |= 0x80 | op2->reg; in try_encode_mova()
1587 bin |= 0x30 | (op1->reg << 8) | op2->reg; in try_encode_mova()
1620 if (op2->mode == OP_REG) in try_encode_mova()
1622 bin |= 0xc0 | (op1->reg << 8) | op2->reg; in try_encode_mova()
1628 else if (op2->am == 1) in try_encode_mova()
1630 if (op2->reg == 2) in try_encode_mova()
1636 if (op2->exp.X_op == O_constant) in try_encode_mova()
1638 bin |= (op2->exp.X_add_number >> 16) & 0xf; in try_encode_mova()
1640 bfd_putl16 (op2->exp.X_add_number & 0xffff, frag + 2); in try_encode_mova()
1646 fix_new_exp (frag_now, where, 4, &(op2->exp), FALSE, in try_encode_mova()
1653 bin |= 0x70 | (op1->reg << 8) | op2->reg; in try_encode_mova()
1657 if (op2->exp.X_op == O_constant) in try_encode_mova()
1659 if (op2->exp.X_add_number > 0xffff in try_encode_mova()
1660 || op2->exp.X_add_number < -(0x7fff)) in try_encode_mova()
1666 bfd_putl16 (op2->exp.X_add_number & 0xffff, frag + 2); in try_encode_mova()
1671 fix_new_exp (frag_now, where + 2, 2, &(op2->exp), FALSE, in try_encode_mova()
1672 op2->reg == 0 ? in try_encode_mova()
1690 if (op2->mode != OP_REG) in try_encode_mova()
1697 if (op2->reg == 2 || op2->reg == 3) in try_encode_mova()
1704 bin |= 0x20 | op2->reg; in try_encode_mova()
1727 if (op2->mode != OP_REG) in try_encode_mova()
1734 if (op2->reg == 2 || op2->reg == 3) in try_encode_mova()
1748 bin |= 0x10 | (op1->reg << 8) | op2->reg; in try_encode_mova()
1757 if (op2->mode != OP_REG) in try_encode_mova()
1764 if (op2->reg == 2 || op2->reg == 3) in try_encode_mova()
1778 bin |= (op1->reg << 8) | op2->reg; in try_encode_mova()
1807 struct msp430_operand_s op1, op2; in msp430_operands() local
1919 memset (&op2, 0, sizeof (op2)); in msp430_operands()
2109 res += msp430_dstoperand (&op2, l2, opcode->bin_opcode, extended_op, TRUE); in msp430_operands()
2114 insn_length = (extended_op ? 2 : 0) + 2 + (op1.ol * 2) + (op2.ol * 2); in msp430_operands()
2135 if ((op1.ol != 0 || op2.ol != 0) && ((extended & 0xf) != 0)) in msp430_operands()
2154 if (op2.mode == OP_EXP) in msp430_operands()
2156 if (op2.exp.X_op == O_constant) in msp430_operands()
2157 extended |= (op2.exp.X_add_number >> 16) & 0xf; in msp430_operands()
2160 fix_new_exp (frag_now, where, 8, &(op2.exp), FALSE, in msp430_operands()
2161 op2.reg ? BFD_RELOC_MSP430X_ABS20_EXT_ODST in msp430_operands()
2164 fix_new_exp (frag_now, where, 6, &(op2.exp), FALSE, in msp430_operands()
2165 op2.reg ? BFD_RELOC_MSP430X_ABS20_EXT_DST in msp430_operands()
2175 bin |= (op2.reg | (op1.reg << 8) | (op1.am << 4) | (op2.am << 7)); in msp430_operands()
2204 if (op2.mode == OP_EXP) in msp430_operands()
2206 if (op2.exp.X_op == O_constant) in msp430_operands()
2208 bfd_putl16 (op2.exp.X_add_number & 0xffff, frag); in msp430_operands()
2216 if (op2.reg) /* Not PC relative. */ in msp430_operands()
2218 &(op2.exp), FALSE, CHECK_RELOC_MSP430 (op2)); in msp430_operands()
2221 &(op2.exp), TRUE, CHECK_RELOC_MSP430_PCREL); in msp430_operands()
2625 op2.mode = OP_REG; in msp430_operands()
2626 op2.reg = 0; in msp430_operands()
2638 op2.mode = OP_REG; in msp430_operands()
2639 op2.reg = 0; in msp430_operands()
2644 res += msp430_dstoperand (&op2, l2, opcode->bin_opcode, in msp430_operands()
2654 if ((op_length = try_encode_mova (imm_op, bin, & op1, & op2, in msp430_operands()
2714 res += msp430_dstoperand (&op2, l2, opcode->bin_opcode, extended_op, TRUE); in msp430_operands()
2726 if ((op_length = try_encode_mova (imm_op, 0x0000, & op1, & op2, in msp430_operands()
2734 bin |= (op2.reg | (op1.reg << 8) | (op1.am << 4) | (op2.am << 7)); in msp430_operands()
2738 || (is_opcode ("mov") && op2.mode == OP_REG && op2.reg == 2)) in msp430_operands()
2767 + (2 * op2.ol); /* The second operand. */ in msp430_operands()
2778 if ((op1.ol != 0 || op2.ol != 0) && ((extended & 0xf) != 0)) in msp430_operands()
2798 if (op2.mode == OP_EXP) in msp430_operands()
2800 if (op2.exp.X_op == O_constant) in msp430_operands()
2801 extended |= (op2.exp.X_add_number >> 16) & 0xf; in msp430_operands()
2804 fix_new_exp (frag_now, where, 8, &(op2.exp), FALSE, in msp430_operands()
2805 op2.reg ? BFD_RELOC_MSP430X_ABS20_EXT_ODST in msp430_operands()
2809 fix_new_exp (frag_now, where, 6, &(op2.exp), FALSE, in msp430_operands()
2810 op2.reg ? BFD_RELOC_MSP430X_ABS20_EXT_DST in msp430_operands()
2849 if (op2.mode == OP_EXP) in msp430_operands()
2851 if (op2.exp.X_op == O_constant) in msp430_operands()
2853 bfd_putl16 (op2.exp.X_add_number & 0xffff, frag); in msp430_operands()
2861 if (op2.reg) /* Not PC relative. */ in msp430_operands()
2863 &(op2.exp), FALSE, CHECK_RELOC_MSP430 (op2)); in msp430_operands()
2866 &(op2.exp), TRUE, CHECK_RELOC_MSP430_PCREL); in msp430_operands()