diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/no-movwt.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/no-movwt.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/no-movwt.js b/js/src/jit-test/tests/wasm/no-movwt.js new file mode 100644 index 000000000..ce6ba064f --- /dev/null +++ b/js/src/jit-test/tests/wasm/no-movwt.js @@ -0,0 +1,8 @@ +setARMHwCapFlags('vfp'); + +if (typeof WebAssembly !== "undefined") { + var i = new WebAssembly.Instance( + new WebAssembly.Module( + wasmTextToBinary('(module (func (export "") (result i32) (i32.const 42)))'))); + assertEq(i.exports[""](), 42); +} |