load-lane-oob.js (451B)
1 // |jit-test| skip-if: !wasmSimdEnabled() 2 3 // Bug 1735128 - useless load should not be eliminated by Ion 4 5 var ins = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary( 6 `(module 7 (memory 0) 8 (func (export "f") (param i32) 9 (v128.load64_lane 1 (local.get 0) (v128.const i32x4 0 0 0 0)) 10 drop))`))); 11 assertErrorMessage(() => ins.exports.f(100), 12 WebAssembly.RuntimeError, 13 /out of bounds/);