blob: 57568a8f02ac9f49f2986b3c46999a6d2c381fc1 [file] [edit]
//@ requireOptions("--useWasmSIMD=1", "--watchdog=1000", "--watchdog-exception-ok")
//@ skip if !$isSIMDPlatform
//@ skip
//FIXME: this test is currently broken.
import { instantiate } from "../wabt-wrapper.js"
import * as assert from "../assert.js"
let wat = `
(module
(func (export "test") (;0;)
(local v128)
loop (result v128) ;; label = @1
br 0 (;@1;)
end
local.set 0
)
)
`
async function test() {
const instance = await instantiate(wat, {}, { simd: true })
const { test } = instance.exports
for (let i = 0; i < wasmTestLoopCount; ++i) {
test()
}
}
await assert.asyncTest(test())