v8/test/mjsunit/regress/regress-crbug-523307.js
ishell 85f6e16844 [arm64] Don't try convert binary operation to shifted form when both operands are the same.
BUG=chromium:523307
LOG=N

Review URL: https://codereview.chromium.org/1304923003

Cr-Commit-Position: refs/heads/master@{#30538}
2015-09-02 09:32:44 +00:00

17 lines
324 B
JavaScript

// Copyright 2015 the V8 project authors. All rights reserved.
// 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(x) {
var c = x * x << 366;
var a = c + c;
return a;
}
f(1);
f(1);
%OptimizeFunctionOnNextCall(f);
f(1);