Index: test/mjsunit/compiler/osr-uint32.js |
diff --git a/test/mjsunit/regress/regress-crbug-217858.js b/test/mjsunit/compiler/osr-uint32.js |
similarity index 89% |
copy from test/mjsunit/regress/regress-crbug-217858.js |
copy to test/mjsunit/compiler/osr-uint32.js |
index e61cb9f6d24a6dcb54a81699183d2db843d0d2dc..d6fcae546cfa82dbb7a32ca7baa5b4339c86ba77 100644 |
--- a/test/mjsunit/regress/regress-crbug-217858.js |
+++ b/test/mjsunit/compiler/osr-uint32.js |
@@ -25,13 +25,15 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --noanalyze_environment_liveness |
- |
-var r = /r/; |
-function f() { |
- r[r] = function() {}; |
+// Loop to force OSR. |
+var j = 0; |
+for (var i = 0; i < 80000; i++) { |
+ j++; |
} |
-for (var i = 0; i < 300000; i++) { |
- f(); |
+function SarShr(val) { |
+ return val >> (-2 >>> 0); |
} |
+ |
+var K3 = 0x80000000; |
+assertEquals(-2, SarShr(K3 | 0)); |