diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-10-04 16:45:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 16:45:40 -0700 |
commit | fcbe7bff9e21e63f8c74a71f167aaf225cca0b79 (patch) | |
tree | 8fed59f427c93d4a57c54661f2e492e6b074d342 /test/unit.fromasm.imprecise.no-opts | |
parent | 9f9e9ae0fc94825c7db4edc8a2e6aa1190f39fc7 (diff) | |
download | binaryen-fcbe7bff9e21e63f8c74a71f167aaf225cca0b79.tar.gz binaryen-fcbe7bff9e21e63f8c74a71f167aaf225cca0b79.tar.bz2 binaryen-fcbe7bff9e21e63f8c74a71f167aaf225cca0b79.zip |
optimize helper funcs (like i32-div) if created in asm2wasm, so they are consistently handled regardless of whether we optimize in parallel or not (#1208)
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index 76934df4b..5c3695a23 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -41,6 +41,7 @@ (export "frem" (func $frem)) (export "frem_float" (func $legalstub$frem_float)) (export "big_uint_div_u" (func $big_uint_div_u)) + (export "trapping_sint_div_s" (func $trapping_sint_div_s)) (export "fr" (func $legalstub$fr)) (export "negZero" (func $negZero)) (export "neg" (func $neg)) @@ -413,6 +414,18 @@ (get_local $x) ) ) + (func $trapping_sint_div_s (result i32) + (local $x i32) + (set_local $x + (i32.div_s + (i32.const -2147483648) + (i32.const -1) + ) + ) + (return + (get_local $x) + ) + ) (func $fr (param $x f32) (local $y f32) (local $z f64) |