Mill Computing, Inc. Forums The Mill Architecture Vector ops Reply To: Vector ops

goldbug
Participant
Post count: 52

Duh, there is no need to shuffle:


F("pick_reduce") %0, %1;  
   left       (%0)           %2;

   extract    (%1, %2)        %3,
   ret        (%3);   

Simply get the index of the desired element and extract it. Just 2 instructions, that’s more like it.

  • This reply was modified 4 years, 11 months ago by  goldbug.