diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-11-04 14:55:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 14:55:32 -0700 |
commit | 5af71eea09abfa9078c62633cea89b121ec4ec08 (patch) | |
tree | 73b6ed0baa0c644a1fa7e34228546587a1f297d4 /test/unit.fromasm.imprecise.no-opts | |
parent | 22699ebad0972fa7604dd8ffd26f9f6607e82fb0 (diff) | |
download | binaryen-5af71eea09abfa9078c62633cea89b121ec4ec08.tar.gz binaryen-5af71eea09abfa9078c62633cea89b121ec4ec08.tar.bz2 binaryen-5af71eea09abfa9078c62633cea89b121ec4ec08.zip |
Fixes fround of an unsigned integer (#821)
* fix fround of unsigned
* add testing for f32 ops, and remove a duplicate test (now that f32 is on by default in wasm, we don't need to check with and without PRECISE_F32)
* update wasm.js and binaryen.js
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index 608d68dcb..45e758970 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -1701,6 +1701,20 @@ ) (return) ) + (func $f32_ucast (param $x i32) (result f32) + (return + (f32.convert_u/i32 + (get_local $x) + ) + ) + ) + (func $f32_scast (param $x i32) (result f32) + (return + (f32.convert_s/i32 + (get_local $x) + ) + ) + ) (func $v (nop) ) |