Lines Matching defs:CE

1077     if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
1078 return CE->getValue() % 4 == 0;
1086 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
1087 return CE->getValue() % 2 == 0;
1097 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1098 int64_t Val = CE->getValue();
1112 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1113 int64_t Val = CE->getValue();
1127 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1128 int64_t Val = CE->getValue();
1142 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val);
1143 if (!CE) return false;
1144 Val = CE->getValue();
1149 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
1150 Val = CE->getValue();
1160 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1161 if (!CE) return false;
1162 int Val = ARM_AM::getFP32Imm(APInt(32, CE->getValue()));
1169 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1170 if (!CE) return false;
1171 int64_t Value = CE->getValue();
1178 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1179 if (!CE) return false;
1180 int64_t Value = CE->getValue();
1186 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1187 if (!CE) return false;
1188 int64_t Value = CE->getValue();
1223 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1224 if (!CE) return false;
1225 int64_t Value = -CE->getValue();
1232 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1233 if (!CE) return false;
1236 // thus simple -CE->getValue() results in a big negative number,
1238 if ((CE->getValue() >> 32) > 0) return false;
1239 uint32_t Value = -static_cast<uint32_t>(CE->getValue());
1262 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1265 if (!CE)
1267 int64_t Value = CE->getValue();
1273 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1276 if (!CE) return true;
1277 int64_t Value = CE->getValue();
1283 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1286 if (!CE) return true;
1287 int64_t Value = CE->getValue();
1315 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1316 if (!CE) return false;
1317 int64_t Value = CE->getValue();
1333 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1334 if (!CE) return false;
1335 int64_t Value = CE->getValue();
1341 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1342 if (!CE) return false;
1343 int64_t Value = CE->getValue();
1350 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1351 if (!CE) return false;
1352 int64_t Value = CE->getValue();
1360 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1361 if (!CE) return false;
1362 int64_t Value = CE->getValue();
1432 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1433 if (!CE) return false;
1434 int64_t Value = CE->getValue();
1442 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1443 if (!CE) return false;
1444 int64_t Value = CE->getValue();
1450 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1451 if (!CE) return false;
1452 int64_t Value = CE->getValue();
1459 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1460 if (!CE) return false;
1461 int32_t Value = -(int32_t)CE->getValue();
1467 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1468 if (!CE) return false;
1469 int32_t Value = -(int32_t)CE->getValue();
1533 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1534 int64_t Val = CE->getValue();
1621 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1622 int64_t Val = CE->getValue();
1631 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1632 if (!CE) return false;
1633 int64_t Val = CE->getValue();
1651 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1652 int64_t Val = CE->getValue();
1667 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1668 if (!CE) return false;
1669 int64_t Val = CE->getValue();
1686 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1687 int64_t Val = CE->getValue();
1705 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1706 int64_t Val = CE->getValue();
1762 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1763 int64_t Val = CE->getValue();
1775 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1776 int64_t Val = CE->getValue();
1788 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1789 int64_t Val = CE->getValue();
1801 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1802 int64_t Val = CE->getValue();
1818 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1819 int64_t Val = CE->getValue();
1839 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1840 int64_t Val = CE->getValue();
1852 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1853 int64_t Val = CE->getValue();
1866 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1867 int64_t Val = CE->getValue();
1884 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1885 int64_t Val = CE->getValue();
1938 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1939 int64_t Val = CE->getValue();
1959 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1960 int64_t Val = CE->getValue();
1973 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1974 int64_t Val = CE->getValue();
1986 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1987 int64_t Val = CE->getValue();
2005 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
2006 int64_t Val = CE->getValue();
2023 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2024 if (!CE) return false;
2025 int64_t Val = CE->getValue();
2032 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2033 if (!CE) return false;
2034 int64_t Val = CE->getValue();
2280 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2282 if (!CE) return false;
2283 int64_t Value = CE->getValue();
2294 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2296 if (!CE) return false;
2297 unsigned Value = CE->getValue();
2304 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2306 if (!CE) return false;
2307 unsigned Value = CE->getValue();
2316 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2318 if (!CE) return false;
2319 unsigned Value = CE->getValue();
2326 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2328 if (!CE) return false;
2329 unsigned Value = CE->getValue();
2351 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2353 if (!CE)
2355 int64_t Value = CE->getValue();
2407 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2409 if (!CE)
2411 return isValidNEONi32vmovImm(CE->getValue());
2416 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2418 if (!CE) return false;
2419 return isValidNEONi32vmovImm(~CE->getValue());
2424 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2426 if (!CE) return false;
2427 uint64_t Value = CE->getValue();
2438 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2439 if (!CE) return false;
2440 uint64_t Value = CE->getValue();
2447 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2449 if (!CE) return false;
2450 uint64_t Value = CE->getValue();
2456 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2457 if (!CE) return false;
2458 uint64_t Value = CE->getValue();
2516 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
2517 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2679 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2680 uint32_t Enc = ARM_AM::getSOImmVal(~CE->getValue());
2686 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2687 uint32_t Enc = ARM_AM::getSOImmVal(-CE->getValue());
2693 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2694 uint32_t Val = -CE->getValue();
2700 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2701 uint32_t Val = -CE->getValue();
2723 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2724 Inst.addOperand(MCOperand::createImm(16 - CE->getValue()));
2729 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2730 Inst.addOperand(MCOperand::createImm(32 - CE->getValue()));
2735 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2736 int Val = ARM_AM::getFP32Imm(APInt(32, CE->getValue()));
2744 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2745 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2752 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2753 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2758 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2759 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2764 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2765 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2770 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2771 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2776 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2777 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2784 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2785 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
2792 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2793 Inst.addOperand(MCOperand::createImm(-(CE->getValue() / 4)));
2800 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2801 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
2808 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2809 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1));
2816 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2817 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1));
2824 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2825 unsigned Imm = CE->getValue();
2833 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2834 int Val = CE->getValue();
2842 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2843 Inst.addOperand(MCOperand::createImm(~(uint32_t)CE->getValue()));
2850 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2851 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue()));
2858 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2859 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue()));
2863 if(const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) {
2864 Inst.addOperand(MCOperand::createImm(CE->getValue() >> 2));
2874 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2875 if (CE) {
2876 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2886 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
2887 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2929 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
2930 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2946 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2947 int Val = CE->getValue();
3008 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3009 int32_t Val = CE->getValue();
3032 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3033 assert(CE && "non-constant AM2OffsetImm operand!");
3034 int32_t Val = CE->getValue();
3061 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3062 int32_t Val = CE->getValue();
3093 const MCConstantExpr *CE = static_cast<const MCConstantExpr*>(getImm());
3094 int32_t Val = CE->getValue();
3118 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3120 int32_t Val = CE->getValue() / 4;
3148 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3149 int32_t Val = CE->getValue() / 2;
3197 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3199 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3291 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3293 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3303 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3304 Inst.addOperand(MCOperand::createImm(CE->getValue() / 2));
3320 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3322 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3329 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3330 assert(CE && "non-constant post-idx-imm8 operand!");
3331 int Imm = CE->getValue();
3340 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3341 assert(CE && "non-constant post-idx-imm8s4 operand!");
3342 int Imm = CE->getValue();
3369 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3370 Inst.addOperand(MCOperand::createImm(CE->getValue()));
3478 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3479 Inst.addOperand(MCOperand::createImm(CE->getValue() | 0xe00));
3485 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3486 unsigned Value = CE->getValue();
3494 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3495 unsigned Value = CE->getValue();
3503 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3504 unsigned Value = CE->getValue();
3512 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3513 unsigned Value = CE->getValue();
3520 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3525 unsigned Value = CE->getValue();
3551 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3552 unsigned Value = encodeNeonVMOVImmediate(CE->getValue());
3563 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3570 uint64_t Value = CE->getValue();
3580 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3581 unsigned Value = encodeNeonVMOVImmediate(~CE->getValue());
3587 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3594 uint64_t Value = CE->getValue();
3602 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3603 uint64_t Value = CE->getValue();
3613 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3614 Inst.addOperand(MCOperand::createImm(CE->getValue() / 90));
3619 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3620 Inst.addOperand(MCOperand::createImm((CE->getValue() - 90) / 180));
3625 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3626 unsigned Imm = CE->getValue();
4336 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftExpr);
4337 if (!CE) {
4344 Imm = CE->getValue();
4554 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
4555 if (!CE || CE->getValue() < 0 || CE->getValue() > 255)
4558 int Val = CE->getValue();
4805 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LaneIndex);
4806 if (!CE)
4812 int64_t Val = CE->getValue();
5096 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(MemBarrierID);
5097 if (!CE)
5100 int Val = CE->getValue();
5160 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ISBarrierID);
5161 if (!CE)
5164 int Val = CE->getValue();
5367 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5368 if (!CE)
5370 int Val = CE->getValue();
5374 Operands.push_back(ARMOperand::CreateImm(CE, Loc, EndLoc, *this));
5430 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5431 if (!CE)
5434 int64_t Val = CE->getValue();
5480 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5481 if (!CE)
5484 int64_t Val = CE->getValue();
5533 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm1Exp);
5535 if (CE) {
5537 Imm1 = CE->getValue();
5587 CE = dyn_cast<MCConstantExpr>(Imm2Exp);
5589 if (CE) {
5590 Imm2 = CE->getValue();
5616 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LSBExpr);
5617 if (!CE)
5620 int64_t LSB = CE->getValue();
5639 CE = dyn_cast<MCConstantExpr>(WidthExpr);
5640 if (!CE)
5643 int64_t Width = CE->getValue();
5728 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5729 if (!CE)
5733 int32_t Val = CE->getValue();
5985 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
5986 if (!CE)
5990 switch (CE->getValue()) {
6041 if (const auto *CE = dyn_cast<MCConstantExpr>(Offset)) {
6044 int32_t Val = CE->getValue();
6046 CE = MCConstantExpr::create(std::numeric_limits<int32_t>::min(),
6050 AdjustedOffset = CE;
6165 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
6166 if (!CE)
6168 int64_t Imm = CE->getValue();
6369 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmVal);
6370 if (CE) {
6371 int32_t Val = CE->getValue();
6848 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
6849 if (CE)
7623 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
7624 if (CE)
8254 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
8255 if (CE) break;
11830 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(AttrExpr);
11831 if (check(!CE, TagLoc, "expected numeric constant"))
11834 Tag = CE->getValue();
11864 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr);
11865 if (!CE)
11867 IntegerValue = CE->getValue();
12110 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12111 if (check(!CE, ExLoc, "setfp offset must be an immediate"))
12113 Offset = CE->getValue();
12145 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12146 if (!CE)
12152 getTargetStreamer().emitPad(CE->getValue());
12314 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(IndexExpression);
12315 if (!CE)
12317 if (CE->getValue() < 0 || CE->getValue() >= ARM::EHABI::NUM_PERSONALITY_INDEX)
12321 getTargetStreamer().emitPersonalityIndex(CE->getValue());
12338 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12339 if (!CE)
12342 StackOffset = CE->getValue();
12424 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12425 if (!CE)
12428 Offset = CE->getValue();
13019 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13020 if (CE->getValue() == 0)
13025 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13026 if (CE->getValue() == 8)
13031 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13032 if (CE->getValue() == 16)