Home
last modified time | relevance | path

Searched refs:Immed (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Target/PowerPC/
DPPCMIPeephole.cpp109 int Immed = MI.getOperand(3).getImm(); in simplifyCode() local
111 if (Immed != 1) { in simplifyCode()
150 else if ((Immed == 0 || Immed == 3) in simplifyCode()
156 MI.getOperand(3).setImm(3 - Immed); in simplifyCode()
162 else if (Immed == 2 && FeedImmed == 2 && FeedReg1 == FeedReg2) { in simplifyCode()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp259 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectArithImmed() local
262 if (Immed >> 12 == 0) { in SelectArithImmed()
264 } else if ((Immed & 0xfff) == 0 && Immed >> 24 == 0) { in SelectArithImmed()
266 Immed = Immed >> 12; in SelectArithImmed()
272 Val = CurDAG->getTargetConstant(Immed, dl, MVT::i32); in SelectArithImmed()
290 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue(); in SelectNegArithImmed() local
295 if (Immed == 0) in SelectNegArithImmed()
299 Immed = ~((uint32_t)Immed) + 1; in SelectNegArithImmed()
301 Immed = ~Immed + 1ULL; in SelectNegArithImmed()
302 if (Immed & 0xFFFFFFFFFF000000ULL) in SelectNegArithImmed()
[all …]
DAArch64ISelLowering.cpp7185 bool AArch64TargetLowering::isLegalAddImmediate(int64_t Immed) const { in isLegalAddImmediate()
7186 if ((Immed >> 12) == 0 || ((Immed & 0xfff) == 0 && Immed >> 24 == 0)) in isLegalAddImmediate()
7193 bool AArch64TargetLowering::isLegalICmpImmediate(int64_t Immed) const { in isLegalICmpImmediate()
7194 if (Immed < 0) in isLegalICmpImmediate()
7195 Immed *= -1; in isLegalICmpImmediate()
7196 return isLegalAddImmediate(Immed); in isLegalICmpImmediate()