Lines Matching refs:ImmValue
523 APInt ImmValue;
529 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
530 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
532 if (( Signed && ImmValue.isSignedIntN(ImmBitSize)) ||
533 (!Signed && ImmValue.isIntN(ImmBitSize))) {
534 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy);
599 APInt ImmValue;
605 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
606 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
607 int32_t Log2 = ImmValue.exactLogBase2();
630 APInt ImmValue;
636 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
637 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
639 // inverse of ImmValue, and test that the inverse of this is the same
641 if (ImmValue == ~(~ImmValue & ~(~ImmValue + 1))) {
643 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N),
664 APInt ImmValue;
670 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
671 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
674 if (ImmValue == (ImmValue & ~(ImmValue + 1))) {
675 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N),
686 APInt ImmValue;
692 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
693 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
694 int32_t Log2 = (~ImmValue).exactLogBase2();