smeari

From Mill Computing Wiki
Revision as of 09:27, 9 February 2015 by Generator (Talk | contribs)

Jump to: navigation, search
speculable  exu stream  exu block  compute phase   operation   in the logical value domain  

native on: all

Find the first one in a bool vector and set all remaining elments to one too.

The main purpose of this operation is to facilitate vectorization of loops, while loops in particular. It allows you to treat conditions created in a SIMD as exit conditions in a loop, since the first occurrence of a true value applies to all the remaining values and would be iterations.

00001000

becomes

00001111

which then can be used in pick operations or other vector operations, yet the exit condition is preserved for all elements that would not be in the iteration anymore if it wasn't vectorized.

related operations: smearx, left, mask


smeari(op vs) → op r0

operands: like Shuffle [xn:x]


Core In Slots Latencies
Tin E0 2
Copper E0 E1 2
Silver E0 E1 E2 E3 2
Gold E0 E1 E2 E3 E4 E5 E6 E7 2
Decimal8 E0 E1 E2 E3 2
Decimal16 E0 E1 E2 E3 2


Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable