https://github.com/rust-lang/rfcs/pull/3514 hasn't been approved yet but afaik modifying the float environment including FTZ behavior has always been UB. So this kind of code has to be written in assembly or C with #pragma fenv_access until a better way is found.
So, hardware platforms aside, there's no way to do it for WebAssembly targets at the current moment? I've read some discussions around it in the WASM design repo, but it didn't seem very recent.