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.h246 inline bool IsInt(size_t N, T value) { in IsInt() function
265 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_mips64.cc1972 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()
2039 if (IsInt<16>(rhs_imm)) { in HandleBinaryOp()
2062 if (IsInt<16>(rhs_imm)) { in HandleBinaryOp()
2064 } else if (IsInt<32>(rhs_imm)) { in HandleBinaryOp()
2869 if (index_value < 0 || IsInt<16>(index_value + 1)) { in VisitBoundsCheck()
2933 DCHECK(IsInt<16>(index + 1)) << index; in VisitBoundsCheck()
3758 if (use_imm && IsInt<16>(-rhs_imm)) { in GenerateIntLongCompare()
3797 if (use_imm && IsInt<16>(rhs_imm)) { in GenerateIntLongCompare()
3815 if (use_imm && IsInt<16>(rhs_imm_plus_one)) { in GenerateIntLongCompare()
[all …]
Dcode_generator_mips.cc1387 bool exchange = IsInt<16>(static_cast<int32_t>(frame_size)); in GenerateFrameExit()
2131 can_use_imm = IsInt<16>(imm); in HandleBinaryOp()
2204 if (IsInt<16>(rhs_imm)) { in HandleBinaryOp()
2339 if (IsInt<16>(low)) { in HandleBinaryOp()
2351 if (IsInt<16>(high)) { in HandleBinaryOp()
3314 if (index_value < 0 || IsInt<16>(index_value + 1)) { in VisitBoundsCheck()
3378 DCHECK(IsInt<16>(index + 1)) << index; in VisitBoundsCheck()
4421 if (use_imm && IsInt<16>(-rhs_imm)) { in GenerateIntCompare()
4456 if (use_imm && IsInt<16>(rhs_imm)) { in GenerateIntCompare()
4474 if (use_imm && IsInt<16>(rhs_imm + 1)) { in GenerateIntCompare()
[all …]
Dcode_generator_x86_64.cc3278 DCHECK(IsInt<32>(value)); in VisitSub()
3340 IsInt<32>(mul->InputAt(1)->AsLongConstant()->GetValue())) { in VisitMul()
3388 if (IsInt<32>(value)) { in VisitMul()
3750 if (IsInt<32>(imm)) { in GenerateDivRemWithAnyConstant()
6900 bool is_int32_value = IsInt<32>(value); in HandleBitwiseOperation()
7412 if (IsInt<32>(value)) { in Compare64BitValue()
7463 if (IsInt<32>(value)) { in Store64BitValueToStack()
7613 if (IsInt<32>(v)) { in MoveInt64ToAddress()
Dloop_optimization.cc104 if (IsInt<8>(value)) { in IsSignExtensionAndGet()
111 if (IsInt<16>(value)) { in IsSignExtensionAndGet()
Dintrinsics_mips64.cc1829 if (IsInt<16>(length_constant)) { in EnoughItems()
Dinstruction_simplifier.cc1384 IsInt<32>(value) && in VisitAnd()
Dintrinsics_mips.cc2449 if (IsInt<16>(length_constant)) { in EnoughItems()
Dnodes.cc712 DCHECK(IsInt(DataType::Size(type) * kBitsPerByte, value)); in GetConstant()
Dintrinsics_x86_64.cc1789 DCHECK(IsInt<32>(v)); in GenPoke()
/art/compiler/utils/mips64/
Dassembler_mips64.cc488 CHECK(IsInt<9>(imm9)); in Sc()
493 CHECK(IsInt<9>(imm9)); in Scd()
498 CHECK(IsInt<9>(imm9)); in Ll()
503 CHECK(IsInt<9>(imm9)); in Lld()
2036 CHECK(IsInt<8>(imm8)) << imm8; in LdiB()
2042 CHECK(IsInt<10>(imm10)) << imm10; in LdiH()
2048 CHECK(IsInt<10>(imm10)) << imm10; in LdiW()
2054 CHECK(IsInt<10>(imm10)) << imm10; in LdiD()
2060 CHECK(IsInt<10>(offset)) << offset; in LdB()
2066 CHECK(IsInt<11>(offset)) << offset; in LdH()
[all …]
Dassembler_mips64.h70 } else if (IsInt<16>(value)) { in TemplateLoadConst32()
90 return (IsUint<16>(x) || IsInt<16>(x) || ((x & 0xFFFF) == 0)) ? 2 : 3; in InstrCountForLoadReplicatedConst32()
106 } else if (IsInt<16>(value)) { in TemplateLoadConst64()
110 } else if ((value & 0xFFFF) == 0 && IsInt<16>(value >> 16)) { in TemplateLoadConst64()
115 } else if (IsInt<32>(value)) { in TemplateLoadConst64()
122 } else if ((value & 0xFFFF0000) == 0 && IsInt<16>(value >> 32)) { in TemplateLoadConst64()
150 } else if (IsInt<16>(static_cast<int32_t>(value)) && in TemplateLoadConst64()
157 } else if (IsInt<16>(static_cast<int32_t>(value)) && in TemplateLoadConst64()
188 } else if (IsInt<16>(tmp)) { in TemplateLoadConst64()
205 } else if (IsInt<32>(tmp)) { in TemplateLoadConst64()
[all …]
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc52 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
55 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
63 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
68 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
72 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
79 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
84 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
87 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
93 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
98 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.cc2904 if (IsInt<8>(v32)) { in imull()
2953 if (IsInt<8>(v64)) { in imulq()
3204 if (IsInt<8>(offset - kShortSize)) { in j()
3226 CHECK(IsInt<8>(offset - kShortSize)); in j()
3242 CHECK(IsInt<8>(offset - kShortSize)); in jrcxz()
3273 if (IsInt<8>(offset - kShortSize)) { in jmp()
3293 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
3618 CHECK(IsInt<8>(offset)); in Bind()
/art/compiler/utils/mips/
Dassembler_mips.cc842 CHECK(IsInt<9>(imm9)); in LlR6()
848 CHECK(IsInt<9>(imm9)); in ScR6()
2504 CHECK(IsInt<8>(imm8)) << imm8; in LdiB()
2510 CHECK(IsInt<10>(imm10)) << imm10; in LdiH()
2516 CHECK(IsInt<10>(imm10)) << imm10; in LdiW()
2522 CHECK(IsInt<10>(imm10)) << imm10; in LdiD()
2528 CHECK(IsInt<10>(offset)) << offset; in LdB()
2534 CHECK(IsInt<11>(offset)) << offset; in LdH()
2542 CHECK(IsInt<12>(offset)) << offset; in LdW()
2550 CHECK(IsInt<13>(offset)) << offset; in LdD()
[all …]
/art/libdexfile/dex/
Ddex_file.cc623 CHECK(IsInt<8>(jval_.i)); in Next()
627 CHECK(IsInt<16>(jval_.i)); in Next()
/art/compiler/utils/x86/
Dassembler_x86.cc2420 if (IsInt<8>(v32)) { in imull()
2715 if (IsInt<8>(offset - kShortSize)) { in j()
2737 CHECK(IsInt<8>(offset - kShortSize)); in j()
2753 CHECK(IsInt<8>(offset - kShortSize)); in jecxz()
2782 if (IsInt<8>(offset - kShortSize)) { in jmp()
2802 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
2972 CHECK(IsInt<8>(offset)); in Bind()
Dassembler_x86.h43 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
45 bool is_int16() const { return IsInt<16>(value_); } in is_int16()