summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r--test/unit.fromasm.no-opts35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts
index 07311b00e..92d2d2add 100644
--- a/test/unit.fromasm.no-opts
+++ b/test/unit.fromasm.no-opts
@@ -11,6 +11,7 @@
(import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32))
(import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64))
(export "big_negative" $big_negative)
+ (export "pick" $exportMe)
(table $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative
(local $temp f64)
@@ -690,6 +691,40 @@
(i32.const 0)
)
)
+ (func $forgetMe
+ (f64.const 123.456)
+ )
+ (func $exportMe
+ (f64.const -3.14159)
+ )
+ (func $zeroInit (param $x i32)
+ (local $y i32)
+ (if
+ (call $lb
+ (i32.const 0)
+ )
+ (if
+ (call $lb
+ (i32.const 1)
+ )
+ (set_local $y
+ (i32.const 3)
+ )
+ )
+ (set_local $y
+ (i32.const 3)
+ )
+ )
+ (if
+ (i32.eq
+ (get_local $y)
+ (i32.const 3)
+ )
+ (call $lb
+ (i32.const 2)
+ )
+ )
+ )
(func $z
(nop)
)