Since we do not have an instruction for this, this is a simple open-coded implementation. Needed by the cg_clif frontend.
Shuffle
compile