diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2017-09-01 14:26:01 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-09-01 11:26:01 -0700 |
commit | b013f744e3d70effd9be348cbde7fb93f0a16c6a (patch) | |
tree | 3b122293005d3370c931175eed92ad61e9dfd851 /test/wasm2asm.wast.asserts | |
parent | b1e8b1b515b2a1d0264975abc4de39c8044f7195 (diff) | |
download | binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.tar.gz binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.tar.bz2 binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.zip |
i64 to i32 lowering for wasm2asm (#1134)
Diffstat (limited to 'test/wasm2asm.wast.asserts')
-rw-r--r-- | test/wasm2asm.wast.asserts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/wasm2asm.wast.asserts b/test/wasm2asm.wast.asserts index ea6ab4871..353f563f2 100644 --- a/test/wasm2asm.wast.asserts +++ b/test/wasm2asm.wast.asserts @@ -1,10 +1,12 @@ ;; i32 operations (module + (func (export "empty")) (func (export "add") (param $x i32) (param $y i32) (result i32) (i32.add (get_local $x) (get_local $y))) (func (export "div_s") (param $x i32) (param $y i32) (result i32) (i32.div_s (get_local $x) (get_local $y))) ) +(assert_return (invoke "empty")) (assert_return (invoke "add" (i32.const 1) (i32.const 1)) (i32.const 2)) (assert_trap (invoke "div_s" (i32.const 0) (i32.const 0)) "integer divide by zero") (assert_trap (invoke "div_s" (i32.const 0x80000000) (i32.const -1)) "integer overflow") |