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 in a central processing unit, 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, by a processor, a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising:
- at least one opcode field to provide an opcode, the opcode identifying a Vector Floating Point Test Data Class Immediate operation;
- a first register field to be used to designate a first register, the first register comprising a first operand;
- and
- a second register field to be used to designate a second register, the second register comprising 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 in a central processing unit, the computer system comprising:
- a memory;
- and
- a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising:
- obtaining, by a processor, a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising:
- at least one opcode field to provide an opcode, the opcode identifying a Vector Floating Point Test Data Class Immediate operation;
- a first register field to be used to designate a first register, the first register comprising a first operand;
- and
- a second register field to be used to designate a second register, the second register comprising 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 method of executing a machine instruction in a central processing unit, the method comprising:
- obtaining, by a processor, a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising:
- at least one opcode field to provide an opcode, the opcode identifying a Vector Floating Point Test Data Class Immediate operation;
- a first register field to be used to designate a first register, the first register comprising a first operand;
- and
- a second register field to be used to designate a second register, the second register comprising 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.