diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-07 10:38:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:54:51 -0700 |
commit | 9d27d6818f83308c4853e3d8870d5b88a374453f (patch) | |
tree | 50c25e5177efb7a8e910e586398aab3cfd1522c7 /test/unit.wast.fromBinary | |
parent | 0783d60d9490666ab4b365e738b0132b378c6018 (diff) | |
download | binaryen-9d27d6818f83308c4853e3d8870d5b88a374453f.tar.gz binaryen-9d27d6818f83308c4853e3d8870d5b88a374453f.tar.bz2 binaryen-9d27d6818f83308c4853e3d8870d5b88a374453f.zip |
add drop and tee expressions
Diffstat (limited to 'test/unit.wast.fromBinary')
-rw-r--r-- | test/unit.wast.fromBinary | 64 |
1 files changed, 44 insertions, 20 deletions
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary index 29d53598a..621f9aeb6 100644 --- a/test/unit.wast.fromBinary +++ b/test/unit.wast.fromBinary @@ -151,12 +151,14 @@ ) ) (func $hexLiterals (type $1) - (i32.add + (drop (i32.add - (i32.const 0) - (i32.const 313249263) + (i32.add + (i32.const 0) + (i32.const 313249263) + ) + (i32.const -19088752) ) - (i32.const -19088752) ) ) (func $conversions (type $1) @@ -188,11 +190,15 @@ (set_local $var$0 (f64.sub (block $label$0 - (f64.const 0.1) + (drop + (f64.const 0.1) + ) (f64.const 5.1) ) (block $label$1 - (f64.const 3.2) + (drop + (f64.const 3.2) + ) (f64.const 4.2) ) ) @@ -310,14 +316,26 @@ (local $var$1 f32) (local $var$2 f64) (block $label$0 - (f32.demote/f64 - (get_local $var$2) + (drop + (f32.demote/f64 + (get_local $var$2) + ) + ) + (drop + (get_local $var$1) + ) + (drop + (f32.const 5) + ) + (drop + (f32.const 0) + ) + (drop + (f32.const 5) + ) + (drop + (f32.const 0) ) - (get_local $var$1) - (f32.const 5) - (f32.const 0) - (f32.const 5) - (f32.const 0) ) ) (func $negZero (type $4) (result f64) @@ -393,12 +411,14 @@ ) (func $___syscall_ret (type $1) (local $var$0 i32) - (i32.gt_u - (i32.shr_u - (get_local $var$0) - (i32.const 0) + (drop + (i32.gt_u + (i32.shr_u + (get_local $var$0) + (i32.const 0) + ) + (i32.const -4096) ) - (i32.const -4096) ) ) (func $z (type $1) @@ -410,7 +430,9 @@ (func $block_and_after (type $5) (result i32) (block $label$0 (block $label$1 - (i32.const 1) + (drop + (i32.const 1) + ) (br $label$1) ) (i32.const 0) @@ -418,7 +440,9 @@ ) (func $loop-roundtrip (type $7) (param $var$0 f64) (result f64) (loop $label$0 $label$1 - (get_local $var$0) + (drop + (get_local $var$0) + ) (get_local $var$0) ) ) |