Index: test/mjsunit/regress/regress-lea-matching.js |
diff --git a/test/mjsunit/regress/regress-crbug-387636.js b/test/mjsunit/regress/regress-lea-matching.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-crbug-387636.js |
copy to test/mjsunit/regress/regress-lea-matching.js |
index 1e50ace45a293c8561042f1a09c8fcd505b43dc2..988368ad0f3dbf0e99e8d9221b77b4d9739482ee 100644 |
--- a/test/mjsunit/regress/regress-crbug-387636.js |
+++ b/test/mjsunit/regress/regress-lea-matching.js |
@@ -2,13 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax |
- |
-function f() { |
- [].indexOf(0x40000000); |
+function f(a, b, c) { |
+ a = a|0; |
+ b = b|0; |
+ c = c|0; |
+ var r = 0; |
+ r = a + ((b << 1) + c) | 0; |
+ return r|0; |
} |
-f(); |
-f(); |
-%OptimizeFunctionOnNextCall(f); |
-f(); |
+assertEquals(8, f(1, 2, 3)); |