Home
last modified time | relevance | path

Searched refs:IsInt (Results 1 – 15 of 15) 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_x86_64.cc3578 DCHECK(IsInt<32>(value)); in VisitSub()
3640 IsInt<32>(mul->InputAt(1)->AsLongConstant()->GetValue())) { in VisitMul()
3688 if (IsInt<32>(value)) { in VisitMul()
4050 if (IsInt<32>(imm)) { in GenerateDivRemWithAnyConstant()
7270 bool is_int32_value = IsInt<32>(value); in HandleBitwiseOperation()
7782 if (IsInt<32>(value)) { in Compare64BitValue()
7833 if (IsInt<32>(value)) { in Store64BitValueToStack()
7983 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.cc57 return IsInt<8>(value); in SVECanEncodeConstantAsImmediate()
Dinstruction_simplifier.cc1472 IsInt<32>(value) && in VisitAnd()
Dnodes.cc885 DCHECK(IsInt(DataType::Size(type) * kBitsPerByte, value)); in GetConstant()
Dintrinsics_x86_64.cc1731 DCHECK(IsInt<32>(v)); in GenPoke()
/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.h51 bool is_int8() const { return IsInt<8>(value_); } in is_int8()
53 bool is_int16() const { return IsInt<16>(value_); } in is_int16()
55 bool is_int32() const { return IsInt<32>(value_); } in is_int32()
Dassembler_x86_64.cc4418 if (IsInt<8>(v32)) { in imull()
4467 if (IsInt<8>(v64)) { in imulq()
4718 if (IsInt<8>(offset - kShortSize)) { in j()
4740 CHECK(IsInt<8>(offset - kShortSize)); in j()
4756 CHECK(IsInt<8>(offset - kShortSize)); in jrcxz()
4787 if (IsInt<8>(offset - kShortSize)) { in jmp()
4807 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
5132 CHECK(IsInt<8>(offset)); in Bind()
/art/libdexfile/dex/
Ddex_file.cc642 CHECK(IsInt<8>(jval_.i)); in Next()
646 CHECK(IsInt<16>(jval_.i)); in Next()
/art/compiler/utils/x86/
Dassembler_x86.cc3217 if (IsInt<8>(v32)) { in imull()
3512 if (IsInt<8>(offset - kShortSize)) { in j()
3534 CHECK(IsInt<8>(offset - kShortSize)); in j()
3550 CHECK(IsInt<8>(offset - kShortSize)); in jecxz()
3579 if (IsInt<8>(offset - kShortSize)) { in jmp()
3599 CHECK(IsInt<8>(offset - kShortSize)); in jmp()
3809 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()