Lines Matching refs:Immed
263 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectArithImmed() local
266 if (Immed >> 12 == 0) { in SelectArithImmed()
268 } else if ((Immed & 0xfff) == 0 && Immed >> 24 == 0) { in SelectArithImmed()
270 Immed = Immed >> 12; in SelectArithImmed()
276 Val = CurDAG->getTargetConstant(Immed, dl, MVT::i32); in SelectArithImmed()
294 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectNegArithImmed() local
299 if (Immed == 0) in SelectNegArithImmed()
303 Immed = ~((uint32_t)Immed) + 1; in SelectNegArithImmed()
305 Immed = ~Immed + 1ULL; in SelectNegArithImmed()
306 if (Immed & 0xFFFFFFFFFF000000ULL) in SelectNegArithImmed()
309 Immed &= 0xFFFFFFULL; in SelectNegArithImmed()
310 return SelectArithImmed(CurDAG->getConstant(Immed, SDLoc(N), MVT::i32), Val, in SelectNegArithImmed()
2487 uint64_t Immed = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue(); in tryWriteRegister() local
2490 assert(Immed < 2 && "Bad imm"); in tryWriteRegister()
2493 assert(Immed < 16 && "Bad imm"); in tryWriteRegister()
2499 CurDAG->getTargetConstant(Immed, DL, MVT::i16), in tryWriteRegister()