OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 load("test/mjsunit/wasm/wasm-constants.js"); | |
6 load("test/mjsunit/wasm/wasm-module-builder.js"); | |
7 | |
8 (function() { | |
9 var builder = new WasmModuleBuilder(); | |
10 builder.addMemory(32, 32, false); | |
11 builder.addFunction("test", kSig_i_iii) | |
12 .addBodyWithEnd([ | |
13 // body: | |
14 kExprI64Const, 0x42, | |
15 kExprI64Const, 0x7a, | |
16 kExprI64RemU, | |
17 kExprI64Const, 0x42, | |
18 kExprI64Const, 0x37, | |
19 kExprI64Mul, | |
20 kExprI64Const, 0x36, | |
21 kExprI64Mul, | |
22 kExprI64Const, 0x42, | |
23 kExprI64Ctz, | |
24 kExprI64Ctz, | |
25 kExprI64Shl, | |
26 kExprF32SConvertI64, | |
27 kExprUnreachable, | |
Eric Holk
2017/02/01 19:04:25
It looks like this test unconditionally hits this
ahaas
2017/02/02 20:21:42
This test case crashed during compilation, not dur
| |
28 kExprEnd, // @21 | |
29 ]) | |
30 .exportFunc(); | |
31 var module = new WebAssembly.Module(builder.toBuffer()); | |
32 })(); | |
OLD | NEW |