# US 2022/0283818 A1 · Hexadecimal floating point multiply and add instruction

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283818 A1
- Document ID: US20220283818A1
- Status: Published application
- Kind: A1
- Application number: 17/194,740
- Filed: 2021-03-08
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Eric Mark Schwarz; Stefan Payer; Petra Leber; Kerstin Claudia Schelm; Michael Klein; Timothy Slegel; Reid Copeland; Xin Guo
- Web page: https://patentgrep.com/patent/US20220283818A1

## CPC

- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30014: {with variable precision}
- G06F 9/30098: {Register arrangements}
- G06F 9/30167: {of immediate specifier, e.g. constants}
- G06F 9/345: of multiple operands or results {(addressing multiple banks G06F12/06)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An instruction to perform an operation selected from a plurality of operations configured for the instruction is executed. The executing includes determining a value of a selected operand of the instruction. The determining the value is based on a control of the instruction and includes reading the selected operand of the instruction from a selected operand location to obtain the value of the selected operand, based on the control having a first value, and using a predetermined value as the value of the selected operand, based on the control having a second value. The value and another selected operand of the instruction are multiplied to obtain a product. An arithmetic operation is performed using the product and a chosen operand of the instruction to obtain an intermediate result. A result from the intermediate result is obtained and placed in a selected location.

## Claims

### Claim 1

A computer program product for facilitating processing within a computing environment, the computer program product comprising:
one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media to perform a method comprising:
executing an instruction to perform an operation selected from a plurality of operations configured for the instruction, the instruction including an operation code field indicating an operation to be performed and a field separate from the operation code filed used to specify a control to be used in execution of the instruction, and wherein the executing the instruction comprises:
determining a value of a selected operand of the instruction, wherein the determining the value is based on control specified using the field of the instruction and comprises:
reading the selected operand of the instruction from a selected operand location to obtain the value of the selected operand, based on the control of the instruction having a first value; and
using a predetermined value as the value of the selected operand, based on the control of the instruction having a second value;
multiplying the value and another selected operand of the instruction to obtain a product;
performing an arithmetic operation using the product and a chosen operand of the instruction to obtain an intermediate result;
obtaining a result from the intermediate result; and
placing the result in a selected location.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the using the predetermined value as the value of the selected operand comprises using the predetermined value absent reading the selected operand from the selected operand location, the selected operand location comprising at least one register.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the predetermined value comprises a value of one.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the executing the instruction further comprises:
determining whether a rounding operation is to be performed; and
performing the rounding operation on a version of the intermediate result to obtain the result, based on determining that the rounding operation is to be performed.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the version of the intermediate result comprises a normalized result.

### Claim 6 (depends on 4)

The computer program product of claim 4, wherein the determining whether the rounding operation is to be performed comprises checking a rounding mode control of the instruction, wherein based on the rounding mode control being equal to one value, the rounding operation is to be performed.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the obtaining the result comprises:
normalizing the intermediate result to obtain a normalized result; and
using the normalized result to obtain the result.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the using the normalized result to obtain the result comprises:
determining whether a rounding operation is to be performed;
rounding the normalized result, based on determining that the rounding operation is to be performed, to obtain the result; and
truncating the normalized result, based on determining that the rounding operation is not to be performed, to obtain the result.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the selected location comprises at least one register specified by at least one field of the instruction.

### Claim 10 (depends on 1)

The computer program product of claim 1, wherein the arithmetic operation comprises an add operation, and based on the control having the second value, the control indicates that the instruction is to perform an operation in that the other selected operand is multiplied by the predetermined value of one, and based on the control having the first value, the control indicates that the instruction is to perform a multiply and add operation and that the other selected operand is multiplied by the value read from the selected operand location.

### Claim 11

A computer system for facilitating processing within a computing environment, 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:
executing an instruction to perform an operation selected from a plurality of operations configured for the instruction, the instruction including an operation code field indicating an operation to be performed and a field separate from the operation code filed used to specify a control to be used in execution of the instruction, and wherein the executing the instruction comprises:
determining a value of a selected operand of the instruction, wherein the determining the value is based on the control specified using the field of the instruction and comprises:
reading the selected operand of the instruction from a selected operand location to obtain the value of the selected operand, based on the control of the instruction having a first value; and
using a predetermined value as the value of the selected operand, based on the control of the instruction having a second value;
multiplying the value and another selected operand of the instruction to obtain a product;
performing an arithmetic operation using the product and a chosen operand of the instruction to obtain an intermediate result;
obtaining a result from the intermediate result; and
placing the result in a selected location.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the using the predetermined value as the value of the selected operand comprises using the predetermined value absent reading the selected operand from the selected operand location, the selected operand location comprising at least one register, and wherein the predetermined value comprises a value of one.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the executing the instruction further comprises:
determining whether a rounding operation is to be performed; and
performing the rounding operation on a version of the intermediate result to obtain the result, based on determining that the rounding operation is to be performed.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein the determining whether the rounding operation is to be performed comprises checking a rounding mode control of the instruction, wherein based on the rounding mode control being equal to one value, the rounding operation is to be performed.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the obtaining the result comprises:
normalizing the intermediate result to obtain a normalized result; and
using the normalized result to obtain the result.

### Claim 16

A computer-implemented method of facilitating processing within a computing environment, the computer-implemented method comprising:
executing an instruction to perform an operation selected from a plurality of operations configured for the instruction, the instruction including an operation code field indicating an operation to be performed and a field separate from the operation code filed used to specify a control to be used in execution of the instruction, and wherein the executing the instruction comprises:
determining a value of a selected operand of the instruction, wherein the determining the value is based on the control specified using the field of the instruction and comprises:
reading the selected operand of the instruction from a selected operand location to obtain the value of the selected operand, based on the control of the instruction having a first value; and
using a predetermined value as the value of the selected operand, based on the control of the instruction having a second value;
multiplying the value and another selected operand of the instruction to obtain a product;
performing an arithmetic operation using the product and a chosen operand of the instruction to obtain an intermediate result;
obtaining a result from the intermediate result; and
placing the result in a selected location.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the using the predetermined value as the value of the selected operand comprises using the predetermined value absent reading the selected operand from the selected operand location, the selected operand location comprising at least one register, and wherein the predetermined value comprises a value of one.

### Claim 18 (depends on 16)

The computer-implemented method of claim 16, wherein the executing the instruction further comprises:
determining whether a rounding operation is to be performed; and
performing the rounding operation on a version of the intermediate result to obtain the result, based on determining that the rounding operation is to be performed.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, wherein the determining whether the rounding operation is to be performed comprises checking a rounding mode control of the instruction, wherein based on the rounding mode control being equal to one value, the rounding operation is to be performed.

### Claim 20 (depends on 16)

The computer-implemented method of claim 16, wherein the obtaining the result comprises:
normalizing the intermediate result to obtain a normalized result; and
using the normalized result to obtain the result.
