summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-07 16:47:47 -0800
committerGitHub <noreply@github.com>2016-11-07 16:47:47 -0800
commit3dac399ba503e05ee014e96a7ce9c82f29f6981c (patch)
treeb00c60f1ca8019da8283c4f38660dd4d46d82d87 /test/unit.fromasm.imprecise
parent89d393ed02f6b15a3a8dc60b489f969184070625 (diff)
downloadbinaryen-3dac399ba503e05ee014e96a7ce9c82f29f6981c.tar.gz
binaryen-3dac399ba503e05ee014e96a7ce9c82f29f6981c.tar.bz2
binaryen-3dac399ba503e05ee014e96a7ce9c82f29f6981c.zip
support assigns of f32 to HEAP64 in asm2wasm (#830)
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index e7077524e..2f97cfe93 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -70,6 +70,7 @@
(export "dropIgnoredImportInIf" (func $dropIgnoredImportInIf))
(export "dropIgnoredImportsInIf" (func $dropIgnoredImportsInIf))
(export "relooperJumpThreading_irreducible" (func $relooperJumpThreading_irreducible))
+ (export "store_fround" (func $store_fround))
(func $big_negative
(nop)
)
@@ -1101,6 +1102,16 @@
)
)
)
+ (func $store_fround (param $0 i32)
+ (f64.store
+ (i32.const 80)
+ (f64.promote/f32
+ (f32.convert_s/i32
+ (get_local $0)
+ )
+ )
+ )
+ )
(func $vi (param $0 i32)
(nop)
)