You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Add opcodes for converting between integer vectors of different lane size. #21
Integer conversions are useful when data is stored in a small integer format, but calculations are performed at a higher precision. They allow data to be unpacked and packed. Synthesizing these with opcodes in the spec is awkward. They are well supported on all architectures.
Widening conversions, with signed or unsigned saturation. These are unary operations, converting low or high half of the smaller lane vector in order to avoid multiple return values.
The widening conversions could be implemented as a swizzle and a right shift. I don't think we want to depend on implementations recognizing that pattern, though.
Activity
stoklund commentedon May 25, 2017
I think you swapped "narrowing" and "widening".
The widening conversions could be implemented as a swizzle and a right shift. I don't think we want to depend on implementations recognizing that pattern, though.
billbudge commentedon May 25, 2017
Fixed that. Thanks.