Lines Matching refs:ShiftAmount
301 uint64_t ShiftAmount = N->getConstantOperandVal(1); in LowerShifts() local
302 if (ShiftAmount == 16) { in LowerShifts()
318 SDValue Cnt = DAG.getTargetConstant(ShiftAmount, dl, MVT::i8); in LowerShifts()
369 uint64_t ShiftAmount = N->getConstantOperandVal(1); in LowerShifts() local
378 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
382 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
396 if (Op.getOpcode() == ISD::SHL && 4 <= ShiftAmount && ShiftAmount < 7) { in LowerShifts()
401 ShiftAmount -= 4; in LowerShifts()
402 } else if (Op.getOpcode() == ISD::SRL && 4 <= ShiftAmount && in LowerShifts()
403 ShiftAmount < 7) { in LowerShifts()
408 ShiftAmount -= 4; in LowerShifts()
409 } else if (Op.getOpcode() == ISD::SHL && ShiftAmount == 7) { in LowerShifts()
413 ShiftAmount = 0; in LowerShifts()
414 } else if (Op.getOpcode() == ISD::SRL && ShiftAmount == 7) { in LowerShifts()
418 ShiftAmount = 0; in LowerShifts()
419 } else if (Op.getOpcode() == ISD::SRA && ShiftAmount == 6) { in LowerShifts()
423 ShiftAmount = 0; in LowerShifts()
424 } else if (Op.getOpcode() == ISD::SRA && ShiftAmount == 7) { in LowerShifts()
428 ShiftAmount = 0; in LowerShifts()
429 } else if (Op.getOpcode() == ISD::ROTL && ShiftAmount == 3) { in LowerShifts()
434 ShiftAmount = 0; in LowerShifts()
435 } else if (Op.getOpcode() == ISD::ROTR && ShiftAmount == 3) { in LowerShifts()
440 ShiftAmount = 0; in LowerShifts()
441 } else if (Op.getOpcode() == ISD::ROTL && ShiftAmount == 7) { in LowerShifts()
445 ShiftAmount = 0; in LowerShifts()
446 } else if (Op.getOpcode() == ISD::ROTR && ShiftAmount == 7) { in LowerShifts()
450 ShiftAmount = 0; in LowerShifts()
452 ShiftAmount >= 4) { in LowerShifts()
455 ShiftAmount -= 4; in LowerShifts()
460 switch (ShiftAmount) { in LowerShifts()
464 ShiftAmount = 0; in LowerShifts()
469 ShiftAmount = 0; in LowerShifts()
474 ShiftAmount = 0; in LowerShifts()
479 if (4 <= ShiftAmount && ShiftAmount < 8) in LowerShifts()
484 ShiftAmount -= 4; in LowerShifts()
489 ShiftAmount -= 4; in LowerShifts()
494 else if (8 <= ShiftAmount && ShiftAmount < 12) in LowerShifts()
499 ShiftAmount -= 8; in LowerShifts()
506 ShiftAmount -= 8; in LowerShifts()
513 ShiftAmount -= 8; in LowerShifts()
520 else if (12 <= ShiftAmount) in LowerShifts()
525 ShiftAmount -= 12; in LowerShifts()
532 ShiftAmount -= 12; in LowerShifts()
539 ShiftAmount -= 8; in LowerShifts()
548 while (ShiftAmount--) { in LowerShifts()