[rust-dev] RFC: Tuple Swizzling/Shuffling
wichard at vitalitystudios.com
Tue Jan 14 12:27:48 PST 2014
On Tue, Jan 14, 2014 at 2:09 PM, Daniel Micay <danielmicay at gmail.com> wrote:
> On Tue, Jan 14, 2014 at 3:06 PM, Richard Diamond
> <wichard at vitalitystudios.com> wrote:
> > They do with #[simd]. Though I think it would be worth considering
> > all tuples of a single primitive type should be automatically considered
> > #[simd] and be lowered to a LLVM vector type. In fact one way I'm
> > considering impling this is to treat the mask as a tuple and lower it as
> > vector into a shufflevector mask operand.
> This isn't possible due to alignment issues. Only very recent Intel
> CPUs lack the requirement of alignment for SIMD instructions.
Obviously, battlefield promotions will be necessary when shifting between
heap and stack.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev