Home
last modified time | relevance | path

Searched refs:shift_amount (Results 1 – 7 of 7) sorted by relevance

/art/compiler/optimizing/
Dnodes_shared.cc32 /*out*/int* shift_amount) { in GetOpInfoFromInstruction() argument
36 *shift_amount = instruction->AsShl()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
39 *shift_amount = instruction->AsShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
42 *shift_amount = instruction->AsUShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
56 *shift_amount = 0; in GetOpInfoFromInstruction()
Dinstruction_simplifier_arm.cc124 int shift_amount = 0; in TryMergeIntoShifterOperand() local
126 HDataProcWithShifterOp::GetOpInfoFromInstruction(bitfield_op, &op_kind, &shift_amount); in TryMergeIntoShifterOperand()
127 shift_amount &= use->GetType() == DataType::Type::kInt32 in TryMergeIntoShifterOperand()
137 } else if (type == DataType::Type::kInt64 && shift_amount == 1) { in TryMergeIntoShifterOperand()
147 shift_amount, in TryMergeIntoShifterOperand()
Dinstruction_simplifier_arm64.cc138 int shift_amount = 0; in TryMergeIntoShifterOperand() local
139 HDataProcWithShifterOp::GetOpInfoFromInstruction(bitfield_op, &op_kind, &shift_amount); in TryMergeIntoShifterOperand()
151 shift_amount, in TryMergeIntoShifterOperand()
Dnodes_shared.h169 /*out*/int* shift_amount);
Dinstruction_simplifier.cc476 HInstruction* shift_amount = instruction->GetRight(); in VisitShift() local
483 if (shift_amount->IsConstant()) { in VisitShift()
484 int64_t cst = Int64FromConstant(shift_amount->AsConstant()); in VisitShift()
502 DCHECK_EQ(shift_amount->GetType(), DataType::Type::kInt32); in VisitShift()
524 if (shift_amount->IsAnd() || in VisitShift()
525 shift_amount->IsOr() || in VisitShift()
526 shift_amount->IsXor() || in VisitShift()
527 shift_amount->IsAdd() || in VisitShift()
528 shift_amount->IsSub()) { in VisitShift()
529 int64_t required_result = shift_amount->IsAnd() ? implicit_mask : 0; in VisitShift()
[all …]
Dcommon_arm64.h200 unsigned shift_amount = 0) {
203 return vixl::aarch64::MemOperand(base.X(), regoffset, shift, shift_amount);
/art/test/458-checker-instruct-simplification/src/
DMain.java3592 $noinline$testUnsignedPromotionWithNonConstantShiftAmount(int value, int shift_amount) { in $noinline$testUnsignedPromotionWithNonConstantShiftAmount() argument
3595 return value << shift_amount >>> shift_amount; in $noinline$testUnsignedPromotionWithNonConstantShiftAmount()
3605 $noinline$testSignedPromotionWithNonConstantShiftAmount(int value, int shift_amount) { in $noinline$testSignedPromotionWithNonConstantShiftAmount() argument
3608 return value << shift_amount >> shift_amount; in $noinline$testSignedPromotionWithNonConstantShiftAmount()