Vector floating point test data class immediate instruction
First Claim
Patent Images
1. A computer program product for executing a machine instruction, the computer program product comprising:
- at least one non-transitory computer readable storage medium readable by at least one processing circuit and storing instructions 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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A computer program product for executing a machine instruction, the computer program product comprising:
-
at least one non-transitory computer readable storage medium readable by at least one processing circuit and storing instructions 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 19, 20)
-
-
11. 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. - View Dependent Claims (12, 13, 14)
-
-
15. 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. - View Dependent Claims (16, 17, 18)
-
Specification