Currently the implementation of clamping and JS mode for trapping float->int conversions and division is in asm2wasm. But it we should support this functionality with the wasm backend as well. Probably we can just move the implementation from asm2wasm into a Binaryen pass, and support it in s2wasm as well.
Currently the implementation of clamping and JS mode for trapping float->int conversions and division is in asm2wasm. But it we should support this functionality with the wasm backend as well. Probably we can just move the implementation from asm2wasm into a Binaryen pass, and support it in s2wasm as well.