Changes between Version 21 and Version 22 of ShufflePatternLibrary


Ignore:
Timestamp:
May 14, 2014, 3:09:29 AM (5 years ago)
Author:
cameron
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ShufflePatternLibrary

    v21 v22  
    107107 4.  If neither vector is a constant splat or {{{undef}}}, then the first selector value must be < n, (i.e., selecting from vector 1).
    108108
     109== Canonical Vector Size ==
     110
     111The canonical size for vectors is the nearest power of 2 greater than or equal to the
     112vector size.
     113
     114Consider a shufflevector invocation of the following form where n is not a power of 2.
     115{{{
     116shufflevector <n x <ty>> v1, <n x <ty>> v2, <m x i32> mask
     117}}}
     118
     119We convert to the form
     120{{{
     121shufflevector <n' x <ty>> v1, <n' x <ty>> v2, <m x i32> mask'
     122}}}
     123where n' is the nearest power of 2 at least equal to n, and
     124
     125{{{mask'}}}[i] = ({{{mask}}}[i] mod n + ({{{mask}}}[i] div n)) * n'
     126
    109127== Lane Detection in Patterns ==
    110128