Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 330263002: Eliminate overflow check for non-overflowing smi << operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_test.cc
===================================================================
--- runtime/vm/intermediate_language_test.cc (revision 37537)
+++ runtime/vm/intermediate_language_test.cc (working copy)
@@ -112,6 +112,15 @@
TEST_RANGE_OP(Range::Shl, -100, 0, 0, 64,
RangeBoundary::NegativeInfinity(), RangeBoundary(0));
+ TEST_RANGE_OP(Range::Shr, -8, 8, 1, 2, RangeBoundary(-4), RangeBoundary(4));
+ TEST_RANGE_OP(Range::Shr, 1, 8, 1, 2, RangeBoundary(0), RangeBoundary(4));
+ TEST_RANGE_OP(Range::Shr, -16, -8, 1, 2,
+ RangeBoundary(-8), RangeBoundary(-2));
+ TEST_RANGE_OP(Range::Shr, 2, 4, -1, 1, RangeBoundary(1), RangeBoundary(4));
+ TEST_RANGE_OP(Range::Shr, kMaxInt64, kMaxInt64, 0, 1,
+ RangeBoundary(kMaxInt64 >> 1), RangeBoundary(kMaxInt64));
+ TEST_RANGE_OP(Range::Shr, kMinInt64, kMinInt64, 0, 1,
+ RangeBoundary(kMinInt64), RangeBoundary(kMinInt64 >> 1));
#undef TEST_RANGE_OP
}
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698