Lines Matching refs:immediate

171 /// immediate Value in the MCInst. 
173 /// @param Value - The immediate Value, has had any PC adjustment made by
177 /// @param Offset - The byte offset to this immediate in the instruction
178 /// @param Width - The byte width of this immediate in the instruction
182 /// immediate in the instruction using the Address, Offset and Width. If that
185 /// returns zero and isBranch is true then a symbol look up for immediate Value
187 /// an MCExpr with the immediate Value is created. This function returns true
200 /// instruction and its immediate Value are used to determine the address
210 /// translateImmediate - Appends an immediate operand to an MCInst.
213 /// @param immediate - The immediate value to append.
216 static void translateImmediate(MCInst &mcInst, uint64_t immediate,
220 // Sign-extend the immediate if necessary.
284 mcInst.addOperand(MCOperand::CreateReg(X86::XMM0 + (immediate >> 4)));
287 mcInst.addOperand(MCOperand::CreateReg(X86::YMM0 + (immediate >> 4)));
290 mcInst.addOperand(MCOperand::CreateReg(X86::ZMM0 + (immediate >> 4)));
295 // fall through to sign extend the immediate if needed.
297 if(immediate & 0x80)
298 immediate |= ~(0xffull);
301 if(immediate & 0x8000)
302 immediate |= ~(0xffffull);
308 // fall through to sign extend the immediate if needed.
310 if(immediate & 0x80000000)
311 immediate |= ~(0xffffffffull);
319 if(!tryAddingSymbolicOperand(immediate + pcrel, isBranch, insn.startLocation,
322 mcInst.addOperand(MCOperand::CreateImm(immediate));
374 // 2. scaleamount (immediate) 1, or (if there is a SIB) the specified
379 // 4. displacement (immediate) 0, or the displacement if there is one