Lines Matching refs:insn

907 insert_bat (unsigned long insn,  in insert_bat()  argument
912 return insn | (((insn >> 21) & 0x1f) << 16); in insert_bat()
916 extract_bat (unsigned long insn, in extract_bat() argument
920 if (((insn >> 21) & 0x1f) != ((insn >> 16) & 0x1f)) in extract_bat()
932 insert_bba (unsigned long insn, in insert_bba() argument
937 return insn | (((insn >> 16) & 0x1f) << 11); in insert_bba()
941 extract_bba (unsigned long insn, in extract_bba() argument
945 if (((insn >> 16) & 0x1f) != ((insn >> 11) & 0x1f)) in extract_bba()
968 insert_bdm (unsigned long insn, in insert_bdm() argument
976 insn |= 1 << 21; in insert_bdm()
980 if ((insn & (0x14 << 21)) == (0x04 << 21)) in insert_bdm()
981 insn |= 0x02 << 21; in insert_bdm()
982 else if ((insn & (0x14 << 21)) == (0x10 << 21)) in insert_bdm()
983 insn |= 0x08 << 21; in insert_bdm()
985 return insn | (value & 0xfffc); in insert_bdm()
989 extract_bdm (unsigned long insn, in extract_bdm() argument
995 if (((insn & (1 << 21)) == 0) != ((insn & (1 << 15)) == 0)) in extract_bdm()
1000 if ((insn & (0x17 << 21)) != (0x06 << 21) in extract_bdm()
1001 && (insn & (0x1d << 21)) != (0x18 << 21)) in extract_bdm()
1005 return ((insn & 0xfffc) ^ 0x8000) - 0x8000; in extract_bdm()
1013 insert_bdp (unsigned long insn, in insert_bdp() argument
1021 insn |= 1 << 21; in insert_bdp()
1025 if ((insn & (0x14 << 21)) == (0x04 << 21)) in insert_bdp()
1026 insn |= 0x03 << 21; in insert_bdp()
1027 else if ((insn & (0x14 << 21)) == (0x10 << 21)) in insert_bdp()
1028 insn |= 0x09 << 21; in insert_bdp()
1030 return insn | (value & 0xfffc); in insert_bdp()
1034 extract_bdp (unsigned long insn, in extract_bdp() argument
1040 if (((insn & (1 << 21)) == 0) == ((insn & (1 << 15)) == 0)) in extract_bdp()
1045 if ((insn & (0x17 << 21)) != (0x07 << 21) in extract_bdp()
1046 && (insn & (0x1d << 21)) != (0x19 << 21)) in extract_bdp()
1050 return ((insn & 0xfffc) ^ 0x8000) - 0x8000; in extract_bdp()
1116 insert_bo (unsigned long insn, in insert_bo() argument
1123 return insn | ((value & 0x1f) << 21); in insert_bo()
1127 extract_bo (unsigned long insn, in extract_bo() argument
1133 value = (insn >> 21) & 0x1f; in extract_bo()
1144 insert_boe (unsigned long insn, in insert_boe() argument
1154 return insn | ((value & 0x1f) << 21); in insert_boe()
1158 extract_boe (unsigned long insn, in extract_boe() argument
1164 value = (insn >> 21) & 0x1f; in extract_boe()
1173 insert_fxm (unsigned long insn, in insert_fxm() argument
1180 if ((insn & (1 << 20)) != 0) in insert_fxm()
1204 && (insn & (0x3ff << 1)) == 19 << 1))) in insert_fxm()
1205 insn |= 1 << 20; in insert_fxm()
1208 else if ((insn & (0x3ff << 1)) == 19 << 1) in insert_fxm()
1214 return insn | ((value & 0xff) << 12); in insert_fxm()
1218 extract_fxm (unsigned long insn, in extract_fxm() argument
1222 long mask = (insn >> 12) & 0xff; in extract_fxm()
1225 if ((insn & (1 << 20)) != 0) in extract_fxm()
1233 else if ((insn & (0x3ff << 1)) == 19 << 1) in extract_fxm()
1248 insert_mbe (unsigned long insn, in insert_mbe() argument
1261 return insn; in insert_mbe()
1297 return insn | (mb << 6) | ((me - 1) << 1); in insert_mbe()
1301 extract_mbe (unsigned long insn, in extract_mbe() argument
1311 mb = (insn >> 6) & 0x1f; in extract_mbe()
1312 me = (insn >> 1) & 0x1f; in extract_mbe()
1334 insert_mb6 (unsigned long insn, in insert_mb6() argument
1339 return insn | ((value & 0x1f) << 6) | (value & 0x20); in insert_mb6()
1343 extract_mb6 (unsigned long insn, in extract_mb6() argument
1347 return ((insn >> 6) & 0x1f) | (insn & 0x20); in extract_mb6()
1354 extract_nb (unsigned long insn, in extract_nb() argument
1360 ret = (insn >> 11) & 0x1f; in extract_nb()
1372 insert_nsi (unsigned long insn, in insert_nsi() argument
1377 return insn | (-value & 0xffff); in insert_nsi()
1381 extract_nsi (unsigned long insn, in extract_nsi() argument
1386 return -(((insn & 0xffff) ^ 0x8000) - 0x8000); in extract_nsi()
1394 insert_ral (unsigned long insn, in insert_ral() argument
1400 || (unsigned long) value == ((insn >> 21) & 0x1f)) in insert_ral()
1402 return insn | ((value & 0x1f) << 16); in insert_ral()
1409 insert_ram (unsigned long insn, in insert_ram() argument
1414 if ((unsigned long) value >= ((insn >> 21) & 0x1f)) in insert_ram()
1416 return insn | ((value & 0x1f) << 16); in insert_ram()
1423 insert_raq (unsigned long insn, in insert_raq() argument
1428 long rtvalue = (insn & RT_MASK) >> 21; in insert_raq()
1432 return insn | ((value & 0x1f) << 16); in insert_raq()
1440 insert_ras (unsigned long insn, in insert_ras() argument
1447 return insn | ((value & 0x1f) << 16); in insert_ras()
1457 insert_rbs (unsigned long insn, in insert_rbs() argument
1462 return insn | (((insn >> 21) & 0x1f) << 11); in insert_rbs()
1466 extract_rbs (unsigned long insn, in extract_rbs() argument
1470 if (((insn >> 21) & 0x1f) != ((insn >> 11) & 0x1f)) in extract_rbs()
1478 insert_sh6 (unsigned long insn, in insert_sh6() argument
1483 return insn | ((value & 0x1f) << 11) | ((value & 0x20) >> 4); in insert_sh6()
1487 extract_sh6 (unsigned long insn, in extract_sh6() argument
1491 return ((insn >> 11) & 0x1f) | ((insn << 4) & 0x20); in extract_sh6()
1498 insert_spr (unsigned long insn, in insert_spr() argument
1503 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6); in insert_spr()
1507 extract_spr (unsigned long insn, in extract_spr() argument
1511 return ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0); in extract_spr()
1517 insert_sprg (unsigned long insn, in insert_sprg() argument
1532 if (value <= 3 || (insn & 0x100) != 0) in insert_sprg()
1535 return insn | ((value & 0x17) << 16); in insert_sprg()
1539 extract_sprg (unsigned long insn, in extract_sprg() argument
1543 unsigned long val = (insn >> 16) & 0x1f; in extract_sprg()
1548 || (val < 0x10 && (insn & 0x100) != 0) in extract_sprg()
1566 insert_tbr (unsigned long insn, in insert_tbr() argument
1573 return insn | ((value & 0x1f) << 16) | ((value & 0x3e0) << 6); in insert_tbr()
1577 extract_tbr (unsigned long insn, in extract_tbr() argument
1583 ret = ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0); in extract_tbr()
5193 unsigned long insn, int dialect) in operand_value_powerpc() argument
5199 value = (*operand->extract) (insn, dialect, &invalid); in operand_value_powerpc()
5202 value = (insn >> operand->shift) & operand->bitm; in operand_value_powerpc()
5223 unsigned long insn, int dialect) in skip_optional_operands() argument
5232 && operand_value_powerpc (operand, insn, dialect) != 0)) in skip_optional_operands()
5249 unsigned long insn; in print_insn_powerpc() local
5265 insn = bfd_getb32 (buffer); in print_insn_powerpc()
5267 insn = bfd_getl32 (buffer); in print_insn_powerpc()
5270 op = PPC_OP (insn); in print_insn_powerpc()
5292 if ((insn & opcode->mask) != opcode->opcode in print_insn_powerpc()
5304 (*operand->extract) (insn, dialect, &invalid); in print_insn_powerpc()
5336 skip_optional = skip_optional_operands (opindex, insn, in print_insn_powerpc()
5342 value = operand_value_powerpc (operand, insn, dialect); in print_insn_powerpc()
5409 (*info->fprintf_func) (info->stream, ".long 0x%lx", insn); in print_insn_powerpc()