Vector floating point test data class immediate instruction
AssigneeInternational Business Machines Corporation
InventorsJonathan D. Bradbury, Eric M. Schwarz
Life of this patent
Estimating the term…
Abstract
A Vector Floating Point Test Data Class Immediate instruction is provided that determines whether one or more elements of a vector specified in the instruction are of one or more selected classes and signs. If a vector element is of a selected class and sign, an element in an operand of the instruction corresponding to the vector element is set to a first defined value, and if the vector element is not of the selected class and sign, the operand element corresponding to the vector element is set to a second defined value.
Claims20
A computer program product for executing a machine instruction, the computer program product comprising:
- a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
- obtaining a machine instruction for execution, the machine instruction having associated therewith:
- an opcode to identify a Vector Floating Point Test Data Class Immediate operation;
- a first operand;
- and
- a second operand;
- and
- executing the machine instruction, the executing comprising:
- determining properties of a chosen element of the second operand;
- selecting from an input to the machine instruction a selected data unit representing the properties of the chosen element, the input including one or more data units to represent one or more properties;
- checking whether the selected data unit is set to a particular value;
- and
- based on the checking, setting an element in the first operand that corresponds to the chosen element of the second operand, the setting based on whether the selected data unit is set to the particular value.
A computer system for executing a machine instruction, the computer system comprising:
- a memory;
- and
- a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
- obtaining a machine instruction for execution, the machine instruction having associated therewith:
- an opcode to identify a Vector Floating Point Test Data Class Immediate operation;
- a first operand;
- and
- a second operand;
- and
- executing the machine instruction, the executing comprising:
- determining properties of a chosen element of the second operand;
- selecting from an input to the machine instruction a selected data unit representing the properties of the chosen element, the input including one or more data units to represent one or more properties;
- checking whether the selected data unit is set to a particular value;
- and
- based on the checking, setting an element in the first operand that corresponds to the chosen element of the second operand, the setting based on whether the selected data unit is set to the particular value.
A computer-implemented method of executing a machine instruction, the computer-implemented method comprising:
- obtaining, by a processor, a machine instruction for execution, the machine instruction having associated therewith:
- an opcode to identify a Vector Floating Point Test Data Class Immediate operation;
- a first operand;
- and
- a second operand;
- and
- executing the machine instruction, the executing comprising:
- determining properties of a chosen element of the second operand;
- selecting from an input to the machine instruction a selected data unit representing the properties of the chosen element, the input including one or more data units to represent one or more properties;
- checking whether the selected data unit is set to a particular value;
- and
- based on the checking, setting an element in the first operand that corresponds to the chosen element of the second operand, the setting based on whether the selected data unit is set to the particular value.
Dependencies are inferred from the claim text.