diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-04-18 17:27:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 17:27:32 -0700 |
commit | c945f3be7732e77402d696389482b290be7626cd (patch) | |
tree | 4c7b5ccbe6f57ff4ec5aa9e89bc298f38dc5408f /test/unit.fromasm.imprecise | |
parent | 0dc8efbf7f5ac474fadff934eb78cd5f8551d0bb (diff) | |
parent | a9b1d78072bd1875d926cfb0ae51a6eb4dc49b4e (diff) | |
download | binaryen-c945f3be7732e77402d696389482b290be7626cd.tar.gz binaryen-c945f3be7732e77402d696389482b290be7626cd.tar.bz2 binaryen-c945f3be7732e77402d696389482b290be7626cd.zip |
Merge pull request #976 from WebAssembly/fix-f2u
Fix asm2wasm unsigned float-to-int
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index e94c07f7f..3254980d9 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -1123,12 +1123,32 @@ ) ) ) + (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) + ) + ) (func $keepAlive (drop (call $sqrts (f64.const 3.14159) ) ) + (drop + (call $f2u + (f64.const 100) + ) + ) + (drop + (call $f2s + (f64.const 100) + ) + ) ) (func $vi (param $0 i32) (nop) |