Mill Computing, Inc. Forums The Mill Architecture Execution Reply To: Execution

Will_Edwards
Moderator
Post count: 98

Does the mill support (arbitrary) vector element swizzling?

Yes. There is a shuffle op for arbitrary rearrangements of a vector.

I’m just wondering if the same functionality that enables free pick might also allow free swizzles.

I believe its in the op phase.

I could see how it might be machine dependent due to different vector sizes.

Well, you can always use the remainder op to create a mask that you then pick against with 0s or Nones to create a partially filled vector? This was covered in the strcpy example in the Metadata talk and the Introduction to the Mill CPU Programming Model post.