diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-04-18 11:55:02 -0700 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-04-18 16:58:58 -0700 |
commit | 12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab (patch) | |
tree | ad3377744b5a0065a5333f0b4be35263cd062f53 /test/unit.fromasm.imprecise | |
parent | e1bfd0c5851122762d54d0f578f049e7005bde86 (diff) | |
download | binaryen-12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab.tar.gz binaryen-12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab.tar.bz2 binaryen-12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab.zip |
handle unsigned float-to-int properly in asm2wasm
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 7 |
1 files changed, 6 insertions, 1 deletions
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) ) ) |