summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r--test/unit.fromasm.imprecise.no-opts24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index f1625311d..736f51222 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -1871,12 +1871,36 @@
)
)
)
+ (func $f2u (param $x f64) (result i32)
+ (return
+ (i32.trunc_u/f64
+ (get_local $x)
+ )
+ )
+ )
+ (func $f2s (param $x f64) (result i32)
+ (return
+ (i32.trunc_s/f64
+ (get_local $x)
+ )
+ )
+ )
(func $keepAlive
(drop
(call $sqrts
(f64.const 3.14159)
)
)
+ (drop
+ (call $f2u
+ (f64.const 100)
+ )
+ )
+ (drop
+ (call $f2s
+ (f64.const 100)
+ )
+ )
)
(func $v
(nop)