Lines Matching refs:imm5
1589 UInt imm5 ) /* saturation ceiling */ in armUnsignedSatQ() argument
1591 UInt ceil = (1 << imm5) - 1; // (2^imm5)-1 in armUnsignedSatQ()
1635 UInt imm5, /* saturation ceiling */ in armSignedSatQ() argument
1639 Int ceil = (1 << (imm5-1)) - 1; // (2^(imm5-1))-1 in armSignedSatQ()
1640 Int floor = -(1 << (imm5-1)); // -(2^(imm5-1)) in armSignedSatQ()
2377 UInt sh2, UInt imm5, in mk_EA_reg_plusminus_shifted_reg() argument
2384 vassert(imm5 < 32); in mk_EA_reg_plusminus_shifted_reg()
2390 index = binop(Iop_Shl32, getIRegA(rM), mkU8(imm5)); in mk_EA_reg_plusminus_shifted_reg()
2391 DIS(buf, "[r%u, %c r%u LSL #%u]", rN, opChar, rM, imm5); in mk_EA_reg_plusminus_shifted_reg()
2394 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2398 index = binop(Iop_Shr32, getIRegA(rM), mkU8(imm5)); in mk_EA_reg_plusminus_shifted_reg()
2401 rN, opChar, rM, imm5 == 0 ? 32 : imm5); in mk_EA_reg_plusminus_shifted_reg()
2406 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2410 index = binop(Iop_Sar32, getIRegA(rM), mkU8(imm5)); in mk_EA_reg_plusminus_shifted_reg()
2413 rN, opChar, rM, imm5 == 0 ? 32 : imm5); in mk_EA_reg_plusminus_shifted_reg()
2416 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2428 vassert(imm5 >= 1 && imm5 <= 31); in mk_EA_reg_plusminus_shifted_reg()
2430 binop(Iop_Shl32, mkexpr(rmT), mkU8(32-imm5)), in mk_EA_reg_plusminus_shifted_reg()
2431 binop(Iop_Shr32, mkexpr(rmT), mkU8(imm5))); in mk_EA_reg_plusminus_shifted_reg()
2432 DIS(buf, "[r%u, %cr%u, ROR #%u]", rN, opChar, rM, imm5); in mk_EA_reg_plusminus_shifted_reg()
8482 UInt regD = 99, regN = 99, regM = 99, imm5 = 99, shift_type = 99; in decode_V6MEDIA_instruction() local
8492 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
8505 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
8518 dis_buf, &irt_regM_shift, NULL, irt_regM, shift_type, imm5, regM ); in decode_V6MEDIA_instruction()
8542 UInt regD = 99, regN = 99, shift_type = 99, imm5 = 99, sat_imm = 99; in decode_V6MEDIA_instruction() local
8552 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
8556 if (shift_type == BITS2(1,0) && imm5 == 0) in decode_V6MEDIA_instruction()
8565 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
8581 irt_regN, shift_type, imm5, regN ); in decode_V6MEDIA_instruction()
8592 nCC(conq), regD, imm5, dis_buf); in decode_V6MEDIA_instruction()
8600 UInt regD = 99, regN = 99, shift_type = 99, imm5 = 99, sat_imm = 99; in decode_V6MEDIA_instruction() local
8610 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
8614 if (shift_type == BITS2(1,0) && imm5 == 0) in decode_V6MEDIA_instruction()
8623 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
8639 irt_regN, shift_type, imm5, regN ); in decode_V6MEDIA_instruction()
8650 nCC(conq), regD, imm5, dis_buf); in decode_V6MEDIA_instruction()
11919 UInt imm5 = INSN(11,7); in decode_NV_instruction() local
11924 sh2, imm5, dis_buf); in decode_NV_instruction()
12536 UInt imm5 = (insn >> 7) & 0x1F; /* 11:7 */ in disInstr_ARM_WRK() local
12579 eaE = mk_EA_reg_plusminus_shifted_reg( rN, bU, rM, sh2, imm5, in disInstr_ARM_WRK()
15609 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
15616 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5 * 4)); in disInstr_THUMB_WRK()
15625 DIP("%s r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5 * 4); in disInstr_THUMB_WRK()
15636 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
15643 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5 * 2)); in disInstr_THUMB_WRK()
15653 DIP("%sh r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5 * 2); in disInstr_THUMB_WRK()
15664 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
15671 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5)); in disInstr_THUMB_WRK()
15681 DIP("%sb r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5); in disInstr_THUMB_WRK()
15811 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
15824 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
15830 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
15836 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
15848 DIP("%ss r%u, r%u, #%u\n", wot, rD, rM, imm5); in disInstr_THUMB_WRK()
16379 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16386 && rD != 15 && rN == 13 && imm5 == 0 && how == 0) { in disInstr_THUMB_WRK()
16392 && rD != 15 && rN == 13 && imm5 == 0 && how == 0) { in disInstr_THUMB_WRK()
16415 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
16459 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16473 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
16541 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16554 dis_buf, &argR, bS ? &oldC : NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
16629 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16638 dis_buf, &oldRn, bS ? &oldC : NULL, rNt, how, imm5, rN in disInstr_THUMB_WRK()
16670 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16681 dis_buf, &argR, &oldC, rMt, how, imm5, rM in disInstr_THUMB_WRK()
16710 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
16720 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()