Lines Matching defs:immediate

187 /// immediate Value in the MCInst. 
189 /// @param Value - The immediate Value, has had any PC adjustment made by
193 /// @param Offset - The byte offset to this immediate in the instruction
194 /// @param Width - The byte width of this immediate in the instruction
198 /// immediate in the instruction using the Address, Offset and Width. If that
201 /// returns zero and isBranch is true then a symbol look up for immediate Value
203 /// an MCExpr with the immediate Value is created. This function returns true
216 /// instruction and its immediate Value are used to determine the address
281 /// translateImmediate - Appends an immediate operand to an MCInst.
284 /// @param immediate - The immediate value to append.
287 static void translateImmediate(MCInst &mcInst, uint64_t immediate,
291 // Sign-extend the immediate if necessary.
305 if(immediate & 0x80)
306 immediate |= ~(0xffull);
309 if(immediate & 0x8000)
310 immediate |= ~(0xffffull);
313 if(immediate & 0x80000000)
314 immediate |= ~(0xffffffffull);
339 if(immediate & 0x80)
340 immediate |= ~(0xffull);
343 if(immediate & 0x8000)
344 immediate |= ~(0xffffull);
347 if(immediate & 0x80000000)
348 immediate |= ~(0xffffffffull);
359 mcInst.addOperand(MCOperand::CreateReg(X86::XMM0 + (immediate >> 4)));
362 mcInst.addOperand(MCOperand::CreateReg(X86::YMM0 + (immediate >> 4)));
365 mcInst.addOperand(MCOperand::CreateReg(X86::ZMM0 + (immediate >> 4)));
370 if(immediate & 0x80)
371 immediate |= ~(0xffull);
377 if(immediate & 0x80000000)
378 immediate |= ~(0xffffffffull);
385 if(!tryAddingSymbolicOperand(immediate + pcrel, isBranch, insn.startLocation,
388 mcInst.addOperand(MCOperand::CreateImm(immediate));
447 // 2. scaleamount (immediate) 1, or (if there is a SIB) the specified
452 // 4. displacement (immediate) 0, or the displacement if there is one