summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/no-movwt.js
blob: ce6ba064f48f52b519edcabd7e595fe229e1c3d7 (plain)
1
2
3
4
5
6
7
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);
}