6d3a53e7f2
This is a reland of commit 9c09c227b0
.
The fix for gc stress failure is merged: https://crrev.com/c/2656857.
Original change's description:
> Bug: v8:11331
> Change-Id: Ie394ec841a1a1c4030c4f589eac2cee8a6a2a1f9
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2639033
> Reviewed-by: Georg Neis <neis@chromium.org>
> Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
> Commit-Queue: Zhi An Ng <zhin@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#72304}
Bug: v8:11331
Change-Id: I82f57b3fe5f0c456472aa7ce404703f34b73d17e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2659511
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72465}
26 lines
971 B
JavaScript
26 lines
971 B
JavaScript
// Copyright 2020 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: --experimental-wasm-simd
|
|
|
|
load('test/mjsunit/wasm/wasm-module-builder.js');
|
|
|
|
const builder = new WasmModuleBuilder();
|
|
builder.addType(makeSig([kWasmI32, kWasmI32, kWasmI32], [kWasmI32]));
|
|
// Generate function 1 (out of 1).
|
|
builder.addFunction(undefined, 0 /* sig */).addBodyWithEnd([
|
|
// signature: i_iii
|
|
// body:
|
|
kExprF32Const, 0xf8, 0xf8, 0xf8, 0xf8,
|
|
kSimdPrefix, kExprF32x4Splat, // f32x4.splat
|
|
kExprF32Const, 0xf8, 0xf8, 0xf8, 0xf8,
|
|
kSimdPrefix, kExprF32x4Splat, // f32x4.splat
|
|
kSimdPrefix, kExprF32x4Min, 0x01, // f32x4.min
|
|
kSimdPrefix, kExprV128AnyTrue, 0x01, // v128.any_true
|
|
kExprEnd, // end @16
|
|
]);
|
|
builder.addExport('main', 0);
|
|
const instance = builder.instantiate();
|
|
assertEquals(1, instance.exports.main(1, 2, 3));
|