Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

[interpreter] Implement i32x4.trunc_sat_f64x2_{s,u}_zero #466

Merged

Conversation

ngzhian
Copy link
Member

@ngzhian ngzhian commented Feb 12, 2021

This converts 2 f64 to 2 i32, then zeroes the top 2 lanes.

These 2 instructions were merged as part of #383.

This change also refactors some test cases from simd_conversions out
into a script that generates both i32x4.trunc_sat_i32x4_{s,u} and
i32x4.trunc_sat_f64x2_{s,u}_zero.

This converts 2 f64 to 2 i32, then zeroes the top 2 lanes.

These 2 instructions were merged as part of WebAssembly#383.

This change also refactors some test cases from simd_conversions out
into a script that generates both i32x4.trunc_sat_i32x4_{s,u} and
i32x4.trunc_sat_f64x2_{s,u}_zero.
interpreter/exec/simd.ml Outdated Show resolved Hide resolved
@ngzhian ngzhian merged commit bf505da into WebAssembly:master Feb 17, 2021
@ngzhian ngzhian deleted the double-precision-conversion-interp branch February 17, 2021 18:04
ngzhian added a commit to ngzhian/simd that referenced this pull request Feb 17, 2021
ngzhian added a commit that referenced this pull request Feb 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants