Lines Matching defs:Imm
87 static uint64_t getChunk(uint64_t Imm, unsigned ChunkIdx) {
90 return (Imm >> (ChunkIdx * 16)) & 0xFFFF;
95 static uint64_t replicateChunk(uint64_t Imm, unsigned FromIdx, unsigned ToIdx) {
100 const uint64_t Chunk = getChunk(Imm, FromIdx) << ShiftAmt;
102 Imm &= ~(0xFFFFLL << ShiftAmt);
104 return Imm | Chunk;
267 static uint64_t updateImm(uint64_t Imm, unsigned Idx, bool Clear) {
272 Imm &= ~(Mask << (Idx * 16));
275 Imm |= Mask << (Idx * 16);
277 return Imm;
417 uint64_t Imm = MI.getOperand(1).getImm();
428 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize);
447 const unsigned Chunk = (Imm >> Shift) & Mask;
533 Imm = ~Imm;
538 Imm &= (1LL << 32) - 1;
545 if (Imm != 0) {
546 unsigned LZ = countLeadingZeros(Imm);
547 unsigned TZ = countTrailingZeros(Imm);
551 unsigned Imm16 = (Imm >> Shift) & Mask;
563 Imm = ~Imm;
575 Imm16 = (Imm >> Shift) & Mask;