diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-16 18:25:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:00 -0700 |
commit | ada1e2671ac3095e62f52932d3358489fdf195f0 (patch) | |
tree | 4e4e3f4603e4eaf65846bd0af32b0e4ba741c35f /test/unit.fromasm.imprecise.no-opts | |
parent | 15a264ee9c67816693d92a5454ad7469f1f255ff (diff) | |
download | binaryen-ada1e2671ac3095e62f52932d3358489fdf195f0.tar.gz binaryen-ada1e2671ac3095e62f52932d3358489fdf195f0.tar.bz2 binaryen-ada1e2671ac3095e62f52932d3358489fdf195f0.zip |
add a drop for final elements in blocks if they are not used
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index 65f556365..05e93926b 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -371,7 +371,9 @@ (drop (f32.const 5) ) - (f32.const 0) + (drop + (f32.const 0) + ) ) ) ) @@ -611,9 +613,11 @@ (get_local $f) ) ) - (i32.reinterpret/f32 - (f32.demote/f64 - (get_local $d) + (drop + (i32.reinterpret/f32 + (f32.demote/f64 + (get_local $d) + ) ) ) ) @@ -646,10 +650,14 @@ (drop (i32.const 4) ) - (i32.const 5) + (drop + (i32.const 5) + ) ) ) - (i32.const 6) + (drop + (i32.const 6) + ) ) ) (i32.const 7) @@ -712,13 +720,17 @@ (i32.const 4) ) ) - (call $lb - (i32.const 5) + (drop + (call $lb + (i32.const 5) + ) ) ) ) - (call $lb - (i32.const 6) + (drop + (call $lb + (i32.const 6) + ) ) ) ) |