Home
last modified time | relevance | path

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

/art/runtime/base/
Dbit_utils_test.cc158 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
159 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
160 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
161 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
162 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
163 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
164 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
165 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
166 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
167 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
[all …]
Dbit_utils.h198 static inline bool IsInt(size_t N, T value) { in IsInt() function
218 static constexpr bool IsInt(T value) { in IsInt() function
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc47 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
50 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
58 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
63 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
67 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
74 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
79 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
82 EXPECT_FALSE(IsInt<8>(i)) << i; in TEST()
88 EXPECT_FALSE(IsInt<8>(value)) << value; in TEST()
93 EXPECT_TRUE(IsInt<8>(i)) << i; in TEST()
[all …]
Dassembler_x86_64.h46 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
48 bool is_int16() const { return IsInt<16>(value_); } in is_int16()
50 bool is_int32() const { return IsInt<32>(value_); } in is_int32()
Dassembler_x86_64.cc1683 if (IsInt<8>(v32)) { in imull()
1727 if (IsInt<8>(v64)) { in imulq()
1938 if (IsInt<8>(offset - kShortSize)) { in j()
1975 if (IsInt<8>(offset - kShortSize)) { in jmp()
/art/compiler/dex/quick/mips/
Dutility_mips.cc103 return ((value == 0) || IsUint<16>(value) || IsInt<16>(value)); in InexpensiveConstantInt()
146 } else if (IsInt<16>(value)) { in LoadConstantNoClobber()
178 } else if (IsInt<16>(value)) { in LoadConstantWideNoClobber()
180 } else if ((value & 0xFFFF) == 0 && IsInt<16>(value >> 16)) { in LoadConstantWideNoClobber()
182 } else if (IsInt<32>(value)) { in LoadConstantWideNoClobber()
186 } else if ((value & 0xFFFF0000) == 0 && IsInt<16>(value >> 32)) { in LoadConstantWideNoClobber()
211 } else if (IsInt<16>(tmp)) { in LoadConstantWideNoClobber()
215 } else if (IsInt<32>(tmp)) { in LoadConstantWideNoClobber()
234 } else if (IsInt<16>(tmp)) { in LoadConstantWideNoClobber()
/art/compiler/utils/mips64/
Dassembler_mips64.cc636 } else if (IsInt<16>(value)) { in LoadConst32()
652 } else if (IsInt<16>(value)) { in LoadConst64()
654 } else if ((value & 0xFFFF) == 0 && IsInt<16>(value >> 16)) { in LoadConst64()
656 } else if (IsInt<32>(value)) { in LoadConst64()
660 } else if ((value & 0xFFFF0000) == 0 && IsInt<16>(value >> 32)) { in LoadConst64()
682 } else if (IsInt<16>(tmp)) { in LoadConst64()
688 } else if (IsInt<32>(tmp)) { in LoadConst64()
706 } else if (IsInt<16>(tmp)) { in LoadConst64()
745 if (IsInt<16>(value)) { in Addiu32()
754 if (IsInt<16>(value)) { in Daddiu64()
[all …]
/art/compiler/optimizing/
Dlocations.cc61 return IsInt<32>(value) in RegisterOrInt32LongConstant()
Dcode_generator_x86_64.cc1065 if (IsInt<32>(value)) { in VisitCompare()
2244 DCHECK(IsInt<32>(value)); in VisitSub()
2341 DCHECK(IsInt<32>(value)); in VisitMul()
2657 if (IsInt<32>(imm)) { in GenerateDivRemWithAnyConstant()
3304 DCHECK(IsInt<32>(v)); in HandleFieldSet()
3695 DCHECK(IsInt<32>(v)); in VisitArraySet()
3705 DCHECK(IsInt<32>(v)); in VisitArraySet()
4395 bool is_int32_value = IsInt<32>(value); in HandleBitwiseOperation()
4453 } else if (value > 0 && IsInt<32>(value)) { in Load64BitValue()
Dcode_generator_mips64.cc537 static_assert(IsInt<16>(kCurrentMethodStackOffset), in GenerateFrameEntry()
1024 can_use_imm = IsInt<16>(imm); in HandleBinaryOp()
1027 can_use_imm = IsInt<16>(-imm); in HandleBinaryOp()
1768 if (use_imm && IsInt<16>(rhs_imm)) { in VisitCondition()
1786 if (use_imm && IsInt<16>(rhs_imm + 1)) { in VisitCondition()
Dnodes.cc325 DCHECK(IsInt(Primitive::ComponentSize(type) * kBitsPerByte, value)); in GetConstant()
Dintrinsics_x86_64.cc1189 DCHECK(IsInt<32>(v)); in GenPoke()
/art/compiler/utils/x86/
Dassembler_x86.h38 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
40 bool is_int16() const { return IsInt<16>(value_); } in is_int16()
Dassembler_x86.cc1461 if (IsInt<8>(offset - kShortSize)) { in j()
1496 if (IsInt<8>(offset - kShortSize)) { in jmp()
/art/runtime/
Ddex_file.cc1219 CHECK(IsInt<8>(jval_.i)); in Next()
1223 CHECK(IsInt<16>(jval_.i)); in Next()
/art/compiler/utils/mips/
Dassembler_mips.cc127 CHECK(IsInt(POPCOUNT(kBranchOffsetMask), offset)) << offset; in EncodeBranchOffset()
/art/compiler/utils/arm/
Dassembler_arm32.cc1335 CHECK(IsInt(POPCOUNT(kBranchOffsetMask), offset)) << offset; in EncodeBranchOffset()