From 12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab Mon Sep 17 00:00:00 2001 From: "Alon Zakai (kripken)" Date: Tue, 18 Apr 2017 11:55:02 -0700 Subject: handle unsigned float-to-int properly in asm2wasm --- test/unit.fromasm.imprecise | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/unit.fromasm.imprecise') diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 18eba6cee..3254980d9 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -1124,6 +1124,11 @@ ) ) (func $f2u (param $0 f64) (result i32) + (i32.trunc_u/f64 + (get_local $0) + ) + ) + (func $f2s (param $0 f64) (result i32) (i32.trunc_s/f64 (get_local $0) ) @@ -1140,7 +1145,7 @@ ) ) (drop - (call $f2u + (call $f2s (f64.const 100) ) ) -- cgit v1.2.3