You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only difference is that in the first we have the const as an int, then convert to a float, and in the second the conversion has been done already. But running these files leads to different results:
This is the same no matter who translates the text to binary (binaryen, wabt, the spec interpreter itself), so it looks like the bug is in the reading of the float const in the spec interpreter.
The text was updated successfully, but these errors were encountered:
Looks like it was a bug when decoding f64 values -- it stores the representation as an OCaml int64, but reads it in two int32 pieces. The conversion from int32 -> int64 was sign-extending, which ended up flipping a bit in the result.
Consider
and
The only difference is that in the first we have the const as an int, then convert to a float, and in the second the conversion has been done already. But running these files leads to different results:
This is the same no matter who translates the text to binary (binaryen, wabt, the spec interpreter itself), so it looks like the bug is in the reading of the float const in the spec interpreter.
The text was updated successfully, but these errors were encountered: