Lines Matching refs:shift

3707   int shift = CTZ(imm);  in DivByPowerOfTwo()  local
3708 __ sarl(num, Immediate(shift)); in DivByPowerOfTwo()
3745 int shift; in GenerateDivRemWithAnyConstant() local
3746 CalculateMagicAndShiftForDivRem(imm, /* is_long= */ false, &magic, &shift); in GenerateDivRemWithAnyConstant()
3765 if (shift != 0) { in GenerateDivRemWithAnyConstant()
3766 __ sarl(edx, Immediate(shift)); in GenerateDivRemWithAnyConstant()
4438 int32_t shift = second.GetConstant()->AsIntConstant()->GetValue() & kMaxIntShiftDistance; in HandleShift() local
4439 if (shift == 0) { in HandleShift()
4442 Immediate imm(shift); in HandleShift()
4466 int32_t shift = second.GetConstant()->AsIntConstant()->GetValue() & kMaxLongShiftDistance; in HandleShift() local
4468 if (shift != 0) { in HandleShift()
4470 GenerateShlLong(first, shift); in HandleShift()
4472 GenerateShrLong(first, shift); in HandleShift()
4474 GenerateUShrLong(first, shift); in HandleShift()
4485 void InstructionCodeGeneratorX86::GenerateShlLong(const Location& loc, int shift) { in GenerateShlLong() argument
4488 if (shift == 1) { in GenerateShlLong()
4492 } else if (shift == 32) { in GenerateShlLong()
4501 } else if (shift > 32) { in GenerateShlLong()
4504 __ shll(high, Immediate(shift - 32)); in GenerateShlLong()
4508 __ shld(high, low, Immediate(shift)); in GenerateShlLong()
4509 __ shll(low, Immediate(shift)); in GenerateShlLong()
4524 void InstructionCodeGeneratorX86::GenerateShrLong(const Location& loc, int shift) { in GenerateShrLong() argument
4527 if (shift == 32) { in GenerateShrLong()
4532 } else if (shift > 32) { in GenerateShrLong()
4537 __ sarl(low, Immediate(shift - 32)); in GenerateShrLong()
4540 __ shrd(low, high, Immediate(shift)); in GenerateShrLong()
4541 __ sarl(high, Immediate(shift)); in GenerateShrLong()
4556 void InstructionCodeGeneratorX86::GenerateUShrLong(const Location& loc, int shift) { in GenerateUShrLong() argument
4559 if (shift == 32) { in GenerateUShrLong()
4568 } else if (shift > 32) { in GenerateUShrLong()
4571 __ shrl(low, Immediate(shift - 32)); in GenerateUShrLong()
4575 __ shrd(low, high, Immediate(shift)); in GenerateUShrLong()
4576 __ shrl(high, Immediate(shift)); in GenerateUShrLong()