Lines Matching defs:ElementBits
6657 static bool getVShiftImm(SDValue Op, unsigned ElementBits, int64_t &Cnt) {
6667 ElementBits) ||
6668 SplatBitSize > ElementBits)
6676 /// 0 <= Value < ElementBits for a left shift; or
6677 /// 0 <= Value <= ElementBits for a long left shift.
6680 int64_t ElementBits = VT.getScalarSizeInBits();
6681 if (!getVShiftImm(Op, ElementBits, Cnt))
6683 return (Cnt >= 0 && (isLong ? Cnt - 1 : Cnt) < ElementBits);
6690 /// 1 <= |Value| <= ElementBits for a right shift; or
6691 /// 1 <= |Value| <= ElementBits/2 for a narrow right shift.
6695 int64_t ElementBits = VT.getScalarSizeInBits();
6696 if (!getVShiftImm(Op, ElementBits, Cnt))
6699 return (Cnt >= 1 && Cnt <= (isNarrow ? ElementBits / 2 : ElementBits));
6700 if (Cnt >= -(isNarrow ? ElementBits / 2 : ElementBits) && Cnt <= -1) {