Index: test/mjsunit/compiler/regress-650215.js |
diff --git a/test/mjsunit/ignition/osr-from-bytecode.js b/test/mjsunit/compiler/regress-650215.js |
similarity index 62% |
copy from test/mjsunit/ignition/osr-from-bytecode.js |
copy to test/mjsunit/compiler/regress-650215.js |
index d4f40bad796783d080e0d01c5928b88fdf240518..95ae6cfed12ada3b6e0263a6dffa1482c6cf6eeb 100644 |
--- a/test/mjsunit/ignition/osr-from-bytecode.js |
+++ b/test/mjsunit/compiler/regress-650215.js |
@@ -2,11 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax --ignition --ignition-osr --turbo-from-bytecode |
+// Flags: --allow-natives-syntax |
function f() { |
+ var x = 0; |
for (var i = 0; i < 10; i++) { |
- if (i == 5) %OptimizeOsr(); |
+ x = (2 % x) | 0; |
+ if (i === 5) %OptimizeOsr(); |
} |
+ return x; |
} |
-f(); |
+ |
+assertEquals(0, f()); |