Minus searching method and device as well as processor

2016 
The invention provides a minus searching method and device as well as a processor. The method comprises the following steps: receiving a minus searching instruction, wherein the minus searching instruction comprises a first operation number, a second operation number, a third operation number and a destination, the first operation number is used as to-be-processed vector data, the second operation number is used as a searching sequence, the third operation number is used as a storage width of an element in the to-be-processed vector data, and the destination is used for storing information of a to-be-searched minus; decoding the minus searching instruction and carrying out search according to the minus searching instruction to acquire minus information in the to-be-processed vector data; storing the minus information in the destination. According to the method, the minus information in the to-be-processed vector data is searched according to information of the operation numbers and the destination in the minus searching instruction, and the searched minus information is stored in the destination, so that the minus searching efficiency is improved, and the problem that the minus searching efficiency is low as CPU needs to read instruction one to one in an internal memory to realize the minus search in vector data in the prior art is avoided.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []