Lines Matching refs:imm

1147   unsigned imm = fieldFromInstruction(Val, 7, 5);  in DecodeSORegImmOperand()  local
1169 if (Shift == ARM_AM::ror && imm == 0) in DecodeSORegImmOperand()
1172 unsigned Op = Shift | (imm << 3); in DecodeSORegImmOperand()
1333 unsigned imm = fieldFromInstruction(Insn, 0, 8); in DecodeCopMemInstruction() local
1420 imm = ARM_AM::getAM5Opc(U ? ARM_AM::add : ARM_AM::sub, imm); in DecodeCopMemInstruction()
1421 Inst.addOperand(MCOperand::createImm(imm)); in DecodeCopMemInstruction()
1439 imm |= U << 8; in DecodeCopMemInstruction()
1444 Inst.addOperand(MCOperand::createImm(imm)); in DecodeCopMemInstruction()
1483 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeAddrMode2IdxInstruction() local
1566 unsigned imm = ARM_AM::getAM2Opc(Op, amt, Opc, idx_mode); in DecodeAddrMode2IdxInstruction() local
1568 Inst.addOperand(MCOperand::createImm(imm)); in DecodeAddrMode2IdxInstruction()
1571 unsigned tmp = ARM_AM::getAM2Opc(Op, imm, ARM_AM::lsl, idx_mode); in DecodeAddrMode2IdxInstruction()
1588 unsigned imm = fieldFromInstruction(Val, 7, 5); in DecodeSORegMemOperand() local
1607 if (ShOp == ARM_AM::ror && imm == 0) in DecodeSORegMemOperand()
1616 shift = ARM_AM::getAM2Opc(ARM_AM::add, imm, ShOp); in DecodeSORegMemOperand()
1618 shift = ARM_AM::getAM2Opc(ARM_AM::sub, imm, ShOp); in DecodeSORegMemOperand()
1633 unsigned imm = fieldFromInstruction(Insn, 8, 4); in DecodeAddrMode3Instruction() local
1803 Inst.addOperand(MCOperand::createImm(U | (imm << 4) | Rm)); in DecodeAddrMode3Instruction()
2038 int imm = fieldFromInstruction(Insn, 0, 8); in DecodeT2CPSInstruction() local
2040 if(imm > 4) return MCDisassembler::Fail; in DecodeT2CPSInstruction()
2042 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2CPSInstruction()
2053 unsigned imm = 0; in DecodeT2MOVTWInstruction() local
2055 imm |= (fieldFromInstruction(Insn, 0, 8) << 0); in DecodeT2MOVTWInstruction()
2056 imm |= (fieldFromInstruction(Insn, 12, 3) << 8); in DecodeT2MOVTWInstruction()
2057 imm |= (fieldFromInstruction(Insn, 16, 4) << 12); in DecodeT2MOVTWInstruction()
2058 imm |= (fieldFromInstruction(Insn, 26, 1) << 11); in DecodeT2MOVTWInstruction()
2066 if (!tryAddingSymbolicOperand(Address, imm, false, 4, Inst, Decoder)) in DecodeT2MOVTWInstruction()
2067 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2MOVTWInstruction()
2078 unsigned imm = 0; in DecodeArmMOVTWInstruction() local
2080 imm |= (fieldFromInstruction(Insn, 0, 12) << 0); in DecodeArmMOVTWInstruction()
2081 imm |= (fieldFromInstruction(Insn, 16, 4) << 12); in DecodeArmMOVTWInstruction()
2090 if (!tryAddingSymbolicOperand(Address, imm, false, 4, Inst, Decoder)) in DecodeArmMOVTWInstruction()
2091 Inst.addOperand(MCOperand::createImm(imm)); in DecodeArmMOVTWInstruction()
2181 unsigned imm = fieldFromInstruction(Val, 0, 12); in DecodeAddrModeImm12Operand() local
2187 if (!add) imm *= -1; in DecodeAddrModeImm12Operand()
2188 if (imm == 0 && !add) imm = INT32_MIN; in DecodeAddrModeImm12Operand()
2189 Inst.addOperand(MCOperand::createImm(imm)); in DecodeAddrModeImm12Operand()
2191 tryAddingPcLoadReferenceComment(Address, Address + imm + 8, Decoder); in DecodeAddrModeImm12Operand()
2202 unsigned imm = fieldFromInstruction(Val, 0, 8); in DecodeAddrMode5Operand() local
2208 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5Opc(ARM_AM::add, imm))); in DecodeAddrMode5Operand()
2210 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5Opc(ARM_AM::sub, imm))); in DecodeAddrMode5Operand()
2253 unsigned imm = fieldFromInstruction(Insn, 0, 24) << 2; in DecodeBranchImmInstruction() local
2257 imm |= fieldFromInstruction(Insn, 24, 1) << 1; in DecodeBranchImmInstruction()
2258 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction()
2260 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction()
2264 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction()
2266 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction()
3076 unsigned imm = fieldFromInstruction(Insn, 0, 4); in DecodeNEONModImmInstruction() local
3077 imm |= fieldFromInstruction(Insn, 16, 3) << 4; in DecodeNEONModImmInstruction()
3078 imm |= fieldFromInstruction(Insn, 24, 1) << 7; in DecodeNEONModImmInstruction()
3079 imm |= fieldFromInstruction(Insn, 8, 4) << 8; in DecodeNEONModImmInstruction()
3080 imm |= fieldFromInstruction(Insn, 5, 1) << 12; in DecodeNEONModImmInstruction()
3091 Inst.addOperand(MCOperand::createImm(imm)); in DecodeNEONModImmInstruction()
3199 unsigned imm = fieldFromInstruction(Insn, 0, 8); in DecodeThumbAddSpecialReg() local
3214 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddSpecialReg()
3262 unsigned imm = fieldFromInstruction(Val, 3, 5); in DecodeThumbAddrModeIS() local
3266 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddrModeIS()
3273 unsigned imm = Val << 2; in DecodeThumbAddrModePC() local
3275 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddrModePC()
3276 tryAddingPcLoadReferenceComment(Address, (Address & ~2u) + imm + 4, Decoder); in DecodeThumbAddrModePC()
3295 unsigned imm = fieldFromInstruction(Val, 0, 2); in DecodeT2AddrModeSOReg() local
3312 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeSOReg()
3406 unsigned imm = fieldFromInstruction(Insn, 0, 8); in DecodeT2LoadImm8() local
3407 imm |= (U << 8); in DecodeT2LoadImm8()
3408 imm |= (Rn << 9); in DecodeT2LoadImm8()
3478 if (!Check(S, DecodeT2AddrModeImm8(Inst, imm, Address, Decoder))) in DecodeT2LoadImm8()
3489 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeT2LoadImm12() local
3490 imm |= (Rn << 13); in DecodeT2LoadImm12()
3558 if (!Check(S, DecodeT2AddrModeImm12(Inst, imm, Address, Decoder))) in DecodeT2LoadImm12()
3569 unsigned imm = fieldFromInstruction(Insn, 0, 8); in DecodeT2LoadT() local
3570 imm |= (Rn << 9); in DecodeT2LoadT()
3597 if (!Check(S, DecodeT2AddrModeImm8(Inst, imm, Address, Decoder))) in DecodeT2LoadT()
3608 int imm = fieldFromInstruction(Insn, 0, 12); in DecodeT2LoadLabel() local
3645 if (imm == 0) in DecodeT2LoadLabel()
3646 imm = INT32_MIN; in DecodeT2LoadLabel()
3648 imm = -imm; in DecodeT2LoadLabel()
3650 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2LoadLabel()
3660 int imm = Val & 0xFF; in DecodeT2Imm8S4() local
3662 if (!(Val & 0x100)) imm *= -1; in DecodeT2Imm8S4()
3663 Inst.addOperand(MCOperand::createImm(imm * 4)); in DecodeT2Imm8S4()
3674 unsigned imm = fieldFromInstruction(Val, 0, 9); in DecodeT2AddrModeImm8s4() local
3678 if (!Check(S, DecodeT2Imm8S4(Inst, imm, Address, Decoder))) in DecodeT2AddrModeImm8s4()
3689 unsigned imm = fieldFromInstruction(Val, 0, 8); in DecodeT2AddrModeImm0_1020s4() local
3694 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeImm0_1020s4()
3701 int imm = Val & 0xFF; in DecodeT2Imm8() local
3703 imm = INT32_MIN; in DecodeT2Imm8()
3705 imm *= -1; in DecodeT2Imm8()
3706 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2Imm8()
3717 unsigned imm = fieldFromInstruction(Val, 0, 9); in DecodeT2AddrModeImm8() local
3744 imm |= 0x100; in DecodeT2AddrModeImm8()
3752 if (!Check(S, DecodeT2Imm8(Inst, imm, Address, Decoder))) in DecodeT2AddrModeImm8()
3824 unsigned imm = fieldFromInstruction(Val, 0, 12); in DecodeT2AddrModeImm12() local
3839 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeImm12()
3847 unsigned imm = fieldFromInstruction(Insn, 0, 7); in DecodeThumbAddSPImm() local
3851 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddSPImm()
3982 unsigned imm = fieldFromInstruction(Insn, 0, 4); in DecodeThumb2BCCInstruction() local
3983 return DecodeMemBarrierOption(Inst, imm, Address, Decoder); in DecodeThumb2BCCInstruction()
4008 unsigned imm = fieldFromInstruction(Val, 0, 8); in DecodeT2SOImm() local
4011 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2SOImm()
4014 Inst.addOperand(MCOperand::createImm((imm << 16) | imm)); in DecodeT2SOImm()
4017 Inst.addOperand(MCOperand::createImm((imm << 24) | (imm << 8))); in DecodeT2SOImm()
4020 Inst.addOperand(MCOperand::createImm((imm << 24) | (imm << 16) | in DecodeT2SOImm()
4021 (imm << 8) | imm)); in DecodeT2SOImm()
4027 unsigned imm = (unrot >> rot) | (unrot << ((32-rot)&31)); in DecodeT2SOImm() local
4028 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2SOImm()
4222 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeLDRPreImm() local
4223 imm |= fieldFromInstruction(Insn, 16, 4) << 13; in DecodeLDRPreImm()
4224 imm |= fieldFromInstruction(Insn, 23, 1) << 12; in DecodeLDRPreImm()
4233 if (!Check(S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder))) in DecodeLDRPreImm()
4247 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeLDRPreReg() local
4248 imm |= fieldFromInstruction(Insn, 16, 4) << 13; in DecodeLDRPreReg()
4249 imm |= fieldFromInstruction(Insn, 23, 1) << 12; in DecodeLDRPreReg()
4260 if (!Check(S, DecodeSORegMemOperand(Inst, imm, Address, Decoder))) in DecodeLDRPreReg()
4275 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeSTRPreImm() local
4276 imm |= fieldFromInstruction(Insn, 16, 4) << 13; in DecodeSTRPreImm()
4277 imm |= fieldFromInstruction(Insn, 23, 1) << 12; in DecodeSTRPreImm()
4286 if (!Check(S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder))) in DecodeSTRPreImm()
4300 unsigned imm = fieldFromInstruction(Insn, 0, 12); in DecodeSTRPreReg() local
4301 imm |= fieldFromInstruction(Insn, 16, 4) << 13; in DecodeSTRPreReg()
4302 imm |= fieldFromInstruction(Insn, 23, 1) << 12; in DecodeSTRPreReg()
4311 if (!Check(S, DecodeSORegMemOperand(Inst, imm, Address, Decoder))) in DecodeSTRPreReg()
5072 unsigned imm = fieldFromInstruction(Insn, 16, 6); in DecodeVCVTD() local
5079 if (!(imm & 0x38) && cmode == 0xF) { in DecodeVCVTD()
5085 if (!(imm & 0x20)) return MCDisassembler::Fail; in DecodeVCVTD()
5091 Inst.addOperand(MCOperand::createImm(64 - imm)); in DecodeVCVTD()
5102 unsigned imm = fieldFromInstruction(Insn, 16, 6); in DecodeVCVTQ() local
5109 if (!(imm & 0x38) && cmode == 0xF) { in DecodeVCVTQ()
5115 if (!(imm & 0x20)) return MCDisassembler::Fail; in DecodeVCVTQ()
5121 Inst.addOperand(MCOperand::createImm(64 - imm)); in DecodeVCVTQ()