Lines Matching refs:ShiftAmount

311   uint64_t ShiftAmount = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();  in LowerShifts()  local
320 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
324 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
338 if (Op.getOpcode() == ISD::SHL && 4 <= ShiftAmount && ShiftAmount < 7) { in LowerShifts()
343 ShiftAmount -= 4; in LowerShifts()
344 } else if (Op.getOpcode() == ISD::SRL && 4 <= ShiftAmount && in LowerShifts()
345 ShiftAmount < 7) { in LowerShifts()
350 ShiftAmount -= 4; in LowerShifts()
351 } else if (Op.getOpcode() == ISD::SHL && ShiftAmount == 7) { in LowerShifts()
355 ShiftAmount = 0; in LowerShifts()
356 } else if (Op.getOpcode() == ISD::SRL && ShiftAmount == 7) { in LowerShifts()
360 ShiftAmount = 0; in LowerShifts()
361 } else if (Op.getOpcode() == ISD::SRA && ShiftAmount == 6) { in LowerShifts()
365 ShiftAmount = 0; in LowerShifts()
366 } else if (Op.getOpcode() == ISD::SRA && ShiftAmount == 7) { in LowerShifts()
370 ShiftAmount = 0; in LowerShifts()
375 switch (ShiftAmount) { in LowerShifts()
379 ShiftAmount = 0; in LowerShifts()
384 ShiftAmount = 0; in LowerShifts()
389 ShiftAmount = 0; in LowerShifts()
394 if (4 <= ShiftAmount && ShiftAmount < 8) in LowerShifts()
399 ShiftAmount -= 4; in LowerShifts()
404 ShiftAmount -= 4; in LowerShifts()
409 else if (8 <= ShiftAmount && ShiftAmount < 12) in LowerShifts()
414 ShiftAmount -= 8; in LowerShifts()
421 ShiftAmount -= 8; in LowerShifts()
428 ShiftAmount -= 8; in LowerShifts()
435 else if (12 <= ShiftAmount) in LowerShifts()
440 ShiftAmount -= 12; in LowerShifts()
447 ShiftAmount -= 12; in LowerShifts()
454 ShiftAmount -= 8; in LowerShifts()
463 while (ShiftAmount--) { in LowerShifts()