Home
last modified time | relevance | path

Searched refs:IsInt (Results 1 – 21 of 21) sorted by relevance

/art/libartbase/base/
Dbit_utils_test.cc185 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
186 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
187 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
188 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
189 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
190 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
191 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
192 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
193 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
194 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
[all …]
Dbit_utils.h255 inline bool IsInt(size_t N, T value) { in IsInt() function
274 constexpr bool IsInt(T value) { in IsInt() function
/art/compiler/optimizing/
Dlocations.cc68 if (IsInt<32>(value)) { in RegisterOrInt32Constant()
79 if (IsInt<32>(value)) { in FpuRegisterOrInt32Constant()
Dcode_generator_riscv64.cc1083 if (!IsInt<12>(index2)) { in Exchange()
1084 if (!IsInt<12>(index1)) { in Exchange()
1090 DCHECK_IMPLIES(!IsInt<12>(index2), use_fp_tmp2); in Exchange()
1111 DCHECK(IsInt<12>(index2)); in Exchange()
1596 DCHECK(IsInt<12>(-imm)); in GenerateIntLongCondition()
1609 DCHECK(IsInt<12>(imm)); in GenerateIntLongCondition()
1622 DCHECK(IsInt<12>(imm + 1)); // The value that overflows would fail this check. in GenerateIntLongCondition()
1638 DCHECK(IsInt<12>(imm)); in GenerateIntLongCondition()
1654 DCHECK(IsInt<12>(imm + 1)); // The value that overflows would fail this check. in GenerateIntLongCondition()
2121 can_use_imm = IsInt<12>(instruction->IsSub() ? -imm : imm); in HandleBinaryOp()
[all …]
Dcode_generator_x86_64.cc3980 DCHECK(IsInt<32>(value)); in VisitSub()
4042 IsInt<32>(mul->InputAt(1)->AsLongConstant()->GetValue())) { in VisitMul()
4090 if (IsInt<32>(value)) { in VisitMul()
4452 if (IsInt<32>(imm)) { in GenerateDivRemWithAnyConstant()
7798 bool is_int32_value = IsInt<32>(value); in HandleBitwiseOperation()
8307 if (IsInt<32>(value)) { in Compare64BitValue()
8358 if (IsInt<32>(value)) { in Store64BitValueToStack()
8508 if (IsInt<32>(v)) { in MoveInt64ToAddress()
Dloop_optimization.cc103 if (IsInt<8>(value)) { in IsSignExtensionAndGet()
110 if (IsInt<16>(value)) { in IsSignExtensionAndGet()
Dcode_generator_vector_arm64_sve.cc54 return IsInt<8>(value); in SVECanEncodeConstantAsImmediate()
Dintrinsics_riscv64.cc1585 if (const_input != nullptr && IsInt<12>(const_input->GetValue())) { in LocationForSystemArrayCopyInput()
3117 DCHECK(IsInt<12>(super_class_offset.Int32Value())); in GenerateSubTypeObjectCheckNoReadBarrier()
Dnodes.cc770 DCHECK(IsInt(DataType::Size(type) * kBitsPerByte, value)); in GetConstant()
Dinstruction_simplifier.cc1611 IsInt<32>(value) && in VisitAnd()
Dintrinsics_x86_64.cc1747 DCHECK(IsInt<32>(v)); in GenPoke()
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc53 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
56 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
64 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
69 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
73 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
80 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
85 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
88 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
94 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
99 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
[all …]
Dassembler_x86_64.h50 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
52 bool is_int16() const { return IsInt<16>(value_); } in is_int16()
54 bool is_int32() const { return IsInt<32>(value_); } in is_int32()
Dassembler_x86_64.cc4634 if (IsInt<8>(v32)) { in imull()
4683 if (IsInt<8>(v64)) { in imulq()
4934 if (IsInt<8>(offset - kShortSize)) { in j()
4956 CHECK(IsInt<8>(offset - kShortSize)); in j()
4972 CHECK(IsInt<8>(offset - kShortSize)); in jrcxz()
5003 if (IsInt<8>(offset - kShortSize)) { in jmp()
5023 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
5389 CHECK(IsInt<8>(offset)); in Bind()
/art/compiler/utils/riscv64/
Djni_macro_assembler_riscv64.cc415 DCHECK(IsInt<12>(kGlobalOrWeakGlobalMask)); in DecodeJNITransitionOrLocalJObject()
417 DCHECK(IsInt<12>(kIndirectRefKindMask)); in DecodeJNITransitionOrLocalJObject()
533 DCHECK(IsInt<12>(dchecked_integral_cast<int32_t>(Thread::SuspendOrCheckpointRequestFlags()))); in SuspendCheck()
Dassembler_riscv64.cc40 DCHECK(IsInt<12>(short_offset)); in SplitOffset()
90 if (rd == Zero && IsInt<12>(offset)) { in Jal()
118 if (rs2 == Zero && IsShortReg(rs1) && IsInt<9>(offset)) { in Beq()
121 } else if (rs1 == Zero && IsShortReg(rs2) && IsInt<9>(offset)) { in Beq()
132 if (rs2 == Zero && IsShortReg(rs1) && IsInt<9>(offset)) { in Bne()
135 } else if (rs1 == Zero && IsShortReg(rs2) && IsInt<9>(offset)) { in Bne()
308 if (rs1 == Zero && IsInt<6>(imm12)) { in Addi()
315 if (IsInt<6>(imm12)) { in Addi()
318 } else if (rd == SP && IsInt<10>(imm12) && IsAligned<16>(imm12)) { in Addi()
364 if (rd == rs1 && IsShortReg(rd) && IsInt<6>(imm12)) { in Andi()
[all …]
Dassembler_riscv64.h2236 DCHECK(IsInt<kWidth>(imm)); in EncodeIntWidth()
2333 DCHECK(IsInt<12>(imm12)) << imm12; in EmitI()
2397 DCHECK(IsInt<12>(imm12)) << imm12; in EmitS()
2443 DCHECK(IsInt<13>(offset)) << offset; in EmitB()
2480 CHECK(IsInt<21>(offset)) << offset; in EmitJ()
2651 DCHECK(IsInt<9>(offset)); in EmitCBBranch()
2686 DCHECK(IsInt<12>(offset)) << offset; in EmitCJ()
Dassembler_riscv64_test.cc823 [](int64_t value) { return IsInt<13>(value); }); in TestAddConst()
/art/libdexfile/dex/
Ddex_file.cc761 CHECK(IsInt<8>(jval_.i)); in MaybeNext()
765 CHECK(IsInt<16>(jval_.i)); in MaybeNext()
/art/compiler/utils/x86/
Dassembler_x86.cc3303 if (IsInt<8>(v32)) { in imull()
3598 if (IsInt<8>(offset - kShortSize)) { in j()
3620 CHECK(IsInt<8>(offset - kShortSize)); in j()
3636 CHECK(IsInt<8>(offset - kShortSize)); in jecxz()
3665 if (IsInt<8>(offset - kShortSize)) { in jmp()
3685 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
3900 CHECK(IsInt<8>(offset)); in Bind()
Dassembler_x86.h44 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
46 bool is_int16() const { return IsInt<16>(value_); } in is_int16()