Lines Matching defs:immediate
1544 // Consume an immediate operand from an instruction, given the desired operand
1549 // @return - 0 if the immediate was successfully consumed; nonzero
1715 // Saw a register immediate so don't read again and instead split the
1716 // previous immediate. FIXME: This is a hack.
1994 /// translateImmediate - Appends an immediate operand to an MCInst.
1997 /// @param immediate - The immediate value to append.
2000 static void translateImmediate(MCInst &mcInst, uint64_t immediate,
2004 // Sign-extend the immediate if necessary.
2021 if(immediate & 0x80)
2022 immediate |= ~(0xffull);
2025 if(immediate & 0x8000)
2026 immediate |= ~(0xffffull);
2029 if(immediate & 0x80000000)
2030 immediate |= ~(0xffffffffull);
2037 if(immediate & 0x80)
2038 immediate |= ~(0xffull);
2041 if(immediate & 0x8000)
2042 immediate |= ~(0xffffull);
2045 if(immediate & 0x80000000)
2046 immediate |= ~(0xffffffffull);
2056 if(immediate & 0x80)
2057 immediate |= ~(0xffull);
2060 if(immediate & 0x8000)
2061 immediate |= ~(0xffffull);
2064 if(immediate & 0x80000000)
2065 immediate |= ~(0xffffffffull);
2074 mcInst.addOperand(MCOperand::createReg(X86::XMM0 + (immediate >> 4)));
2077 mcInst.addOperand(MCOperand::createReg(X86::YMM0 + (immediate >> 4)));
2080 mcInst.addOperand(MCOperand::createReg(X86::ZMM0 + (immediate >> 4)));
2088 mcInst, immediate + pcrel, insn.startLocation, isBranch,
2090 mcInst.addOperand(MCOperand::createImm(immediate));
2150 // 2. scaleamount (immediate) 1, or (if there is a SIB) the specified
2155 // 4. displacement (immediate) 0, or the displacement if there is one