Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 25 of 33) sorted by relevance

12

/art/test/442-checker-constant-folding/src/
DMain.java1379 long imm = 33L; in ReturnInt33() local
1380 return (int) imm; in ReturnInt33()
1396 float imm = 1.0e34f; in ReturnIntMax() local
1397 return (int) imm; in ReturnIntMax()
1413 double imm = Double.NaN; in ReturnInt0() local
1414 return (int) imm; in ReturnInt0()
1430 int imm = 33; in ReturnLong33() local
1431 return (long) imm; in ReturnLong33()
1447 float imm = 34.0f; in ReturnLong34() local
1448 return (long) imm; in ReturnLong34()
[all …]
/art/compiler/optimizing/
Dscheduler_arm64.cc94 int64_t imm = Int64FromConstant(instr->GetRight()->AsConstant()); in VisitDiv() local
95 if (imm == 0) { in VisitDiv()
98 } else if (imm == 1 || imm == -1) { in VisitDiv()
101 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv()
105 DCHECK(imm <= -2 || imm >= 2); in VisitDiv()
162 int64_t imm = Int64FromConstant(instruction->GetRight()->AsConstant()); in VisitRem() local
163 if (imm == 0) { in VisitRem()
166 } else if (imm == 1 || imm == -1) { in VisitRem()
169 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitRem()
173 DCHECK(imm <= -2 || imm >= 2); in VisitRem()
Dscheduler_arm.cc815 void SchedulingLatencyVisitorARM::HandleDivRemConstantIntegralLatencies(int32_t imm) { in HandleDivRemConstantIntegralLatencies() argument
816 if (imm == 0) { in HandleDivRemConstantIntegralLatencies()
819 } else if (imm == 1 || imm == -1) { in HandleDivRemConstantIntegralLatencies()
821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
836 int32_t imm = Int32ConstantFrom(rhs->AsConstant()); in VisitDiv() local
837 HandleDivRemConstantIntegralLatencies(imm); in VisitDiv()
899 int32_t imm = Int32ConstantFrom(rhs->AsConstant()); in VisitRem() local
900 HandleDivRemConstantIntegralLatencies(imm); in VisitRem()
Dcode_generator_x86_64.cc3268 Immediate imm(second.GetConstant()->AsIntConstant()->GetValue()); in VisitSub() local
3269 __ subl(first.AsRegister<CpuRegister>(), imm); in VisitSub()
3371 Immediate imm(mul->InputAt(1)->AsIntConstant()->GetValue()); in VisitMul() local
3372 __ imull(out.AsRegister<CpuRegister>(), first.AsRegister<CpuRegister>(), imm); in VisitMul()
3529 int64_t imm = Int64FromConstant(second.GetConstant()); in DivRemOneOrMinusOne() local
3531 DCHECK(imm == 1 || imm == -1); in DivRemOneOrMinusOne()
3539 if (imm == -1) { in DivRemOneOrMinusOne()
3551 if (imm == -1) { in DivRemOneOrMinusOne()
3567 int64_t imm = Int64FromConstant(second.GetConstant()); in RemByPowerOfTwo() local
3568 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo()
[all …]
Dcode_generator_mips.cc2114 int32_t imm = CodeGenerator::GetInt32ValueOf(right->AsConstant()); in HandleBinaryOp() local
2116 can_use_imm = IsUint<16>(imm); in HandleBinaryOp()
2120 imm = -imm; in HandleBinaryOp()
2124 int16_t imm_high = High16Bits(imm); in HandleBinaryOp()
2125 int16_t imm_low = Low16Bits(imm); in HandleBinaryOp()
2131 can_use_imm = IsInt<16>(imm); in HandleBinaryOp()
3848 int64_t imm = Int64FromConstant(second.GetConstant()); in DivRemOneOrMinusOne() local
3849 DCHECK(imm == 1 || imm == -1); in DivRemOneOrMinusOne()
3858 if (imm == -1) { in DivRemOneOrMinusOne()
3875 if (imm == -1) { in DivRemOneOrMinusOne()
[all …]
Dscheduler_arm.h126 void HandleDivRemConstantIntegralLatencies(int32_t imm);
Dcode_generator_mips64.cc1960 int64_t imm = CodeGenerator::GetInt64ValueOf(right->AsConstant()); in HandleBinaryOp() local
1962 can_use_imm = IsUint<16>(imm); in HandleBinaryOp()
1967 if (!(type == DataType::Type::kInt32 && imm == INT32_MIN)) { in HandleBinaryOp()
1968 imm = -imm; in HandleBinaryOp()
1972 can_use_imm = IsInt<16>(imm) || (Low16Bits(imm) == 0) || single_use; in HandleBinaryOp()
1974 can_use_imm = IsInt<16>(imm) || (IsInt<32>(imm) && (Low16Bits(imm) == 0)) || single_use; in HandleBinaryOp()
3362 int64_t imm = Int64FromConstant(second.GetConstant()); in DivRemOneOrMinusOne() local
3363 DCHECK(imm == 1 || imm == -1); in DivRemOneOrMinusOne()
3368 if (imm == -1) { in DivRemOneOrMinusOne()
3391 int64_t imm = Int64FromConstant(second.GetConstant()); in DivRemByPowerOfTwo() local
[all …]
Dcode_generator_x86.cc3244 Immediate imm(mul->InputAt(1)->AsIntConstant()->GetValue()); in VisitMul() local
3245 __ imull(out.AsRegister<Register>(), first.AsRegister<Register>(), imm); in VisitMul()
3486 int32_t imm = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in DivRemOneOrMinusOne() local
3488 DCHECK(imm == 1 || imm == -1); in DivRemOneOrMinusOne()
3494 if (imm == -1) { in DivRemOneOrMinusOne()
3507 int32_t imm = Int64FromConstant(second.GetConstant()); in RemByPowerOfTwo() local
3508 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo()
3509 uint32_t abs_imm = static_cast<uint32_t>(AbsOrMin(imm)); in RemByPowerOfTwo()
3527 int32_t imm = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in DivByPowerOfTwo() local
3528 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in DivByPowerOfTwo()
[all …]
Dcode_generator_arm64.cc2885 int64_t imm = Int64FromLocation(instruction->GetLocations()->InAt(1)); in FOR_EACH_CONDITION_INSTRUCTION() local
2886 uint64_t abs_imm = static_cast<uint64_t>(AbsOrMin(imm)); in FOR_EACH_CONDITION_INSTRUCTION()
2904 if (imm > 0) { in FOR_EACH_CONDITION_INSTRUCTION()
2920 int64_t imm = Int64FromConstant(second.GetConstant()); in GenerateDivRemWithAnyConstant() local
2928 imm, /* is_long= */ type == DataType::Type::kInt64, &magic, &shift); in GenerateDivRemWithAnyConstant()
2942 if (imm > 0 && magic < 0) { in GenerateDivRemWithAnyConstant()
2944 } else if (imm < 0 && magic > 0) { in GenerateDivRemWithAnyConstant()
2958 __ Mov(temp_imm, imm); in GenerateDivRemWithAnyConstant()
2964 int64_t imm = Int64FromLocation(instruction->GetLocations()->InAt(1)); in GenerateIntDivForConstDenom() local
2966 if (imm == 0) { in GenerateIntDivForConstDenom()
[all …]
/art/compiler/utils/x86/
Dassembler_x86.cc200 void X86Assembler::pushl(const Immediate& imm) { in pushl() argument
202 if (imm.is_int8()) { in pushl()
204 EmitUint8(imm.value() & 0xFF); in pushl()
207 EmitImmediate(imm); in pushl()
225 void X86Assembler::movl(Register dst, const Immediate& imm) { in movl() argument
228 EmitImmediate(imm); in movl()
253 void X86Assembler::movl(const Address& dst, const Immediate& imm) { in movl() argument
257 EmitImmediate(imm); in movl()
422 void X86Assembler::movb(const Address& dst, const Immediate& imm) { in movb() argument
426 CHECK(imm.is_int8()); in movb()
[all …]
Dassembler_x86.h325 void pushl(const Immediate& imm);
335 void movl(const Address& dst, const Immediate& imm);
354 void rorl(Register reg, const Immediate& imm);
356 void roll(Register reg, const Immediate& imm);
365 void movb(const Address& dst, const Immediate& imm);
373 void movw(const Address& dst, const Immediate& imm);
489 void roundsd(XmmRegister dst, XmmRegister src, const Immediate& imm);
490 void roundss(XmmRegister dst, XmmRegister src, const Immediate& imm);
558 void shufpd(XmmRegister dst, XmmRegister src, const Immediate& imm);
559 void shufps(XmmRegister dst, XmmRegister src, const Immediate& imm);
[all …]
Djni_macro_assembler_x86.h63 void StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister scratch) override;
Djni_macro_assembler_x86.cc162 void X86JNIMacroAssembler::StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister) { in StoreImmediateToFrame() argument
163 __ movl(Address(ESP, dest), Immediate(imm)); in StoreImmediateToFrame()
/art/compiler/utils/x86_64/
Dassembler_x86_64.h369 void pushq(const Immediate& imm);
385 void movq(const Address& dst, const Immediate& imm);
387 void movl(const Address& dst, const Immediate& imm);
399 void movb(const Address& dst, const Immediate& imm);
407 void movw(const Address& dst, const Immediate& imm);
529 void roundsd(XmmRegister dst, XmmRegister src, const Immediate& imm);
530 void roundss(XmmRegister dst, XmmRegister src, const Immediate& imm);
597 void shufpd(XmmRegister dst, XmmRegister src, const Immediate& imm);
598 void shufps(XmmRegister dst, XmmRegister src, const Immediate& imm);
599 void pshufd(XmmRegister dst, XmmRegister src, const Immediate& imm);
[all …]
Dassembler_x86_64.cc199 void X86_64Assembler::pushq(const Immediate& imm) { in pushq() argument
201 CHECK(imm.is_int32()); // pushq only supports 32b immediate. in pushq()
202 if (imm.is_int8()) { in pushq()
204 EmitUint8(imm.value() & 0xFF); in pushq()
207 EmitImmediate(imm); in pushq()
227 void X86_64Assembler::movq(CpuRegister dst, const Immediate& imm) { in movq() argument
229 if (imm.is_int32()) { in movq()
234 EmitInt32(static_cast<int32_t>(imm.value())); in movq()
238 EmitInt64(imm.value()); in movq()
243 void X86_64Assembler::movl(CpuRegister dst, const Immediate& imm) { in movl() argument
[all …]
Djni_macro_assembler_x86_64.h64 void StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister scratch) override;
Djni_macro_assembler_x86_64.cc200 uint32_t imm, in StoreImmediateToFrame() argument
202 __ movl(Address(CpuRegister(RSP), dest), Immediate(imm)); // TODO(64) movq? in StoreImmediateToFrame()
/art/compiler/utils/arm/
Dassembler_arm_vixl.h142 void Vmov(vixl32::DRegister rd, double imm) { in Vmov() argument
143 if (vixl::VFP::IsImmFP64(imm)) { in Vmov()
144 MacroAssembler::Vmov(rd, imm); in Vmov()
146 MacroAssembler::Vldr(rd, imm); in Vmov()
Djni_macro_assembler_arm_vixl.h70 void StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister scratch) override;
Djni_macro_assembler_arm_vixl.cc313 uint32_t imm, in StoreImmediateToFrame() argument
318 asm_.LoadImmediate(scratch, imm); in StoreImmediateToFrame()
/art/compiler/utils/
Dassembler_test.h196 for (int64_t imm : imms) { variable
197 ImmType new_imm = CreateImmediate(imm);
218 sreg << imm * multiplier + bias;
252 for (int64_t imm : imms) { in RepeatTemplatedRegistersImmBits() local
253 ImmType new_imm = CreateImmediate(imm); in RepeatTemplatedRegistersImmBits()
280 sreg << imm + bias; in RepeatTemplatedRegistersImmBits()
313 for (int64_t imm : imms) { in RepeatTemplatedImmBitsRegisters() local
314 ImmType new_imm = CreateImmediate(imm); in RepeatTemplatedImmBitsRegisters()
335 sreg << imm; in RepeatTemplatedImmBitsRegisters()
363 for (int64_t imm : imms) { in RepeatTemplatedRegisterImmBits() local
[all …]
Djni_macro_assembler.h86 virtual void StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister scratch) = 0;
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc98 uint32_t imm = (diff16 >> 11) & 0x1u; in PatchPcRelativeReference() local
101 insn = (insn & 0xfbf08f00u) | (imm << 26) | (imm4 << 16) | (imm3 << 12) | imm8; in PatchPcRelativeReference()
/art/compiler/utils/arm64/
Djni_macro_assembler_arm64.h72 void StoreImmediateToFrame(FrameOffset dest, uint32_t imm, ManagedRegister scratch) override;
/art/runtime/interpreter/mterp/mips/
Dmain.S675 #define LOAD_IMM(dest, imm) li dest, imm argument

12