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

Unified Diff: test/mjsunit/constant-folding-2.js

Issue 14617014: Fixed constant folding in HMod. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Fixed unit test. Created 7 years, 7 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 | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/constant-folding-2.js
diff --git a/test/mjsunit/constant-folding-2.js b/test/mjsunit/constant-folding-2.js
index 6dbb4abebf2fa9bcda716d3b7e263468e1d08ab1..4c50e30d548110f8b7984bdea2e3ee55df205548 100644
--- a/test/mjsunit/constant-folding-2.js
+++ b/test/mjsunit/constant-folding-2.js
@@ -256,3 +256,12 @@ test(function stringCharAt() {
assertEquals("b", "abc".charAt(1.1));
assertEquals("", "abc".charAt(4.1));
});
+
+
+test(function int32Mod() {
+ assertEquals(-0, -2147483648 % (-1));
+});
+
+test(function int32Div() {
+ assertEquals(2147483648, -2147483648 / (-1));
+});
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698