Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wabt-compatiblity] Saturating float to int, reference types, simd #49

Merged
merged 2 commits into from
May 21, 2020

Conversation

duongnhn
Copy link
Contributor

Reference types and simd are already compatible and just need to enable corresponding flags with wabt.

For saturating-float-to-int instructions, according to WebAssembly/spec#884:

i32.trunc_s:sat/f32 -> i32.trunc_sat_f32_s
i32.trunc_u:sat/f32 -> i32.trunc_sat_f32_u
i32.trunc_s:sat/f64 -> i32.trunc_sat_f64_s
i32.trunc_u:sat/f64 -> i32.trunc_sat_f64_u
i64.trunc_s:sat/f32 -> i64.trunc_sat_f32_s
i64.trunc_u:sat/f32 -> i64.trunc_sat_f32_u
i64.trunc_s:sat/f64 -> i64.trunc_sat_f64_s
i64.trunc_u:sat/f64 -> i64.trunc_sat_f64_u

Bug: #33

@duongnhn
Copy link
Contributor Author

@bmeurer @ktran @EricSL @yurydelendik PTAL, thanks :)

@yurydelendik yurydelendik merged commit 2a1a447 into wasdk:master May 21, 2020
@yurydelendik
Copy link
Collaborator

Thank you

@duongnhn duongnhn deleted the sat_float_to_int branch May 21, 2020 23:26
@yurydelendik
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants