summaryrefslogtreecommitdiff
path: root/test/kitchen_sink.wast.from-wast
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2018-12-04 10:30:35 -0800
committerGitHub <noreply@github.com>2018-12-04 10:30:35 -0800
commitbebbeb54f177bdc2cfdff71d6a256a35f2f2057b (patch)
tree80609eb177ddab4edae30323d42152e9ab59ba9b /test/kitchen_sink.wast.from-wast
parentb4badb815ec844e438a05d501eafb6bb99383bc6 (diff)
downloadbinaryen-bebbeb54f177bdc2cfdff71d6a256a35f2f2057b.tar.gz
binaryen-bebbeb54f177bdc2cfdff71d6a256a35f2f2057b.tar.bz2
binaryen-bebbeb54f177bdc2cfdff71d6a256a35f2f2057b.zip
Implement nontrapping float-to-int instructions (#1780)
Diffstat (limited to 'test/kitchen_sink.wast.from-wast')
-rw-r--r--test/kitchen_sink.wast.from-wast40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/kitchen_sink.wast.from-wast b/test/kitchen_sink.wast.from-wast
index 621b02a56..e8376a9c2 100644
--- a/test/kitchen_sink.wast.from-wast
+++ b/test/kitchen_sink.wast.from-wast
@@ -557,6 +557,26 @@
)
)
(drop
+ (i32.trunc_s:sat/f32
+ (f32.const 10)
+ )
+ )
+ (drop
+ (i32.trunc_u:sat/f32
+ (f32.const 10)
+ )
+ )
+ (drop
+ (i32.trunc_s:sat/f64
+ (f64.const 10)
+ )
+ )
+ (drop
+ (i32.trunc_u:sat/f64
+ (f64.const 10)
+ )
+ )
+ (drop
(i32.wrap/i64
(i64.const 100)
)
@@ -582,6 +602,26 @@
)
)
(drop
+ (i64.trunc_s:sat/f32
+ (f32.const 10)
+ )
+ )
+ (drop
+ (i64.trunc_u:sat/f32
+ (f32.const 10)
+ )
+ )
+ (drop
+ (i64.trunc_s:sat/f64
+ (f64.const 10)
+ )
+ )
+ (drop
+ (i64.trunc_u:sat/f64
+ (f64.const 10)
+ )
+ )
+ (drop
(i64.extend_s/i32
(i32.const 10)
)