Lines Matching defs:immediate

1533 // Consume an immediate operand from an instruction, given the desired operand
1538 // @return - 0 if the immediate was successfully consumed; nonzero
1704 // Saw a register immediate so don't read again and instead split the
1705 // previous immediate. FIXME: This is a hack.
1983 /// translateImmediate - Appends an immediate operand to an MCInst.
1986 /// @param immediate - The immediate value to append.
1989 static void translateImmediate(MCInst &mcInst, uint64_t immediate,
1993 // Sign-extend the immediate if necessary.
2010 if(immediate & 0x80)
2011 immediate |= ~(0xffull);
2014 if(immediate & 0x8000)
2015 immediate |= ~(0xffffull);
2018 if(immediate & 0x80000000)
2019 immediate |= ~(0xffffffffull);
2026 if(immediate & 0x80)
2027 immediate |= ~(0xffull);
2030 if(immediate & 0x8000)
2031 immediate |= ~(0xffffull);
2034 if(immediate & 0x80000000)
2035 immediate |= ~(0xffffffffull);
2045 if(immediate & 0x80)
2046 immediate |= ~(0xffull);
2049 if(immediate & 0x8000)
2050 immediate |= ~(0xffffull);
2053 if(immediate & 0x80000000)
2054 immediate |= ~(0xffffffffull);
2063 mcInst.addOperand(MCOperand::createReg(X86::XMM0 + (immediate >> 4)));
2066 mcInst.addOperand(MCOperand::createReg(X86::YMM0 + (immediate >> 4)));
2069 mcInst.addOperand(MCOperand::createReg(X86::ZMM0 + (immediate >> 4)));
2077 mcInst, immediate + pcrel, insn.startLocation, isBranch,
2079 mcInst.addOperand(MCOperand::createImm(immediate));
2139 // 2. scaleamount (immediate) 1, or (if there is a SIB) the specified
2144 // 4. displacement (immediate) 0, or the displacement if there is one