summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm.clamp.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_hello_world.fromasm.clamp.no-opts')
-rw-r--r--test/emcc_hello_world.fromasm.clamp.no-opts28
1 files changed, 27 insertions, 1 deletions
diff --git a/test/emcc_hello_world.fromasm.clamp.no-opts b/test/emcc_hello_world.fromasm.clamp.no-opts
index 3662e5d36..36d34018c 100644
--- a/test/emcc_hello_world.fromasm.clamp.no-opts
+++ b/test/emcc_hello_world.fromasm.clamp.no-opts
@@ -4658,6 +4658,32 @@
)
)
)
+ (func $f64-to-uint (param $0 f64) (result i32)
+ (if (result i32)
+ (f64.ne
+ (get_local $0)
+ (get_local $0)
+ )
+ (i32.const 0)
+ (if (result i32)
+ (f64.ge
+ (get_local $0)
+ (f64.const 4294967296)
+ )
+ (i32.const 0)
+ (if (result i32)
+ (f64.le
+ (get_local $0)
+ (f64.const -1)
+ )
+ (i32.const 0)
+ (i32.trunc_u/f64
+ (get_local $0)
+ )
+ )
+ )
+ )
+ )
(func $i32s-div (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
@@ -9934,7 +9960,7 @@
(loop $while-in60
(block $while-out59
(set_local $$conv216$i
- (call $f64-to-int
+ (call $f64-to-uint
(get_local $$y$addr$4$i)
)
)