diff options
Diffstat (limited to 'test/passes/optimize-instructions_all-features.wast')
-rw-r--r-- | test/passes/optimize-instructions_all-features.wast | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions_all-features.wast b/test/passes/optimize-instructions_all-features.wast index a0fff2936..c62f0bc42 100644 --- a/test/passes/optimize-instructions_all-features.wast +++ b/test/passes/optimize-instructions_all-features.wast @@ -3766,6 +3766,18 @@ ) ) ) + (func $optimize-boolean (param $x i32) + (drop + (select + (i32.const 1) + (i32.const 2) + (i32.sub ;; bool(-x) -> bool(x) + (i32.const 0) + (local.get $x) + ) + ) + ) + ) (func $getFallthrough ;; unit tests for Properties::getFallthrough (local $x0 i32) (local $x1 i32) |