v8/test/mjsunit/regress/regress-lea-matching.js
jarin d9cabb9b22 [turbofan] Fix matching of the lea instruction.
Resets the scaled exponent to 0 when the scaling match fails.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#25491}
2014-11-24 17:45:33 +00:00

15 lines
312 B
JavaScript

// Copyright 2014 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.
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;
}
assertEquals(8, f(1, 2, 3));