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 || !isUInt<32>(CE->getValue()))
1163 int Val = ARM_AM::getFP32Imm(APInt(32, CE->getValue()));
1170 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1171 if (!CE) return false;
1172 int64_t Value = CE->getValue();
1179 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1180 if (!CE) return false;
1181 int64_t Value = CE->getValue();
1187 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1188 if (!CE) return false;
1189 int64_t Value = CE->getValue();
1224 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1225 if (!CE) return false;
1226 int64_t Value = -CE->getValue();
1233 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1234 if (!CE) return false;
1237 // thus simple -CE->getValue() results in a big negative number,
1239 if ((CE->getValue() >> 32) > 0) return false;
1240 uint32_t Value = -static_cast<uint32_t>(CE->getValue());
1263 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1266 if (!CE)
1268 int64_t Value = CE->getValue();
1274 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1277 if (!CE) return true;
1278 int64_t Value = CE->getValue();
1284 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1287 if (!CE) return true;
1288 int64_t Value = CE->getValue();
1316 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1317 if (!CE) return false;
1318 int64_t Value = CE->getValue();
1334 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1335 if (!CE) return false;
1336 int64_t Value = CE->getValue();
1342 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1343 if (!CE) return false;
1344 int64_t Value = CE->getValue();
1351 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1352 if (!CE) return false;
1353 int64_t Value = CE->getValue();
1361 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1362 if (!CE) return false;
1363 int64_t Value = CE->getValue();
1433 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1434 if (!CE) return false;
1435 int64_t Value = CE->getValue();
1443 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1444 if (!CE) return false;
1445 int64_t Value = CE->getValue();
1451 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1452 if (!CE) return false;
1453 int64_t Value = CE->getValue();
1460 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1461 if (!CE) return false;
1462 int32_t Value = -(int32_t)CE->getValue();
1468 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1469 if (!CE) return false;
1470 int32_t Value = -(int32_t)CE->getValue();
1534 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1535 int64_t Val = CE->getValue();
1622 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1623 int64_t Val = CE->getValue();
1632 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1633 if (!CE) return false;
1634 int64_t Val = CE->getValue();
1652 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1653 int64_t Val = CE->getValue();
1668 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1669 if (!CE) return false;
1670 int64_t Val = CE->getValue();
1687 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1688 int64_t Val = CE->getValue();
1706 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1707 int64_t Val = CE->getValue();
1763 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1764 int64_t Val = CE->getValue();
1776 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1777 int64_t Val = CE->getValue();
1789 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1790 int64_t Val = CE->getValue();
1802 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1803 int64_t Val = CE->getValue();
1819 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1820 int64_t Val = CE->getValue();
1840 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1841 int64_t Val = CE->getValue();
1853 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1854 int64_t Val = CE->getValue();
1867 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1868 int64_t Val = CE->getValue();
1885 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1886 int64_t Val = CE->getValue();
1939 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1940 int64_t Val = CE->getValue();
1960 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1961 int64_t Val = CE->getValue();
1974 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1975 int64_t Val = CE->getValue();
1987 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
1988 int64_t Val = CE->getValue();
2006 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
2007 int64_t Val = CE->getValue();
2024 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2025 if (!CE) return false;
2026 int64_t Val = CE->getValue();
2033 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2034 if (!CE) return false;
2035 int64_t Val = CE->getValue();
2281 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2283 if (!CE) return false;
2284 int64_t Value = CE->getValue();
2295 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2297 if (!CE) return false;
2298 unsigned Value = CE->getValue();
2305 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2307 if (!CE) return false;
2308 unsigned Value = CE->getValue();
2317 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2319 if (!CE) return false;
2320 unsigned Value = CE->getValue();
2327 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2329 if (!CE) return false;
2330 unsigned Value = CE->getValue();
2352 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2354 if (!CE)
2356 int64_t Value = CE->getValue();
2408 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2410 if (!CE)
2412 return isValidNEONi32vmovImm(CE->getValue());
2417 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2419 if (!CE) return false;
2420 return isValidNEONi32vmovImm(~CE->getValue());
2425 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2427 if (!CE) return false;
2428 uint64_t Value = CE->getValue();
2439 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2440 if (!CE) return false;
2441 uint64_t Value = CE->getValue();
2448 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2450 if (!CE) return false;
2451 uint64_t Value = CE->getValue();
2457 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2458 if (!CE) return false;
2459 uint64_t Value = CE->getValue();
2517 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
2518 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2680 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2681 uint32_t Enc = ARM_AM::getSOImmVal(~CE->getValue());
2687 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2688 uint32_t Enc = ARM_AM::getSOImmVal(-CE->getValue());
2694 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2695 uint32_t Val = -CE->getValue();
2701 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2702 uint32_t Val = -CE->getValue();
2724 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2725 Inst.addOperand(MCOperand::createImm(16 - CE->getValue()));
2730 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2731 Inst.addOperand(MCOperand::createImm(32 - CE->getValue()));
2736 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2737 int Val = ARM_AM::getFP32Imm(APInt(32, CE->getValue()));
2745 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2746 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2753 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2754 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2759 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2760 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2765 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2766 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2771 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2772 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2777 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2778 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2785 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2786 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
2793 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2794 Inst.addOperand(MCOperand::createImm(-(CE->getValue() / 4)));
2801 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2802 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
2809 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2810 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1));
2817 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2818 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1));
2825 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2826 unsigned Imm = CE->getValue();
2834 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2835 int Val = CE->getValue();
2843 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2844 Inst.addOperand(MCOperand::createImm(~(uint32_t)CE->getValue()));
2851 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2852 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue()));
2859 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2860 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue()));
2864 if(const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) {
2865 Inst.addOperand(MCOperand::createImm(CE->getValue() >> 2));
2875 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2876 if (CE) {
2877 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2887 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
2888 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2930 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
2931 Inst.addOperand(MCOperand::createImm(CE->getValue()));
2947 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2948 int Val = CE->getValue();
3009 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3010 int32_t Val = CE->getValue();
3033 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3034 assert(CE && "non-constant AM2OffsetImm operand!");
3035 int32_t Val = CE->getValue();
3062 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3063 int32_t Val = CE->getValue();
3094 const MCConstantExpr *CE = static_cast<const MCConstantExpr*>(getImm());
3095 int32_t Val = CE->getValue();
3119 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3121 int32_t Val = CE->getValue() / 4;
3149 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) {
3150 int32_t Val = CE->getValue() / 2;
3198 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3200 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3292 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3294 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3304 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3305 Inst.addOperand(MCOperand::createImm(CE->getValue() / 2));
3321 else if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm))
3323 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4));
3330 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3331 assert(CE && "non-constant post-idx-imm8 operand!");
3332 int Imm = CE->getValue();
3341 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3342 assert(CE && "non-constant post-idx-imm8s4 operand!");
3343 int Imm = CE->getValue();
3370 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3371 Inst.addOperand(MCOperand::createImm(CE->getValue()));
3479 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3480 Inst.addOperand(MCOperand::createImm(CE->getValue() | 0xe00));
3486 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3487 unsigned Value = CE->getValue();
3495 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3496 unsigned Value = CE->getValue();
3504 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3505 unsigned Value = CE->getValue();
3513 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3514 unsigned Value = CE->getValue();
3521 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3526 unsigned Value = CE->getValue();
3552 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3553 unsigned Value = encodeNeonVMOVImmediate(CE->getValue());
3564 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3571 uint64_t Value = CE->getValue();
3581 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3582 unsigned Value = encodeNeonVMOVImmediate(~CE->getValue());
3588 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3595 uint64_t Value = CE->getValue();
3603 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3604 uint64_t Value = CE->getValue();
3614 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3615 Inst.addOperand(MCOperand::createImm(CE->getValue() / 90));
3620 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3621 Inst.addOperand(MCOperand::createImm((CE->getValue() - 90) / 180));
3626 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3627 unsigned Imm = CE->getValue();
4340 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftExpr);
4341 if (!CE) {
4348 Imm = CE->getValue();
4557 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
4558 if (!CE || CE->getValue() < 0 || CE->getValue() > 255)
4561 int Val = CE->getValue();
4831 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LaneIndex);
4832 if (!CE)
4838 int64_t Val = CE->getValue();
5122 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(MemBarrierID);
5123 if (!CE)
5126 int Val = CE->getValue();
5187 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ISBarrierID);
5188 if (!CE)
5191 int Val = CE->getValue();
5395 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5396 if (!CE)
5398 int Val = CE->getValue();
5402 Operands.push_back(ARMOperand::CreateImm(CE, Loc, EndLoc, *this));
5458 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5459 if (!CE)
5462 int64_t Val = CE->getValue();
5508 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5509 if (!CE)
5512 int64_t Val = CE->getValue();
5561 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm1Exp);
5563 if (CE) {
5565 Imm1 = CE->getValue();
5615 CE = dyn_cast<MCConstantExpr>(Imm2Exp);
5617 if (CE) {
5618 Imm2 = CE->getValue();
5644 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LSBExpr);
5645 if (!CE)
5648 int64_t LSB = CE->getValue();
5667 CE = dyn_cast<MCConstantExpr>(WidthExpr);
5668 if (!CE)
5671 int64_t Width = CE->getValue();
5756 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5757 if (!CE)
5761 int32_t Val = CE->getValue();
6013 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
6014 if (!CE)
6018 switch (CE->getValue()) {
6069 if (const auto *CE = dyn_cast<MCConstantExpr>(Offset)) {
6072 int32_t Val = CE->getValue();
6074 CE = MCConstantExpr::create(std::numeric_limits<int32_t>::min(),
6078 AdjustedOffset = CE;
6193 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
6194 if (!CE)
6196 int64_t Imm = CE->getValue();
6398 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmVal);
6399 if (CE) {
6400 int32_t Val = CE->getValue();
6877 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
6878 if (CE)
7652 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
7653 if (CE)
8286 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
8287 if (CE) break;
11886 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(AttrExpr);
11887 if (check(!CE, TagLoc, "expected numeric constant"))
11890 Tag = CE->getValue();
11920 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr);
11921 if (!CE)
11923 IntegerValue = CE->getValue();
12166 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12167 if (check(!CE, ExLoc, "setfp offset must be an immediate"))
12169 Offset = CE->getValue();
12200 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12201 if (!CE)
12207 getTargetStreamer().emitPad(CE->getValue());
12369 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(IndexExpression);
12370 if (!CE)
12372 if (CE->getValue() < 0 || CE->getValue() >= ARM::EHABI::NUM_PERSONALITY_INDEX)
12376 getTargetStreamer().emitPersonalityIndex(CE->getValue());
12393 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12394 if (!CE)
12397 StackOffset = CE->getValue();
12479 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
12480 if (!CE)
12483 Offset = CE->getValue();
13074 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13075 if (CE->getValue() == 0)
13080 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13081 if (CE->getValue() == 8)
13086 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
13087 if (CE->getValue() == 16)