Lines Matching defs:C0
1221 Constant *C0 = ConstantFoldIntegerCast(CE0->getOperand(0), IntPtrTy,
1225 if (C0 && C1)
1226 return ConstantFoldCompareInstOperands(Predicate, C0, C1, DL, TLI);
2785 const APInt *C0, *C1;
2786 if (!getConstIntOrUndef(Operands[0], C0) ||
2801 if (!C0 && !C1)
2803 if (!C0 || !C1)
2806 Ty, ICmpInst::compare(*C0, *C1,
2808 ? *C0
2816 if (!C0 || !C1)
2821 Res = C0->sgt(*C1) ? 1 : C0->slt(*C1) ? -1 : 0;
2823 Res = C0->ugt(*C1) ? 1 : C0->ult(*C1) ? -1 : 0;
2830 if (!C0 || !C1)
2837 if (!C0 || !C1) {
2848 if (!C0 || !C1)
2856 Res = C0->sadd_ov(*C1, Overflow);
2859 Res = C0->uadd_ov(*C1, Overflow);
2862 Res = C0->ssub_ov(*C1, Overflow);
2865 Res = C0->usub_ov(*C1, Overflow);
2868 Res = C0->smul_ov(*C1, Overflow);
2871 Res = C0->umul_ov(*C1, Overflow);
2887 if (!C0 && !C1)
2889 if (!C0 || !C1)
2892 return ConstantInt::get(Ty, C0->uadd_sat(*C1));
2894 return ConstantInt::get(Ty, C0->sadd_sat(*C1));
2902 if (!C0 && !C1)
2904 if (!C0 || !C1)
2907 return ConstantInt::get(Ty, C0->usub_sat(*C1));
2909 return ConstantInt::get(Ty, C0->ssub_sat(*C1));
2915 if (C1->isOne() && (!C0 || C0->isZero()))
2917 if (!C0)
2920 return ConstantInt::get(Ty, C0->countr_zero());
2922 return ConstantInt::get(Ty, C0->countl_zero());
2929 if (C1->isOne() && (!C0 || C0->isMinSignedValue()))
2933 if (!C0)
2936 return ConstantInt::get(Ty, C0->abs());
3057 const APInt *C0, *C1, *C2;
3058 if (!getConstIntOrUndef(Operands[0], C0) ||
3077 const APInt *Src = ((Sel & 10) == 10 || (Sel & 12) == 4) ? C0 : C1;
3165 const APInt *C0, *C1;
3166 if (!getConstIntOrUndef(Operands[0], C0) ||
3172 if (!C0 || !C1)
3182 unsigned Width = C0->getBitWidth();
3186 (C0->sext(ExtendedWidth) * C1->sext(ExtendedWidth)).ashr(Scale);
3197 const APInt *C0, *C1, *C2;
3198 if (!getConstIntOrUndef(Operands[0], C0) ||
3206 if (!C0 && !C1)
3216 // (C0 << ShlAmt) | (C1 >> LshrAmt)
3219 if (!C0)
3222 return ConstantInt::get(Ty, C0->shl(ShlAmt));
3223 return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt));