Select first and select last instructions for processing vectors
AssigneeApple Inc.
InventorsJeffry E. Gonion, Keith E. Diefendorff
Life of this patent
Estimating the term…
Loading patent…
AssigneeApple Inc.
InventorsJeffry E. Gonion, Keith E. Diefendorff
Estimating the term…
The described embodiments include a processor that executes a vector instruction. The processor starts by receiving a vector instruction that uses a first input vector, a second input vector, and a control vector, and optionally a predicate vector as inputs, wherein each of the vectors includes N elements. The processor then executes the vector instruction. In the described embodiments, when executing the vector instruction, the processor determines a key element position. If the predicate vector is received, the key element position is a predetermined active element position in the predicate vector, otherwise, the key element position is in a predetermined element position. The processor then uses the key element position to copy a result value into a result variable. When copying the result value into the result variable, if an element in the key element position of the control vector contains a predetermined value, the processor copies a value from the key element position in the second input vector into the result variable. Otherwise, the processor copies a value from the key element position in the first input vector into the result variable.
A method for executing a vector instruction in a processor, comprising:
A processor that executes a vector instruction, comprising:
A computer system that executes a vector instruction, comprising:
Dependencies are inferred from the claim text.