Lines Matching refs:imm5
1599 UInt imm5 ) /* saturation ceiling */ in armUnsignedSatQ() argument
1601 UInt ceil = (1 << imm5) - 1; // (2^imm5)-1 in armUnsignedSatQ()
1641 UInt imm5, /* saturation ceiling */ in armSignedSatQ() argument
1645 Int ceil = (1 << (imm5-1)) - 1; // (2^(imm5-1))-1 in armSignedSatQ()
1646 Int floor = -(1 << (imm5-1)); // -(2^(imm5-1)) in armSignedSatQ()
2389 UInt sh2, UInt imm5, in mk_EA_reg_plusminus_shifted_reg() argument
2396 vassert(imm5 < 32); in mk_EA_reg_plusminus_shifted_reg()
2402 index = binop(Iop_Shl32, getIRegA(rM), mkU8(imm5)); in mk_EA_reg_plusminus_shifted_reg()
2403 DIS(buf, "[r%u, %c r%u LSL #%u]", rN, opChar, rM, imm5); in mk_EA_reg_plusminus_shifted_reg()
2406 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2410 index = binop(Iop_Shr32, 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()
2418 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2422 index = binop(Iop_Sar32, getIRegA(rM), mkU8(imm5)); in mk_EA_reg_plusminus_shifted_reg()
2425 rN, opChar, rM, imm5 == 0 ? 32 : imm5); in mk_EA_reg_plusminus_shifted_reg()
2428 if (imm5 == 0) { in mk_EA_reg_plusminus_shifted_reg()
2440 vassert(imm5 >= 1 && imm5 <= 31); in mk_EA_reg_plusminus_shifted_reg()
2442 binop(Iop_Shl32, mkexpr(rmT), mkU8(32-imm5)), in mk_EA_reg_plusminus_shifted_reg()
2443 binop(Iop_Shr32, mkexpr(rmT), mkU8(imm5))); in mk_EA_reg_plusminus_shifted_reg()
2444 DIS(buf, "[r%u, %cr%u, ROR #%u]", rN, opChar, rM, imm5); in mk_EA_reg_plusminus_shifted_reg()
9066 UInt regD = 99, regN = 99, regM = 99, imm5 = 99, shift_type = 99; in decode_V6MEDIA_instruction() local
9076 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
9089 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
9102 dis_buf, &irt_regM_shift, NULL, irt_regM, shift_type, imm5, regM ); in decode_V6MEDIA_instruction()
9126 UInt regD = 99, regN = 99, shift_type = 99, imm5 = 99, sat_imm = 99; in decode_V6MEDIA_instruction() local
9136 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
9140 if (shift_type == BITS2(1,0) && imm5 == 0) in decode_V6MEDIA_instruction()
9149 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
9165 irt_regN, shift_type, imm5, regN ); in decode_V6MEDIA_instruction()
9176 nCC(conq), regD, imm5, dis_buf); in decode_V6MEDIA_instruction()
9184 UInt regD = 99, regN = 99, shift_type = 99, imm5 = 99, sat_imm = 99; in decode_V6MEDIA_instruction() local
9194 imm5 = (INSNT1(14,12) << 2) | INSNT1(7,6); in decode_V6MEDIA_instruction()
9198 if (shift_type == BITS2(1,0) && imm5 == 0) in decode_V6MEDIA_instruction()
9207 imm5 = INSNA(11,7); in decode_V6MEDIA_instruction()
9223 irt_regN, shift_type, imm5, regN ); in decode_V6MEDIA_instruction()
9234 nCC(conq), regD, imm5, dis_buf); in decode_V6MEDIA_instruction()
14465 UInt imm5 = INSN(11,7); in decode_NV_instruction() local
14471 sh2, imm5, dis_buf); in decode_NV_instruction()
15096 UInt imm5 = (insn >> 7) & 0x1F; /* 11:7 */ in disInstr_ARM_WRK() local
15130 eaE = mk_EA_reg_plusminus_shifted_reg( rN, bU, rM, sh2, imm5, in disInstr_ARM_WRK()
16806 UInt imm5 = INSN(11,7); in disInstr_ARM_WRK() local
16820 type, imm5, dis_buf); in disInstr_ARM_WRK()
16861 UInt imm5 = INSN(11,7); in disInstr_ARM_WRK() local
16875 type, imm5, dis_buf); in disInstr_ARM_WRK()
17082 UInt imm5 = INSN(11,7); in disInstr_ARM_WRK() local
17094 type, imm5, dis_buf); in disInstr_ARM_WRK()
17186 UInt imm5 = INSN(11,7); in disInstr_ARM_WRK() local
17196 type, imm5, dis_buf); in disInstr_ARM_WRK()
18854 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
18857 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5 * 4)); in disInstr_THUMB_WRK()
18868 DIP("%s r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5 * 4); in disInstr_THUMB_WRK()
18879 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
18882 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5 * 2)); in disInstr_THUMB_WRK()
18893 DIP("%sh r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5 * 2); in disInstr_THUMB_WRK()
18904 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
18907 IRExpr* ea = binop(Iop_Add32, getIRegT(rN), mkU32(imm5)); in disInstr_THUMB_WRK()
18918 DIP("%sb r%u, [r%u, #%u]\n", isLD ? "ldr" : "str", rD, rN, imm5); in disInstr_THUMB_WRK()
19046 UInt imm5 = INSN0(10,6); in disInstr_THUMB_WRK() local
19059 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
19065 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
19071 dis_buf, &res, &resC, rMt, imm5, rM in disInstr_THUMB_WRK()
19083 DIP("%ss r%u, r%u, #%u\n", wot, rD, rM, imm5); in disInstr_THUMB_WRK()
19606 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19613 && rD != 15 && rN == 13 && imm5 <= 3 && how == 0) { in disInstr_THUMB_WRK()
19619 && rD != 15 && rN == 13 && imm5 == 0 && how == 0) { in disInstr_THUMB_WRK()
19642 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
19686 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19700 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
19768 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19781 dis_buf, &argR, bS ? &oldC : NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()
19856 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19865 dis_buf, &oldRn, bS ? &oldC : NULL, rNt, how, imm5, rN in disInstr_THUMB_WRK()
19897 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19908 dis_buf, &argR, &oldC, rMt, how, imm5, rM in disInstr_THUMB_WRK()
19937 UInt imm5 = (INSN1(14,12) << 2) | INSN1(7,6); in disInstr_THUMB_WRK() local
19947 dis_buf, &argR, NULL, rMt, how, imm5, rM in disInstr_THUMB_WRK()