summaryrefslogtreecommitdiff
path: root/test/wasm2js/emscripten.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/emscripten.wast')
-rw-r--r--test/wasm2js/emscripten.wast10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/wasm2js/emscripten.wast b/test/wasm2js/emscripten.wast
index 07caf4f87..05c290fb9 100644
--- a/test/wasm2js/emscripten.wast
+++ b/test/wasm2js/emscripten.wast
@@ -106,6 +106,16 @@
(drop (call $bools (i32.and (i32.load16_s (i32.const 0)) (i32.const 1))))
(drop (call $bools (i32.and (i32.load (i32.const 0)) (i32.const 1))))
(drop (call $bools (i32.and (i32.load8_u (i32.const 0)) (i32.const 2))))
+ (drop (call $bools (i32.xor (local.get $x) (i32.const 1))))
+ (if
+ (i32.xor (local.get $x) (i32.const 1))
+ (drop (call $bools (i32.const 2)))
+ )
+ (if
+ (i32.xor (local.get $x) (i32.const 2))
+ (drop (call $bools (i32.const 2)))
+ )
+ (drop (call $bools (i32.eqz (i32.xor (local.get $x) (i32.const 1)))))
(unreachable)
)
)