diff options
Diffstat (limited to 'test/passes')
-rw-r--r-- | test/passes/remove-unused-brs_enable-multivalue.txt | 19 | ||||
-rw-r--r-- | test/passes/remove-unused-brs_enable-multivalue.wast | 2 |
2 files changed, 10 insertions, 11 deletions
diff --git a/test/passes/remove-unused-brs_enable-multivalue.txt b/test/passes/remove-unused-brs_enable-multivalue.txt index f48f7b6af..45e6b4159 100644 --- a/test/passes/remove-unused-brs_enable-multivalue.txt +++ b/test/passes/remove-unused-brs_enable-multivalue.txt @@ -1988,17 +1988,16 @@ ) ) ) - (func $drop-restructure-if-bad (param $x i32) (param $y i32) (result i32) - (block $label$2 (result i32) - (drop - (br_if $label$2 - (local.tee $y - (local.get $x) - ) - (local.get $y) - ) + (func $drop-restructure-select (param $x i32) (param $y i32) (result i32) + (select + (local.tee $y + (local.get $x) ) - (i32.const 0) + (block $label$2 (result i32) + (nop) + (i32.const 0) + ) + (local.get $y) ) ) (func $drop-restructure-if-bad-2 (param $x i32) (param $y i32) (result i32) diff --git a/test/passes/remove-unused-brs_enable-multivalue.wast b/test/passes/remove-unused-brs_enable-multivalue.wast index 6b5b4b1a7..afc8c3836 100644 --- a/test/passes/remove-unused-brs_enable-multivalue.wast +++ b/test/passes/remove-unused-brs_enable-multivalue.wast @@ -1615,7 +1615,7 @@ (i32.const 0) ) ) - (func $drop-restructure-if-bad (param $x i32) (param $y i32) (result i32) + (func $drop-restructure-select (param $x i32) (param $y i32) (result i32) (block $label$2 (result i32) (drop (br_if $label$2 |