Commit bc038c3b authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
Browse files

compiler: fix handling of MO_F_Neg in wasm NCG

In the wasm NCG, we used to compile MO_F_Neg to 0.0-x. It was an
oversight, there actually exists f32.neg/f64.neg opcodes in the wasm
spec and those should be used instead! The old behavior almost works,
expect when GHC compiles the -0.0 literal, which will incorrectly
become 0.0.
parent 30972827
Pipeline #62086 passed with stages
in 152 minutes and 2 seconds