Lines Matching refs:Op2
1541 if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) { in ConstantFoldCall() local
1542 if (Op2->getType() != Op1->getType()) in ConstantFoldCall()
1547 Op2V = Op2->getValueAPF().convertToFloat(); in ConstantFoldCall()
1549 Op2V = Op2->getValueAPF().convertToDouble(); in ConstantFoldCall()
1552 APFloat APF = Op2->getValueAPF(); in ConstantFoldCall()
1586 if (ConstantInt *Op2 = dyn_cast<ConstantInt>(Operands[1])) { in ConstantFoldCall() local
1600 Res = Op1->getValue().sadd_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1603 Res = Op1->getValue().uadd_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1606 Res = Op1->getValue().ssub_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1609 Res = Op1->getValue().usub_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1612 Res = Op1->getValue().smul_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1615 Res = Op1->getValue().umul_ov(Op2->getValue(), Overflow); in ConstantFoldCall()
1625 if (Op2->isOne() && Op1->isZero()) // cttz(0, 1) is undef. in ConstantFoldCall()
1629 if (Op2->isOne() && Op1->isZero()) // ctlz(0, 1) is undef. in ConstantFoldCall()