summaryrefslogtreecommitdiff
path: root/test/min.wast.fromBinary
diff options
context:
space:
mode:
Diffstat (limited to 'test/min.wast.fromBinary')
-rw-r--r--test/min.wast.fromBinary31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/min.wast.fromBinary b/test/min.wast.fromBinary
new file mode 100644
index 000000000..ce9cc77bd
--- /dev/null
+++ b/test/min.wast.fromBinary
@@ -0,0 +1,31 @@
+(module
+ (memory 16777216 16777216)
+ (type $0 (func (param f32) (result f32)))
+ (type $1 (func (param i32 i32)))
+ (export "floats" $floats)
+ (func $floats (param $var$0 f32)
+ (local $var$1 f32)
+ (f32.add
+ (get_local $var$1)
+ (get_local $var$0)
+ )
+ )
+ (func $neg (param $var$0 i32) (param $var$1 i32)
+ (local $var$2 f32)
+ (local $var$3 f32)
+ (set_local $var$0
+ (f32.neg
+ (block $label$0
+ (i32.store align=4
+ (get_local $var$0)
+ (get_local $var$1)
+ )
+ (f32.load align=4
+ (get_local $var$0)
+ )
+ )
+ )
+ )
+ )
+)
+