主权项 |
1. A computer-implemented method of executing a machine instruction, said computer-implemented method comprising:
obtaining, by a processor, a machine instruction to be executed, the machine instruction having associated therewith a register to be examined and a result location to be used for the machine instruction, the register comprising a plurality of elements; and executing, by the processor, the machine instruction, the executing comprising:
counting a number of contiguous elements of the plurality of elements of the register having a particular value in a selected location within the contiguous elements, wherein other locations within the contiguous elements are ignored for the counting, the counting providing a count; andplacing the count in the result location. |