• Home
  • Raw
  • Download

Lines Matching refs:imm

277 		int64_t imm = MCOperand_getImm(Op);  in _printOperand()  local
278 if (imm < 0) { in _printOperand()
279 if (imm < -HEX_THRESHOLD) in _printOperand()
280 SStream_concat(O, "-0x%"PRIx64, -imm); in _printOperand()
282 SStream_concat(O, "-%"PRIu64, -imm); in _printOperand()
285 if (imm > HEX_THRESHOLD) in _printOperand()
286 SStream_concat(O, "0x%"PRIx64, imm); in _printOperand()
288 SStream_concat(O, "%"PRIu64, imm); in _printOperand()
439 int64_t imm = MCOperand_getImm(DispSpec); in printMemOffset() local
441 MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.disp = imm; in printMemOffset()
442 if (imm < 0) { in printMemOffset()
443 SStream_concat(O, "0x%"PRIx64, arch_masks[MI->csh->mode] & imm); in printMemOffset()
445 if (imm > HEX_THRESHOLD) in printMemOffset()
446 SStream_concat(O, "0x%"PRIx64, imm); in printMemOffset()
448 SStream_concat(O, "%"PRIu64, imm); in printMemOffset()
544 int64_t imm = MCOperand_getImm(Op) + MI->flat_insn->size + MI->address; in printPCRelImm() local
548 imm = imm & 0xffffffff; in printPCRelImm()
553 imm = imm & 0xffff; in printPCRelImm()
558 imm = imm & 0xffff; in printPCRelImm()
562 imm = imm & 0xffff; in printPCRelImm()
564 if (imm < 0) { in printPCRelImm()
565 SStream_concat(O, "0x%"PRIx64, imm); in printPCRelImm()
567 if (imm > HEX_THRESHOLD) in printPCRelImm()
568 SStream_concat(O, "0x%"PRIx64, imm); in printPCRelImm()
570 SStream_concat(O, "%"PRIu64, imm); in printPCRelImm()
579 MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].imm = imm; in printPCRelImm()
611 int64_t imm = MCOperand_getImm(Op); in printOperand() local
684 imm = imm & 0xff; in printOperand()
691 if (imm >= 0) { in printOperand()
692 if (imm > HEX_THRESHOLD) in printOperand()
693 SStream_concat(O, "0x%"PRIx64, imm); in printOperand()
695 SStream_concat(O, "%"PRIu64, imm); in printOperand()
697 if (imm < -HEX_THRESHOLD) in printOperand()
698 SStream_concat(O, "-0x%"PRIx64, -imm); in printOperand()
700 SStream_concat(O, "-%"PRIu64, -imm); in printOperand()
709 imm = imm & 0xffff; in printOperand()
712 if (imm > HEX_THRESHOLD) in printOperand()
713 SStream_concat(O, "0x%"PRIx64, imm); in printOperand()
715 SStream_concat(O, "%"PRIu64, imm); in printOperand()
722 if (imm >= 0 && imm <= HEX_THRESHOLD) in printOperand()
723 SStream_concat(O, "%u", imm); in printOperand()
725 imm = arch_masks[MI->op1_size? MI->op1_size : MI->imm_size] & imm; in printOperand()
726 SStream_concat(O, "0x%"PRIx64, imm); in printOperand()
731 if (imm >= 0 && imm <= HEX_THRESHOLD) in printOperand()
732 SStream_concat(O, "%u", imm); in printOperand()
734 imm = 0xffff & imm; in printOperand()
735 SStream_concat(O, "0x%x", 0xffff & imm); in printOperand()
742 MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.disp = imm; in printOperand()
756 MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].imm = imm; in printOperand()