Home
last modified time | relevance | path

Searched refs:ResolvedValue (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dinstruction_combine.cpp201 uint64_t constant1 = static_cast<uint64_t>(cmpLeft.Right().ResolvedValue()); in VisitICMP()
202 uint64_t constant2 = static_cast<uint64_t>(m.Right().ResolvedValue()); in VisitICMP()
213 if (m.Left().IsAnd() && m.Right().ResolvedValue() == 0) { in VisitICMP()
215 if (andOp.Left().IsOr() && andOp.Right().HasResolvedValue() && andOp.Right().ResolvedValue() != 0) { in VisitICMP()
218 auto constant2 = andOp.Right().ResolvedValue(); in VisitICMP()
219 auto constant1 = orOp.Right().HasResolvedValue() ? orOp.Right().ResolvedValue() : 0; in VisitICMP()
410 int32_t index = n.Right().ResolvedValue(); in VisitExtractValue()
418 bool ovf = base::SignedAddOverflow32(m.Left().ResolvedValue(), m.Right().ResolvedValue(), &val); in VisitExtractValue()
430 bool ovf = base::SignedSubOverflow32(m.Left().ResolvedValue(), in VisitExtractValue()
[all...]
H A Dgate_matchers.h146 const T &ResolvedValue() const in ResolvedValue() function
166 return this->HasResolvedValue() && this->ResolvedValue() == value; in Is()
171 return this->HasResolvedValue() && IsValueInRange(this->ResolvedValue(), low, high); in IsInRange()
178 return (this->ResolvedValue() % n) == 0; in IsMultipleOf()
183 if (!this->HasResolvedValue() || this->ResolvedValue() <= 0) { in IsPowerOf2()
187 const unsigned_type resolvedValue = static_cast<unsigned_type>(this->ResolvedValue()); in IsPowerOf2()
193 if (!this->HasResolvedValue() || this->ResolvedValue() >= 0) { in IsNegativePowerOf2()
196 return ((this->ResolvedValue() == std::numeric_limits<T>::min()) || in IsNegativePowerOf2()
197 (-this->ResolvedValue() & (-this->ResolvedValue() in IsNegativePowerOf2()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
H A Dinstruction_combine_test.cpp106 EXPECT_EQ(result_m.Right().ResolvedValue(), static_cast<uint64_t>(9223372036854775808ULL)); in HWTEST_F_L0()
192 EXPECT_EQ(result_m.Right().ResolvedValue(), 3); in HWTEST_F_L0()
203 EXPECT_EQ(result_m.Right().ResolvedValue(), static_cast<uint64_t>(-2147483648)); in HWTEST_F_L0()
262 EXPECT_EQ(m.Right().ResolvedValue(), 1); in HWTEST_F_L0()
275 EXPECT_EQ(m.Right().ResolvedValue(), INT64_MIN); // Here, we expect that -k has wrapped around to INT64_MIN in HWTEST_F_L0()
333 EXPECT_EQ(m.Right().ResolvedValue(), 1); in HWTEST_F_L0()
347 EXPECT_EQ(m.Right().ResolvedValue(), INT32_MIN); // Here, we expect that -k has wrapped around to INT32_MIN in HWTEST_F_L0()
405 EXPECT_EQ(m.Left().ResolvedValue(), 0); in HWTEST_F_L0()
417 EXPECT_EQ(m.Right().ResolvedValue(), 2); in HWTEST_F_L0()
429 EXPECT_EQ(m.Right().ResolvedValue(), 2 in HWTEST_F_L0()
[all...]

Completed in 4 milliseconds