/art/libartbase/base/ |
D | bit_utils_test.cc | 185 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 …]
|
D | bit_utils.h | 255 inline bool IsInt(size_t N, T value) { in IsInt() function 274 constexpr bool IsInt(T value) { in IsInt() function
|
/art/compiler/optimizing/ |
D | locations.cc | 68 if (IsInt<32>(value)) { in RegisterOrInt32Constant() 79 if (IsInt<32>(value)) { in FpuRegisterOrInt32Constant()
|
D | code_generator_riscv64.cc | 1083 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 …]
|
D | code_generator_x86_64.cc | 3980 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()
|
D | loop_optimization.cc | 103 if (IsInt<8>(value)) { in IsSignExtensionAndGet() 110 if (IsInt<16>(value)) { in IsSignExtensionAndGet()
|
D | code_generator_vector_arm64_sve.cc | 54 return IsInt<8>(value); in SVECanEncodeConstantAsImmediate()
|
D | intrinsics_riscv64.cc | 1585 if (const_input != nullptr && IsInt<12>(const_input->GetValue())) { in LocationForSystemArrayCopyInput() 3117 DCHECK(IsInt<12>(super_class_offset.Int32Value())); in GenerateSubTypeObjectCheckNoReadBarrier()
|
D | nodes.cc | 770 DCHECK(IsInt(DataType::Size(type) * kBitsPerByte, value)); in GetConstant()
|
D | instruction_simplifier.cc | 1611 IsInt<32>(value) && in VisitAnd()
|
D | intrinsics_x86_64.cc | 1747 DCHECK(IsInt<32>(v)); in GenPoke()
|
/art/compiler/utils/x86_64/ |
D | assembler_x86_64_test.cc | 53 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 …]
|
D | assembler_x86_64.h | 50 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()
|
D | assembler_x86_64.cc | 4634 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/ |
D | jni_macro_assembler_riscv64.cc | 415 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()
|
D | assembler_riscv64.cc | 40 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 …]
|
D | assembler_riscv64.h | 2236 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()
|
D | assembler_riscv64_test.cc | 823 [](int64_t value) { return IsInt<13>(value); }); in TestAddConst()
|
/art/libdexfile/dex/ |
D | dex_file.cc | 761 CHECK(IsInt<8>(jval_.i)); in MaybeNext() 765 CHECK(IsInt<16>(jval_.i)); in MaybeNext()
|
/art/compiler/utils/x86/ |
D | assembler_x86.cc | 3303 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()
|
D | assembler_x86.h | 44 bool is_int8() const { return IsInt<8>(value_); } in is_int8() 46 bool is_int16() const { return IsInt<16>(value_); } in is_int16()
|