-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[regalloc] Missing FP register conflict check
Check aliased FP registers when constructing the {to_be_live} set from multiple predecessors. [email protected] Bug: chromium:1029642 Change-Id: I3db7b705ad5689bd8321aebc5e9c5f364951870b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1958054 Reviewed-by: Sigurd Schneider <[email protected]> Commit-Queue: Thibaud Michaud <[email protected]> Cr-Commit-Position: refs/heads/master@{#65412}
- Loading branch information
1 parent
2eed6c4
commit 8c050b7
Showing
3 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2019 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: --wasm-staging | ||
|
||
// Copyright 2016 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. | ||
|
||
load('test/mjsunit/wasm/wasm-module-builder.js') | ||
|
||
const builder = new WasmModuleBuilder(); | ||
builder.addMemory(0, 0, false); | ||
builder.addType(makeSig([kWasmF32, kWasmF32, kWasmF64], [kWasmF64])); | ||
// Generate function 1 (out of 1). | ||
builder.addFunction(undefined, 0 /* sig */) | ||
.addBodyWithEnd([ | ||
// signature: d_ffdl | ||
// body: | ||
kExprLoop, kWasmF64, // @15 f64 | ||
kExprLoop, kWasmF64, // @17 f64 | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprI32Const, 0, | ||
kExprIf, kWasmF64, // @251 f64 | ||
kExprLoop, kWasmF64, // @253 f64 | ||
kExprI32Const, 0, | ||
kExprIf, kWasmI32, // @267 i32 | ||
kExprMemorySize, 0x00, | ||
kExprMemoryGrow, 0x00, | ||
kExprElse, // @273 | ||
kExprF32Const, 0x00, 0x00, 0x00, 0x00, | ||
kExprI32SConvertF32, | ||
kExprEnd, // @282 | ||
kExprDrop, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprI32Const, 0x00, | ||
kExprBrIf, 0x01, // depth=1 | ||
kExprI32SConvertF64, | ||
kExprF64SConvertI32, | ||
kExprEnd, // @311 | ||
kExprElse, // @312 | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprEnd, // @322 | ||
kExprF64Max, | ||
kExprF64Max, | ||
kExprF32Const, 0x00, 0x00, 0x00, 0x00, | ||
kExprF32Const, 0x00, 0x00, 0x00, 0x00, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprCallFunction, 0x00, // function #0: d_ffdl | ||
kExprF64Max, | ||
kExprF64Max, | ||
kExprF64Max, | ||
kExprI32Const, 0x00, | ||
kExprF64SConvertI32, | ||
kExprF64Const, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
kExprF64Max, | ||
kExprF64Max, | ||
kExprEnd, // @1374 | ||
kExprEnd, // @1375 | ||
kExprEnd, // @1376 | ||
]); | ||
builder.addExport('main', 0); | ||
builder.toModule(); |