diff options
author | Daniel Wirtz <dcode@dcode.io> | 2018-05-14 20:51:35 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-05-14 11:51:35 -0700 |
commit | 689ca6b29a135b8eaa206d790f4a01562fbe5fe4 (patch) | |
tree | 718d3de280b07b662ed5424cbb45e9058976a13e /test/wasm2asm/float-ops.wast | |
parent | e086ef9ad169443b85b4d4c9d915bbd378276552 (diff) | |
download | binaryen-689ca6b29a135b8eaa206d790f4a01562fbe5fe4.tar.gz binaryen-689ca6b29a135b8eaa206d790f4a01562fbe5fe4.tar.bz2 binaryen-689ca6b29a135b8eaa206d790f4a01562fbe5fe4.zip |
wasm2asm: Add math aliases for floor, ceil and sqrt (#1549)
Diffstat (limited to 'test/wasm2asm/float-ops.wast')
-rw-r--r-- | test/wasm2asm/float-ops.wast | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/wasm2asm/float-ops.wast b/test/wasm2asm/float-ops.wast index ee8f899e8..4ca32bb49 100644 --- a/test/wasm2asm/float-ops.wast +++ b/test/wasm2asm/float-ops.wast @@ -81,4 +81,24 @@ (func (export "f32.demote") (param $0 f64) (result f32) (f32.demote/f64 (get_local $0))) + + ;; floor/ceil + (func (export "f32.floor") (param $0 f32) (result f32) + (f32.floor (get_local $0))) + + (func (export "f32.ceil") (param $0 f32) (result f32) + (f32.ceil (get_local $0))) + + (func (export "f64.floor") (param $0 f64) (result f64) + (f64.floor (get_local $0))) + + (func (export "f64.ceil") (param $0 f64) (result f64) + (f64.ceil (get_local $0))) + + ;; sqrt + (func (export "f32.sqrt") (param $0 f32) (result f32) + (f32.sqrt (get_local $0))) + + (func (export "f64.sqrt") (param $0 f64) (result f64) + (f64.sqrt (get_local $0))) ) |