Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: test/mjsunit/wasm/test-wasm-simd-ops.js

Issue 1991143002: Convert SIMD wasm ops to runtime function calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review changes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --expose-wasm --wasm-num-compilation-tasks=0
6
7 load('test/mjsunit/wasm/wasm-constants.js');
8 load('test/mjsunit/wasm/wasm-module-builder.js');
9
10 // TODO(gdeepti): Currently wasm simd ops are tested using runtime calls to
11 // JS runtime functions, as this needs heap allocation sequential compile is
12 // triggered here. This is only used for bootstrapping and needs to be removed
13 // when we have architectuaral/scalar implementations for wasm simd ops.
14
15 (function SimdSplatExtractTest() {
16 print("simd test");
17 var module = new WasmModuleBuilder();
18 module.addFunction("splatextract", kSig_i_ii)
19 .addBody([kExprGetLocal, 0, kExprSimdPrefix, kExprI32x4Splat,
20 kExprGetLocal, 1, kExprSimdPrefix, kExprI32x4ExtractLane])
bbudge 2016/07/06 20:18:08 If this is a parameter, then we can't determine it
gdeepti 2016/07/07 04:05:34 Changed to kExprI32Const with the value 2. Added t
21 .exportAs("main");
22 var instance = module.instantiate();
23 assertEquals(123, instance.exports.main(123, 2));
24 print("success");
25 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698