Skip to content

Commit

Permalink
[test] Add regression test
Browse files Browse the repository at this point in the history
Bug: chromium:1459681
Change-Id: Ic46e3c51d36e6f33cff346ffe7c84c89f6814497
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4661334
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#88643}
  • Loading branch information
victorgomes authored and V8 LUCI CQ committed Jul 4, 2023
1 parent 77b14d9 commit 09d017c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/mjsunit/maglev/regress-1459681.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2023 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 --maglev

function foo(x) {
return x >> 32; // We should not shift anything here!
}
%PrepareFunctionForOptimization(foo);
assertEquals(42, foo(42));
%OptimizeMaglevOnNextCall(foo);
assertEquals(42, foo(42));

0 comments on commit 09d017c

Please sign in to comment.