Index: test/mjsunit/wasm/test-wasm-module-builder.js |
diff --git a/test/mjsunit/wasm/test-wasm-module-builder.js b/test/mjsunit/wasm/test-wasm-module-builder.js |
index 969b550e8f8578c9b13e937fe3cd21e86d2b0b4d..64db0e1e9abe4fb1b8dbc977791dd0a4cd209d92 100644 |
--- a/test/mjsunit/wasm/test-wasm-module-builder.js |
+++ b/test/mjsunit/wasm/test-wasm-module-builder.js |
@@ -99,6 +99,17 @@ var debug = false; |
assertThrows(function() { instance.exports.main(1, 1, 1); }); |
})(); |
+(function SimdSplatExtractTest() { |
+ print("simd test"); |
+ var module = new WasmModuleBuilder(); |
+ module.addFunction("splatextract", kSig_i_ii) |
+ .addBody([kExprGetLocal, 0, kExprInt32x4Splat, |
+ kExprGetLocal, 1, kExprInt32x4ExtractLane]) |
+ .exportAs("main"); |
+ var instance = module.instantiate(); |
+ assertEquals(123, instance.exports.main(123, 2)); |
+})(); |
+ |
(function DataSegmentTest() { |
var module = new WasmModuleBuilder(); |
module.addMemory(1, 1, false); |