summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 67cf23f11..be62737b9 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -135,11 +135,19 @@
(func $conversions
(local $i i32)
(local $d f64)
+ (local $f f32)
(set_local $i
(call_import $f64-to-int
(get_local $d)
)
)
+ (set_local $i
+ (call_import $f64-to-int
+ (f64.promote/f32
+ (get_local $f)
+ )
+ )
+ )
(set_local $d
(f64.convert_s/i32
(get_local $i)