Lines Matching defs:immediate

1386 // Consume an immediate operand from an instruction, given the desired operand
1391 // @return - 0 if the immediate was successfully consumed; nonzero
1548 // Saw a register immediate so don't read again and instead split the
1549 // previous immediate. FIXME: This is a hack.
1766 /// immediate Value in the MCInst.
1768 /// @param Value - The immediate Value, has had any PC adjustment made by
1772 /// @param Offset - The byte offset to this immediate in the instruction
1773 /// @param Width - The byte width of this immediate in the instruction
1777 /// immediate in the instruction using the Address, Offset and Width. If that
1780 /// returns zero and isBranch is true then a symbol look up for immediate Value
1782 /// an MCExpr with the immediate Value is created. This function returns true
1795 /// instruction and its immediate Value are used to determine the address
1860 /// translateImmediate - Appends an immediate operand to an MCInst.
1863 /// @param immediate - The immediate value to append.
1866 static void translateImmediate(MCInst &mcInst, uint64_t immediate,
1870 // Sign-extend the immediate if necessary.
1888 if(immediate & 0x80)
1889 immediate |= ~(0xffull);
1892 if(immediate & 0x8000)
1893 immediate |= ~(0xffffull);
1896 if(immediate & 0x80000000)
1897 immediate |= ~(0xffffffffull);
1904 if(immediate & 0x80)
1905 immediate |= ~(0xffull);
1908 if(immediate & 0x8000)
1909 immediate |= ~(0xffffull);
1912 if(immediate & 0x80000000)
1913 immediate |= ~(0xffffffffull);
1923 if(immediate & 0x80)
1924 immediate |= ~(0xffull);
1927 if(immediate & 0x8000)
1928 immediate |= ~(0xffffull);
1931 if(immediate & 0x80000000)
1932 immediate |= ~(0xffffffffull);
1941 mcInst.addOperand(MCOperand::createReg(X86::XMM0 + (immediate >> 4)));
1944 mcInst.addOperand(MCOperand::createReg(X86::YMM0 + (immediate >> 4)));
1947 mcInst.addOperand(MCOperand::createReg(X86::ZMM0 + (immediate >> 4)));
1954 if(!tryAddingSymbolicOperand(immediate + pcrel, isBranch, insn.startLocation,
1957 mcInst.addOperand(MCOperand::createImm(immediate));
2015 // 2. scaleamount (immediate) 1, or (if there is a SIB) the specified
2020 // 4. displacement (immediate) 0, or the displacement if there is one