// vmerge.vim vd, vs2, simm5 require_vector(true); VI_CHECK_SSS(false); VI_VVXI_MERGE_LOOP ({ int midx = i / 64; int mpos = i % 64; bool use_first = (P.VU.elt(0, midx) >> mpos) & 0x1; vd = use_first ? simm5 : vs2; })