binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

different behavior when opt `fsqrt` with negative number in arm64 and x64

Open HerrCai0907 opened this issue 3 months ago • 1 comments

Literal will use std::sqrt to calculate f32.sqrt and f64.sqrt. It cause output wasm different when we build in arm64 and x64.

HerrCai0907 avatar Nov 26 '25 09:11 HerrCai0907

My rough idea is add an option to apply deterministic profile to make sure we can have the same binary output in different platform.

HerrCai0907 avatar Nov 26 '25 09:11 HerrCai0907