Mill Computing, Inc. › Forums › The Mill › Architecture › Vector ops › Reply To: Vector ops
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.