Browse Source
Fixes: https://github.com/bytecodealliance/wasmtime/issues/8632 This commit fixes the handling of f64 comparison operations in Winch. f64 comparison operations are defined as [f64 f64] -> [i32] The previous implemementation was widening the result to `[i64]` which caused issues which stack shuffling in multi-value returns.pull/8597/head
Saúl Cabrera
6 months ago
committed by
GitHub
3 changed files with 18 additions and 3 deletions
@ -0,0 +1,13 @@ |
|||
(module |
|||
(func (result i32 i32 i32) |
|||
i32.const 1 |
|||
i32.eqz |
|||
f64.const 0 |
|||
f64.const 1 |
|||
f64.ne |
|||
i32.const 1111 |
|||
) |
|||
(export "d" (func 0)) |
|||
) |
|||
|
|||
(assert_return (invoke "d") (i32.const 0) (i32.const 1) (i32.const 1111)) |
Loading…
Reference in new issue