Conditional operand selection using mask operations
OwnerCarole Dulong, Roger A. Golliverinventors
Life of this patent
Estimating the term…
Abstract
The present invention is a method and apparatus for transferring data from at least two source operands to a destination operand based on a condition. The two source operands are stored in respective source registers. A condition register stores a condition operand from the condition. A masking circuit is coupled to the two source registers for masking the two source operands by the condition operand to generate a masking result. A selector is coupled to the masking circuit for selecting elements of the two source operands based of the masking result.
Claims23
A method for transferring data from at least two source operands to a destination operand based on a condition, the method comprising:
- (a) generating a condition operand from the condition;
- (b) masking the at least two source operands by the condition operand to generate a masking result;
- and
- (c) selecting elements of the at least two source operands based of the masking result.
An apparatus for transferring data from at least two source operands to a destination operand based on a condition, the at least two source operands being stored in respective source registers, the apparatus comprising:
- (a) a condition register that stores a condition operand from the condition;
- (b) a masking circuit coupled to the at least two source registers for masking the at least two source operands by the condition operand to generate a masking result;
- and
- (c) a selector coupled to the masking circuit for selecting elements of the at least two source operands based of the masking result.
A system comprising:
- a memory for storing an instruction sequence;
- and
- a processor coupled to the memory for fetching the instruction sequence and executing an instruction therefrom to transfer data from at least two source operands to a destination operand based on a condition, the executing causing the processor to at least:
- (a) generate a condition operand from the condition,
- (b) mask the at least two source operands by the condition operand to generate a masking result, and
- (c) select elements of the at least two source operands based of the masking result.
A system comprising:
- a memory for storing an instruction sequence;
- and
- a processor coupled to the memory for fetching the instruction sequence and executing an instruction therefrom, the processor comprising a selection circuit, the selection circuit performing the instruction to transfer data from at least two source operands to a destination operand based on a condition, the at least two source operands being stored in respective source registers, the selection circuit comprising:
- (a) a condition register that stores a condition operand from the condition,
- (b) a masking circuit coupled to the at least two source registers for masking the at least two source operands by the condition operand to generate a masking result, and
- (c) a selector coupled to the masking circuit for selecting elements of the at least two source operands based of the masking result.
Dependencies are inferred from the claim text.