CPC G06F 9/3887 (2013.01) [G06F 9/3001 (2013.01); G06F 9/30032 (2013.01); G06F 9/30109 (2013.01)] | 19 Claims |
1. A processor, comprising:
performing, in accordance with a single instruction, multiplication processing and comparison processing,
wherein the multiplication processing includes obtaining a multiplication result by multiplying together a first data element and a first value,
the comparison processing includes comparing the multiplication result with a second data element,
the first data element is stored in a first register,
the second data element is stored in a second register,
the first value is stored in a third register,
the processor is configured to further perform, in accordance with the single instruction, replacement processing, the replacement processing including replacing, based on a result of the comparison processing, a third data element with a second value,
the third data element is stored in a fourth register, and
the second value is further stored in the third register.
|