FIELD: information technology.
SUBSTANCE: invention relates to processing of symbol data. Method of executing machine instruction in central processor device includes following steps: obtaining machine execution command by processor, which is defined for computer execution according to computer architecture and comprises: at least one operation code field for indicating operation code, which identifies operation executed by vector type command for search of inadequate element, extension field used to indicate one or more registers, field of first register, which will be combined with first part of said extension field for designation of first register, containing first operand being vector operand, containing given number of elements, field of second register, which will be combined with second part of said extension field for designation of second register, containing second operand, which is vector operand, containing given number of elements, field of third register, which will be combined with third part of said extension field for designation of third register, containing third operand, which is vector operand, containing given number of elements, field mask, which contains one or more control flags for use during machine command execution, machine command execution, which includes: making decision on fact whether field mask contains zero flag search, indicating need to search in vector equal to zero element based on field mask containing zero search flag, indicating need to search equal to zero element in vector, performing search of equal to zero element in second operand, wherein as result of search index of equal to zero element is presented, containing index found as a result of search equal to zero element or vector length, if equal to zero element is not found, comparison of one or more elements of second operand with each element of third operand for inequality of their values performed in parallel, wherein as a result of comparison of index of comparison, based on direction of searching for and length of elements and vector containing index found as a result of comparing inadequate element or vector length, if the inadequate elements are not found as a result of comparison, formation of result, wherein depending on whether search equal to zero element is performed, result contains one of two: if the search for equal to zero element was not performed, then result includes comparing index, if search equal to zero element was performed, then result contains minimum of equal to zero element comparison index and index values.
EFFECT: efficient machine command execution.
12 cl, 16 dwg
Authors
Dates
2016-09-27—Published
2013-03-07—Filed