| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | number_gate_info.h | 111 static const inline std::vector<int32_t> rangeBounds_ = {INT32_MIN, INT32_MIN + 1, 118 return RangeInfo(INT32_MAX, INT32_MIN); in NONE() 123 return RangeInfo(INT32_MIN, INT32_MAX); in ANY() 158 return (rhs.min_ < 0) && (min_ < INT32_MIN - rhs.min_); in MaybeAddUnderflow() 170 int32_t nmin = MaybeAddUnderflow(rhs) ? INT32_MIN : min_ + rhs.min_; 223 return INT32_MIN; in TryMul() 245 …return (lhs > 0 && rhs < 0 && rhs < INT32_MIN / lhs) || (lhs < 0 && rhs > 0 && lhs < INT32_MIN / r… in MaybeMulUnderflow() 260 return (rhs.max_ > 0) && (min_ < INT32_MIN + rhs.max_); in MaybeSubUnderflow() 272 int32_t nmin = MaybeSubUnderflow(rhs) ? INT32_MIN : min_ - rhs.max_; 322 return (min_ == INT32_MAX) && (max_ == INT32_MIN); in IsNone() [all …]
|
| D | lcr_circuit_builder.cpp | 269 GateRef Min = Double(INT32_MIN); in DoubleCheckINFInRangeInt32() 303 GateRef Min = Double(INT32_MIN); in DoubleInRangeInt32() 338 GateRef limitMin = Double(INT32_MIN); in DoubleIsWithinInt32()
|
| D | range_analysis.cpp | 297 return RangeInfo(INT32_MIN, range.GetMax() - 1); in GetRangeOfCompare() 299 return RangeInfo(INT32_MIN, range.GetMax()); in GetRangeOfCompare()
|
| D | operations_stub_builder.cpp | 1303 BRANCH(Int32Equal(valueInt, Int32(INT32_MIN)), &valueNotInt, &valueNoOverflow); in Dec() 1363 BRANCH(Int32Equal(valueInt, Int32(INT32_MIN)), &valueIsInt32Min, &valueNotInt32Min); in Neg() 1367 result = DoubleToTaggedDoublePtr(Double(-static_cast<double>(INT32_MIN))); in Neg()
|
| D | typed_native_inline_lowering.cpp | 673 BRANCH_CIR(builder_.Equal(value, builder_.Int32(INT32_MIN)), &isIntMin, &isResultInt); in BuildTNumberAbs() 799 …builder_.DeoptCheck(builder_.NotEqual(value, builder_.Int32(INT32_MIN)), frameState, DeoptType::NO… in LowerIntAbs() 2102 return builder_.BitOr(builder_.Int32LessThanOrEqual(intValue, builder_.Int32(INT32_MIN)), in BuildTaggedPointerOverflowInt32()
|
| /arkcompiler/runtime_core/arkplatform/tests/ |
| D | jsnapi_test.cpp | 89 TestNumberRef(INT32_MIN, static_cast<JSTaggedType>(INT32_MIN) | JSValueRefInternals::TAG_INT); in TEST_F() 101 auto i64input = static_cast<int64_t>(INT32_MIN); in TEST_F() 103 i64input = static_cast<int64_t>(INT32_MIN); in TEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_tagged_number.h | 99 if (res > INT32_MAX || res < INT32_MIN) { 113 if (res > INT32_MAX || res < INT32_MIN) { 140 if (value == INT32_MIN) {
|
| D | js_tagged_value_internals.h | 57 static constexpr JSTaggedType TAG_INT32_DEC_MIN = INT32_MIN - 1ULL;
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | bytecode_encoder.h | 52 return CanEncodeImmHelper(imm, size, INT32_MIN, INT32_MAX); in CanEncodeImmLogical()
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | bytecode_encoder.h | 52 return CanEncodeImmHelper(imm, size, INT32_MIN, INT32_MAX); in CanEncodeImmLogical()
|
| /arkcompiler/runtime_core/static_core/isa/ |
| D | isa.yaml | 1277 if acc == INT32_MIN and vs == -1 then 1278 acc = INT32_MIN 1292 if acc == INT32_MIN and vs == -1 then 1357 if acc == INT32_MIN and vs == -1 then 1358 vd = INT32_MIN 1372 if acc == INT32_MIN and vs == -1 then 1556 if acc == INT32_MIN and imm == -1 then 1557 acc = INT32_MIN 1562 if acc == INT32_MIN and imm == -1 then 1592 if v1 == INT32_MIN and imm == -1 then [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stackmap/litecg/ |
| D | litecg_stackmap_type.cpp | 87 } else if (value > INT32_MAX || value < INT32_MIN) { // large imm in ConvertToLLVMPv2Deopt()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/ |
| D | remote_object.h | 69 if (INT32_MIN <= number && number <= INT32_MAX) {
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | tagged_value.h | 134 ASSERT(INT32_MIN <= static_cast<int32_t>(bit_cast<int64_t>(v))); in GetIntTaggedValue() 409 if ((u64 & DOUBLE_SIGN_MASK) == DOUBLE_SIGN_MASK && ret != INT32_MIN) { in JsCastDoubleToInt()
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | number.h | 152 if (num == INT32_MIN) {
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_emitter.cpp | 252 if (static_cast<int64_t>(target_pc) < static_cast<int64_t>(insn_pc) + INT32_MIN || in EstimateMaxDistance()
|
| /arkcompiler/ets_runtime/ecmascript/stackmap/ |
| D | ark_stackmap_parser.cpp | 244 if (constant > INT32_MAX || constant < INT32_MIN) { in ParseArkDeopt()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/ |
| D | cl_option_parser.cpp | 209 if (i32Type && (dig > INT32_MAX || dig < INT32_MIN)) { in ParseDigit()
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | bounds_analysis_test.cpp | 465 EXPECT_EQ(range.GetLeft(), INT32_MIN); in TEST_F() 648 ASSERT_EQ(range, BoundsRange(INT32_MIN / 4L, INT32_MAX / 4L)); in TEST_F() 785 ASSERT_EQ(bri->FindBoundsRange(&BB(2U), &INS(10U)), BoundsRange(INT32_MIN, INT32_MAX)); in TEST_F() 786 ASSERT_EQ(bri->FindBoundsRange(&BB(2U), &INS(14U)), BoundsRange(INT32_MIN, INT32_MAX)); in TEST_F()
|
| D | checks_elimination_test.cpp | 1186 ArithmeticTest<AppliedType::NOT_APPLIED>(INT32_MIN, INT32_MAX, Opcode::Add, -1L); in TEST_F() 1188 ArithmeticTest<AppliedType::NOT_APPLIED>(-1L, INT32_MAX, Opcode::Add, INT32_MIN); in TEST_F() 1196 ArithmeticTest<AppliedType::NOT_APPLIED>(INT32_MIN, INT32_MAX, Opcode::Sub, 1U); in TEST_F() 1198 ArithmeticTest<AppliedType::NOT_APPLIED>(1U, INT32_MAX, Opcode::Sub, INT32_MIN); in TEST_F() 1217 ArithmeticTest<AppliedType::REMOVED>(INT32_MIN, 20U, Opcode::Mul, 0U); in TEST_F() 1218 ArithmeticTest<AppliedType::REMOVED>(0U, 20U, Opcode::Mul, INT32_MIN); in TEST_F() 1221 ArithmeticTest<AppliedType::NOT_APPLIED>(INT32_MIN, 20U, Opcode::Mul, -2L); in TEST_F() 1222 ArithmeticTest<AppliedType::NOT_APPLIED>(-2L, 20U, Opcode::Mul, INT32_MIN); in TEST_F() 1225 ArithmeticTest<AppliedType::NOT_APPLIED>(INT32_MIN, 20U, Opcode::Mul, 2U); in TEST_F() 1226 ArithmeticTest<AppliedType::NOT_APPLIED>(2U, 20U, Opcode::Mul, INT32_MIN); in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | instruction_combine_test.cpp | 340 auto const_min = builder.Int32(INT32_MIN); // Minimum int32_t value in HWTEST_F_L0() 343 // Due to overflow, -k should wrap around to INT32_MIN. in HWTEST_F_L0() 347 …EXPECT_EQ(m.Right().ResolvedValue(), INT32_MIN); // Here, we expect that -k has wrapped around to … in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | const_folding.cpp | 476 if (static_cast<int32_t>(cnst0->GetIntValue()) == INT32_MIN && in ConstFoldingDivInt2Int() 478 return graph->FindOrCreateConstant<uint32_t>(INT32_MIN); in ConstFoldingDivInt2Int() 628 if (static_cast<int32_t>(cnst0->GetIntValue()) == INT32_MIN && in ConstFoldingModIntConst()
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| D | jsnapi_first_tests.cpp | 2172 TestNumberRef(INT32_MIN, static_cast<JSTaggedType>(INT32_MIN) | JSTaggedValue::TAG_INT); in HWTEST_F_L0() 2183 …TestNumberRef(static_cast<int64_t>(INT32_MIN), static_cast<JSTaggedType>(INT32_MIN) | JSTaggedValu… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | number_helper.cpp | 1138 if ((u64 & DOUBLE_SIGN_MASK) == DOUBLE_SIGN_MASK && ret != INT32_MIN) { in DoubleToInt()
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | interpreter-inl.cpp | 1714 if ((a0 > 0 && a1 > INT32_MAX - a0) || (a0 < 0 && a1 < INT32_MIN - a0)) { in RunInternal() 1745 if ((a0 > 0 && a1 > INT32_MAX - a0) || (a0 < 0 && a1 < INT32_MIN - a0)) { in RunInternal() 4777 } else if (value.GetInt() == INT32_MIN) { in RunInternal() 4778 SET_ACC(JSTaggedValue(-static_cast<double>(INT32_MIN))); in RunInternal() 4915 if (UNLIKELY(a0 == INT32_MIN)) { in RunInternal() 4941 if (UNLIKELY(a0 == INT32_MIN)) { in RunInternal()
|