diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-16 17:55:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-16 18:28:28 -0700 |
commit | 0a9df805f688d5eab8be380ab7c9dde115d88852 (patch) | |
tree | 23f956226f783d2a72abfce8cf186909c7256367 /test/example | |
parent | f0546a0c8322a4e2f1777c8a749207a70cdca681 (diff) | |
download | binaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.tar.gz binaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.tar.bz2 binaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.zip |
br_if returns its value
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 16 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt.txt | 8 |
2 files changed, 15 insertions, 9 deletions
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index 41d64089e..28d7b759b 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -422,9 +422,11 @@ BinaryenFloat64: 4 (i32.const 0) ) ) - (br_if $the-value - (i32.const 1) - (i32.const 0) + (drop + (br_if $the-value + (i32.const 1) + (i32.const 0) + ) ) (br_if $the-nothing (i32.const 2) @@ -2013,9 +2015,11 @@ int main() { (i32.const 0) ) ) - (br_if $the-value - (i32.const 1) - (i32.const 0) + (drop + (br_if $the-value + (i32.const 1) + (i32.const 0) + ) ) (br_if $the-nothing (i32.const 2) diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt index 10a698717..f66b714eb 100644 --- a/test/example/c-api-kitchen-sink.txt.txt +++ b/test/example/c-api-kitchen-sink.txt.txt @@ -417,9 +417,11 @@ (i32.const 0) ) ) - (br_if $the-value - (i32.const 1) - (i32.const 0) + (drop + (br_if $the-value + (i32.const 1) + (i32.const 0) + ) ) (br_if $the-nothing (i32.const 2) |