Apparatus, method, and medium are provided. The apparatus includes a decoder circuit that generates a
control signal in response to a vector extraction and merge instruction that specifies
control parameters, a first vector register, a second vector register, and a destination vector register. The apparatus includes a
processing circuit that executes
processing of a plurality of beats in response to the
control signal, and each beat includes
processing corresponding to at least a part of the first vector register and the destination vector register. The processing for the K 番目 beats includes extracting bits specified by the
control parameters from the K 番目 portion of the first vector register, concatenating the bits with further bits, and storing the result in the K 番目 portion of the destination register. The further bits are, for the first portion, extracted from the first portion of the second vector register, and otherwise, from the (K - 1) 番目 portion of the first vector register.