Lines Matching defs:getImm
249 int64_t getImm() const {
352 bool isU1Imm() const { return Kind == Immediate && isUInt<1>(getImm()); }
353 bool isU2Imm() const { return Kind == Immediate && isUInt<2>(getImm()); }
354 bool isU3Imm() const { return Kind == Immediate && isUInt<3>(getImm()); }
355 bool isU4Imm() const { return Kind == Immediate && isUInt<4>(getImm()); }
356 bool isU5Imm() const { return Kind == Immediate && isUInt<5>(getImm()); }
357 bool isS5Imm() const { return Kind == Immediate && isInt<5>(getImm()); }
358 bool isU6Imm() const { return Kind == Immediate && isUInt<6>(getImm()); }
360 isUInt<6>(getImm()) &&
361 (getImm() & 1) == 0; }
362 bool isU7Imm() const { return Kind == Immediate && isUInt<7>(getImm()); }
364 isUInt<7>(getImm()) &&
365 (getImm() & 3) == 0; }
366 bool isU8Imm() const { return Kind == Immediate && isUInt<8>(getImm()); }
368 isUInt<8>(getImm()) &&
369 (getImm() & 7) == 0; }
371 bool isU10Imm() const { return Kind == Immediate && isUInt<10>(getImm()); }
372 bool isU12Imm() const { return Kind == Immediate && isUInt<12>(getImm()); }
383 return (Kind == Immediate && getImm() <= -8 && getImm() >= -512 &&
384 (getImm() & 7) == 0);
389 (Kind == Immediate && isInt<34>(getImm()) && (getImm() & 15) == 0);
394 return Kind == Expression || (Kind == Immediate && isInt<34>(getImm()));
404 if ((getImm() & 3) != 0)
406 if (isInt<26>(getImm()))
410 if (isUInt<32>(getImm()) && isInt<26>(static_cast<int32_t>(getImm())))
416 (Kind == Immediate && isInt<16>(getImm()) &&
417 (getImm() & 3) == 0); }
418 bool isImmZero() const { return Kind == Immediate && getImm() == 0; }
419 bool isRegNumber() const { return Kind == Immediate && isUInt<5>(getImm()); }
421 return Kind == Immediate && isUInt<3>(getImm());
424 return Kind == Immediate && isUInt<6>(getImm());
427 return Kind == Immediate && isUInt<5>(getImm());
430 return Kind == Immediate && isUInt<3>(getImm());
433 return Kind == Immediate && isUInt<2>(getImm());
436 return Kind == Immediate && isUInt<6>(getImm()) && ((getImm() & 1) == 0);
439 return Kind == Immediate && isUInt<6>(getImm());
444 && isUInt<3>(getImm())); }
448 && isUInt<5>(getImm())); }
450 bool isEvenRegNumber() const { return isRegNumber() && (getImm() & 1) == 0; }
453 return Kind == Immediate && isUInt<8>(getImm()) &&
454 llvm::has_single_bit<uint32_t>(getImm());
616 Inst.addOperand(MCOperand::createImm(getImm()));
625 Inst.addOperand(MCOperand::createImm(getImm()));
640 Inst.addOperand(MCOperand::createImm(getImm()));
654 Inst.addOperand(MCOperand::createImm(getImm() / 4));
791 OS << getImm();
805 Inst.addOperand(MCOperand::createImm(-Op.getImm()));
963 int64_t N = Inst.getOperand(2).getImm();
964 int64_t B = Inst.getOperand(3).getImm();
977 int64_t N = Inst.getOperand(2).getImm();
978 int64_t B = Inst.getOperand(3).getImm();
991 int64_t N = Inst.getOperand(2).getImm();
992 int64_t B = Inst.getOperand(3).getImm();
1006 int64_t N = Inst.getOperand(2).getImm();
1007 int64_t B = Inst.getOperand(3).getImm();
1021 int64_t N = Inst.getOperand(2).getImm();
1034 int64_t N = Inst.getOperand(2).getImm();
1047 int64_t N = Inst.getOperand(2).getImm();
1060 int64_t N = Inst.getOperand(2).getImm();
1073 int64_t B = Inst.getOperand(2).getImm();
1074 int64_t N = Inst.getOperand(3).getImm();
1087 int64_t N = Inst.getOperand(2).getImm();
1088 int64_t B = Inst.getOperand(3).getImm();
1100 int64_t N = Inst.getOperand(2).getImm();
1101 int64_t B = Inst.getOperand(3).getImm();
1113 int64_t N = Inst.getOperand(2).getImm();
1114 int64_t B = Inst.getOperand(3).getImm();
1127 int64_t N = Inst.getOperand(2).getImm();
1139 int64_t N = Inst.getOperand(2).getImm();
1150 int64_t N = Inst.getOperand(1).getImm();
1160 int64_t N = Inst.getOperand(2).getImm();
1172 int64_t N = Inst.getOperand(2).getImm();
1184 int64_t B = Inst.getOperand(2).getImm();
1185 int64_t N = Inst.getOperand(3).getImm();
1197 int64_t BM = Inst.getOperand(3).getImm();
1214 int64_t BM = Inst.getOperand(3).getImm();
1232 int64_t BM = Inst.getOperand(3).getImm();
1716 if (EHOp.isU1Imm() && EHOp.getImm() == 0)
1895 if (Op.isU3Imm() && Op.getImm() == ImmVal)