diff options
author | Sam Clegg <sbc@chromium.org> | 2017-06-12 16:50:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 16:50:28 -0700 |
commit | 68dc2eddc24844c7582cafa85afeb4023a47888f (patch) | |
tree | fcaedc839420fe43c555166420865d5aeef0dbfa /test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast | |
parent | 93c65f98b7a9b0977578dbf55778529efec646f1 (diff) | |
download | binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.gz binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.bz2 binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.zip |
Support new result syntax for if/loop/block (#1047)
Support both syntax formats in input since the old spec
tests still need to be parsable.
Diffstat (limited to 'test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast')
-rw-r--r-- | test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast index 7874907f3..e1215fa3f 100644 --- a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast +++ b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast @@ -23,7 +23,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive. we should compute one side, then see if we even need the other (i32.eqz (i32.rem_s @@ -109,7 +109,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive, but has a side effect on both sides (i32.eqz (i32.rem_s @@ -195,7 +195,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive, and the first side has no side effect (i32.eqz (i32.rem_s |