summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-16 17:55:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-16 18:28:28 -0700
commit0a9df805f688d5eab8be380ab7c9dde115d88852 (patch)
tree23f956226f783d2a72abfce8cf186909c7256367 /test/example
parentf0546a0c8322a4e2f1777c8a749207a70cdca681 (diff)
downloadbinaryen-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.txt16
-rw-r--r--test/example/c-api-kitchen-sink.txt.txt8
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)